Compare commits

...

232 Commits

Author SHA1 Message Date
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 ee2418f91c Merge pull request 'mapgen mod compatibility' (#409) from FaceDeer/MineClone5:mapgen_mod_compatibility into master
Reviewed-on: MineClone5/MineClone5#409
2022-09-16 18:10:14 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 56b915d51d Merge pull request 'Fix Smoker and Blast Furnace Aliases, and potatoes can now be cooked in the smoker.' (#413) from smoker_blast_furnace_fixes into master
Reviewed-on: MineClone5/MineClone5#413
2022-09-07 17:48:09 +00:00
PrairieWind ba47414a95 Fixed Smoker and Blast Furnace Aliases, and potatoes can now be cooked in the smoker. 2022-09-03 10:19:49 -06:00
3raven 52d311119f Merge pull request 'cohésion/fix translation' (#411) from 3raven-patch-2 into master
Reviewed-on: MineClone5/MineClone5#411
2022-08-24 04:36:37 +00:00
3raven 3cee342f1f cohésion/fix translation 2022-08-24 04:35:35 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 15ac28d000 Merge pull request 'Beacons from MineClone2' (#395) from chmodsayshello/MineClone5:mcl5_beacons into master
Reviewed-on: MineClone5/MineClone5#395
2022-08-16 17:59:16 +00:00
FaceDeer 7e0cfed1b5 Add a log warning wrapper to calls to register_on_generated, as discussed in MineClone5/MineClone5#399 2022-08-15 11:06:48 -06:00
chmodsayshello 19df0fb5d7 update init.lua 2022-08-13 10:03:06 +00:00
FaceDeer 5cc0288a03 found a typo 2022-08-13 02:22:46 -06:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 a50255cb97 Merge pull request 'Make dirt head debugging an option, and disable head_code by default if has_head is not defined.' (#402) from fbievan/MineClone5:fix-heads into master
Reviewed-on: MineClone5/MineClone5#402
2022-08-10 18:15:20 +00:00
Your Name 841789f010 removed soemthing i was messing with lmao 2022-08-09 12:43:46 -05:00
Your Name 7270094619 Moved variable to align with other ones 2022-08-09 12:42:16 -05:00
Your Name 3a77a97e2d moved identetion of debug_head variable 2022-08-09 12:36:22 -05:00
Your Name 384e5ece67 Moved debug_head above function. 2022-08-08 15:50:30 -05:00
Your Name da81f0b5b4 Cache output of function to variable then call it 2022-08-08 10:32:32 -05:00
Your Name 6ac082aff7 add indent 2022-08-08 09:53:31 -05:00
FaceDeer eef5c0dc46 add an override setting for rail tunnel heights 2022-08-07 18:00:26 -06:00
Your Name cdb881ff9a Fixed formatting (I think?) 2022-08-07 17:36:12 -05:00
Your Name cce8dcce97 remove newline 2022-08-07 10:45:51 -05:00
Your Name 71f0d9364a Fix formatting 2022-08-07 10:44:21 -05:00
Your Name 2b39a1b9bf Make debugging head dirt an option 2022-08-07 10:25:46 -05:00
Your Name e6cb2c48b7 make has_head actaully do something, and if not has_head is not defined disable head code for mob 2022-08-07 10:04:28 -05:00
FaceDeer ae60960a00 add callbacks mapgen mods can use to alter locally-saved copies of settings, reveal register_on_generated 2022-08-06 20:27:44 -06:00
chmodsayshello d4da512309 mcl_beacons: textures 2/2 2022-08-02 14:01:18 +00:00
chmodsayshello 3a36593612 mcl_beacons: textures 1/2 2022-08-02 14:00:55 +00:00
chmodsayshello a506ae9fff mcl_beacons: german translation 2022-08-02 13:58:08 +00:00
chmodsayshello 82cd2be6b7 mcl_beacons: add translation template 2022-08-02 13:57:01 +00:00
chmodsayshello 368f891746 mcl_beacons: mod.conf 2022-08-02 13:56:01 +00:00
chmodsayshello c53055c472 mcl_beacons: init.lua 2022-08-02 13:55:25 +00:00
chmodsayshello 5507303deb mcl_achievements: update german translation 2022-08-02 13:53:58 +00:00
chmodsayshello e98be27138 mcl_achievements: update translation template 2022-08-02 13:53:21 +00:00
chmodsayshello e308240fb6 register beacon achievements 2022-08-02 13:52:30 +00:00
chmodsayshello 82423cfb33 Merge pull request 'Update Fork' (#9) from MineClone5/MineClone5:master into master
Reviewed-on: chmodsayshello/MineClone5#9
2022-08-02 13:50:36 +00:00
kay27 4ade7dc769 Merge pull request 'Make baby sheep have big heads' (#392) from MrRar/MineClone5:sheep into master
Reviewed-on: MineClone5/MineClone5#392
2022-08-02 11:57:49 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 6bbf3bc80c Make baby sheep have big heads 2022-08-01 12:54:48 -05:00
kay27 85ca6e867a Merge pull request 'Add nether biomes' (#389) from nether_biomes into master
Reviewed-on: MineClone5/MineClone5#389
2022-07-28 18:12:45 +00:00
cora 70daeda500 Add nether biomes 2022-07-28 17:22:05 +02:00
kay27 6c2bdf3156 Merge 1.11 leftovers from testing branch 2022-07-24 06:27:52 +03:00
kay27 797a7d22e1 #382 Fix crash on missing pointed_thing in moss rightclick handler 2022-07-24 04:15:59 +03:00
kay27 40c17d288b Show mapgen status percent in mcl_info on bitmask 4 2022-07-23 07:03:52 +03:00
kay27 bfc248ee9a Remove a warning 2022-07-23 06:00:23 +03:00
kay27 9540363363 Merge master into testing 2022-07-23 05:53:06 +03:00
kay27 86913119ea Add blackstone version of ruined portal 2022-07-23 05:52:04 +03:00
kay27 ee35c09a94 Merge pull request 'Adding some Occitan translations' (#380) from PrWalterB/MineClone5:master into master
Reviewed-on: MineClone5/MineClone5#380
2022-07-22 13:40:43 +00:00
PrWalterB 72d6b4de06 Add 'mods/ENTITIES/mobs_mc/locale/mobs_mc.oc.tr' 2022-07-22 09:56:33 +00:00
PrWalterB ca8c9ed1fc Merge pull request 'master' (#1) from MineClone5/MineClone5:master into master
Reviewed-on: PrWalterB/MineClone5#1
2022-07-22 09:41:02 +00:00
kay27 951a99c7cf #377 Merge 3raven/MineClone5-french/master into master 2022-07-21 20:43:50 +03:00
PrWalterB a492522fb5 Add 'mods/ENVIRONMENT/mcl_void_damage/locale/mcl_void_damage.oc.tr' 2022-07-21 10:39:41 +00:00
PrWalterB 017ecf0cb4 Add 'mods/ENVIRONMENT/lightning/locale/ lightning.oc.tr' 2022-07-21 10:36:46 +00:00
PrWalterB 56f83240fc Add 'mods/ENTITIES/mcl_paintings/locale/mcl_paintings.oc.tr' 2022-07-21 10:28:52 +00:00
PrWalterB 5ea614311d Add 'mods/ENTITIES/mcl_falling_nodes/locale/mcl_falling_nodes.oc.tr' 2022-07-21 10:26:12 +00:00
PrWalterB 5e9f7129d1 Add 'mods/ENTITIES/mcl_boats/locale/mcl_boats.oc.tr' 2022-07-21 10:14:02 +00:00
kay27 37350718c7 Merge pull request 'Add Occitan Translation for Amethyst' (#379) from PrWalterB/MineClone5:master into master
Reviewed-on: MineClone5/MineClone5#379
2022-07-21 09:54:32 +00:00
PrWalterB 924bf17be7 Add 'mods/CORE/mcl_explosions/locale/mcl_explosions.oc.tr' 2022-07-21 09:51:08 +00:00
PrWalterB 24096875db Add Occitan Translation 2022-07-21 09:40:19 +00:00
3raven 1ea7937a69 Ajouter 'mods/ITEMS/mcl_lanterns/locale/mcl_lanterns.fr.tr' 2022-07-21 04:25:17 +00:00
3raven 0dfff81069 Ajouter 'mods/ITEMS/mcl_lanterns/locale/template.txt' 2022-07-21 04:24:20 +00:00
3raven c7efef2dcf Supprimer 'mods/ITEMS/mcl_lanterns/local/template.txt' 2022-07-21 04:23:18 +00:00
3raven b532182dd8 Supprimer 'mods/ITEMS/mcl_lanterns/local/mcl_lanterns.fr.tr' 2022-07-21 04:22:59 +00:00
3raven 54dd1b2cad Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/template.txt' 2022-07-21 04:17:12 +00:00
3raven c53cd30c8d Mise à jour de 'mods/ITEMS/mcl_core/locale/mcl_core.fr.tr' 2022-07-21 03:59:50 +00:00
3raven 3ec699ce3b Mise à jour de 'mods/ITEMS/mcl_nether/locale/mcl_nether.fr.tr' 2022-07-21 03:38:34 +00:00
3raven 70b440859b Mise à jour de 'mods/ITEMS/mcl_nether/locale/mcl_nether.fr.tr' 2022-07-21 03:35:47 +00:00
3raven b1e03173fe Mise à jour de 'mods/ITEMS/mcl_nether/locale/template.txt' 2022-07-21 03:33:40 +00:00
3raven 40f4019d6e Mise à jour de 'mods/ITEMS/mcl_mushroom/locale/mcl_mushroom.fr.tr' 2022-07-21 02:37:17 +00:00
3raven b817c92c9d Mise à jour de 'mods/ITEMS/mcl_mushroom/locale/template.txt' 2022-07-21 02:35:01 +00:00
3raven c62eb202ab Mise à jour de 'mods/ITEMS/mcl_mushroom/init.lua' 2022-07-21 02:33:24 +00:00
3raven 43e75c8017 Mise à jour de 'mods/ITEMS/mclx_stairs/locale/mclx_stairs.fr.tr' 2022-07-21 02:27:36 +00:00
3raven 87a0e7b28a Mise à jour de 'mods/ITEMS/mcl_lanterns/local/mcl_lanterns.fr.tr' 2022-07-21 02:15:03 +00:00
3raven bb96f81d31 Mise à jour de 'mods/ITEMS/mcl_lanterns/local/template.txt' 2022-07-21 02:14:29 +00:00
3raven 6e6a0104ef Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/mcl_blackstone.fr.tr' 2022-07-21 02:11:42 +00:00
3raven 9836da42da Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/template.txt' 2022-07-21 02:10:54 +00:00
3raven 47b3db0da3 Mise à jour de 'mods/ITEMS/mcl_enchanting/locale/mcl_enchanting.fr.tr' 2022-07-21 02:00:20 +00:00
3raven d3661ee60f Mise à jour de 'mods/HELP/mcl_tt/locale/template.txt' 2022-07-21 01:39:36 +00:00
3raven aa39f33404 Ajouter 'mods/PLAYER/mcl_skins/locale/mcl_skins.fr.tr' 2022-07-21 01:36:39 +00:00
3raven cca48ffa69 Mise à jour de 'mods/ITEMS/mcl_tools/locale/mcl_tools.fr.tr' 2022-07-21 01:29:28 +00:00
3raven bafed4615b Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/mcl_blackstone.fr.tr' 2022-07-21 01:23:58 +00:00
3raven 6ff1856a58 Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/template.txt' 2022-07-21 01:19:40 +00:00
3raven 58db95a7d3 Mise à jour de 'mods/ITEMS/mcl_blackstone/init.lua' 2022-07-21 01:17:28 +00:00
3raven cae6aeecc3 Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/template.txt' 2022-07-21 01:11:06 +00:00
3raven db71d5ac80 Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/mcl_blackstone.fr.tr' 2022-07-21 01:10:02 +00:00
3raven 4c78fb4517 Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/template.txt' 2022-07-21 01:09:16 +00:00
3raven 4b9f51a5f8 Mise à jour de 'mods/ITEMS/mcl_enchanting/locale/template.txt' 2022-07-21 01:05:30 +00:00
3raven 4c4b0636d0 Mise à jour de 'mods/ITEMS/mcl_enchanting/locale/mcl_enchanting.fr.tr' 2022-07-21 01:05:03 +00:00
3raven fdcb2f56e8 Mise à jour de 'mods/ITEMS/mcl_enchanting/locale/template.txt' 2022-07-21 00:57:49 +00:00
3raven 26157cb355 Mise à jour de 'mods/ITEMS/mcl_composters/locale/mcl_composters.fr.tr' 2022-07-21 00:36:09 +00:00
3raven 2b00261f40 Mise à jour de 'mods/ITEMS/mcl_composters/locale/template.txt' 2022-07-21 00:29:35 +00:00
3raven 597e4f827b Mise à jour de 'mods/ITEMS/mcl_beds/locale/mcl_beds.fr.tr' 2022-07-21 00:22:00 +00:00
3raven 1a270069f0 Mise à jour de 'mods/ITEMS/mcl_mushroom/locale/mcl_mushroom.fr.tr' 2022-07-21 00:18:30 +00:00
3raven e99a7b3e98 Mise à jour de 'mods/ITEMS/mcl_mushroom/locale/template.txt' 2022-07-21 00:17:20 +00:00
3raven 426cc085e4 Mise à jour de 'mods/HUD/awards/locale/awards.fr.tr' 2022-07-21 00:09:47 +00:00
3raven 497150f3fb Mise à jour de 'mods/HUD/awards/locale/template.txt' 2022-07-20 23:57:44 +00:00
3raven ea776acfda Mise à jour de 'mods/HUD/awards/locale/awards.fr.tr' 2022-07-20 23:48:08 +00:00
3raven ba080086be Mise à jour de 'mods/ENVIRONMENT/lightning/locale/lightning.fr.tr' 2022-07-20 23:41:32 +00:00
3raven 33fa0a18de Mise à jour de 'mods/ITEMS/mcl_smoker/locale/mcl_smoker.fr.tr' 2022-07-20 22:29:28 +00:00
3raven 3fb7f17fe1 Mise à jour de 'mods/ITEMS/mcl_smoker/locale/template.txt' 2022-07-20 22:26:17 +00:00
3raven 49ba1c7c92 Mise à jour de 'mods/ITEMS/mcl_smoker/locale/template.txt' 2022-07-20 22:22:02 +00:00
3raven 66eb8fa99a Mise à jour de 'mods/ITEMS/mcl_cartography_table/locale/template.txt' 2022-07-20 22:15:52 +00:00
3raven 674ae230d3 Mise à jour de 'mods/ITEMS/mcl_cartography_table/locale/mcl_cartography_table.fr.tr' 2022-07-20 22:15:16 +00:00
3raven 71f926b851 Mise à jour de 'mods/ITEMS/mcl_loom/locale/template.txt' 2022-07-20 22:13:52 +00:00
3raven bee5d01a31 Mise à jour de 'mods/ITEMS/mcl_loom/locale/mcl_loom.fr.tr' 2022-07-20 22:13:16 +00:00
3raven 7fa256b480 Mise à jour de 'mods/ITEMS/mcl_smoker/locale/template.txt' 2022-07-20 22:10:45 +00:00
3raven 91141c68fa Mise à jour de 'mods/ITEMS/mcl_smoker/locale/mcl_smoker.fr.tr' 2022-07-20 22:09:34 +00:00
3raven a07e825f84 Mise à jour de 'mods/ITEMS/mcl_blast_furnace/locale/template.txt' 2022-07-20 22:07:50 +00:00
3raven d41710b169 Transférer les fichiers vers 'mods/ITEMS/mcl_blast_furnace/locale' 2022-07-20 22:05:45 +00:00
kay27 98db03c82e Update 'CONTRIBUTING.md' 2022-07-20 21:45:53 +00:00
3raven 154aac4c5c typo 2022-07-20 20:43:29 +00:00
3raven 0adcab7850 be careful to copy exact, casse-sensitive expérience 2022-07-20 20:38:25 +00:00
3raven 523bca28af Mise à jour de 'mods/ENTITIES/extra_mobs/locale/extra_mobs.fr.tr' 2022-07-20 20:37:31 +00:00
kay27 85cfc95500 #376 Fix several localization issues 2022-07-20 23:36:35 +03:00
kay27 79cca6b121 #363 Turn on head logic 2022-07-20 15:43:26 +03:00
3raven ffa4a4af16 Mise à jour de 'mods/ITEMS/mcl_cartography_table/locale/mcl_cartography_table.fr.tr' 2022-07-20 02:50:45 +00:00
3raven aff9889c9b Mise à jour de 'mods/ITEMS/mcl_raw_ores/locale/mcl_raw_ores.fr.tr' 2022-07-20 02:45:44 +00:00
3raven 3175be742e Mise à jour de 'mods/ITEMS/mcl_raw_ores/locale/template.txt' 2022-07-20 02:42:52 +00:00
3raven 447f26317b Mise à jour de 'mods/ENTITIES/extra_mobs/locale/template.txt' 2022-07-20 02:32:15 +00:00
3raven dd95c75977 Mise à jour de 'mods/ENTITIES/extra_mobs/locale/extra_mobs.fr.tr' 2022-07-20 02:31:45 +00:00
3raven 3ccb3b74dc Mise à jour de 'mods/ITEMS/mcl_cauldrons/locale/mcl_cauldrons.fr.tr' 2022-07-20 02:29:36 +00:00
3raven 4a060350a4 Mise à jour de 'mods/ITEMS/mcl_armor/locale/mcl_armor.fr.tr' 2022-07-20 02:28:41 +00:00
3raven 4981cfeb73 Mise à jour de 'mods/ITEMS/mcl_smoker/locale/template.txt' 2022-07-20 02:10:01 +00:00
3raven 50036c33a3 Mise à jour de 'mods/ITEMS/mcl_mushroom/init.lua' 2022-07-20 02:08:11 +00:00
3raven 9d227324d0 Mise à jour de 'mods/ITEMS/mcl_armor/locale/mcl_armor.fr.tr' 2022-07-20 02:01:04 +00:00
3raven c6ef8b615d Mise à jour de 'mods/ITEMS/mcl_armor/locale/template.txt' 2022-07-20 01:57:28 +00:00
3raven 380b7febc5 Mise à jour de 'mods/ITEMS/mcl_smoker/locale/mcl_smoker.fr.tr' 2022-07-20 01:42:34 +00:00
3raven 5ad3f1b84c Mise à jour de 'mods/ITEMS/mcl_smoker/locale/template.txt' 2022-07-20 01:42:11 +00:00
3raven eaedaa91f8 Mise à jour de 'mods/ITEMS/REDSTONE/mcl_bells/locale/template.txt' 2022-07-20 01:39:31 +00:00
3raven 13ebca9850 Mise à jour de 'mods/ITEMS/REDSTONE/mcl_bells/locale/mcl_bells.fr.tr' 2022-07-20 01:38:57 +00:00
3raven 06d5f8490d TODO : move some enchantement(armor-related) here 2022-07-20 01:23:06 +00:00
3raven 9622eb89ba Mise à jour de 'mods/ITEMS/mcl_armor/locale/mcl_armor.fr.tr' 2022-07-20 01:20:24 +00:00
3raven 9852180e12 Transférer les fichiers vers 'mods/ITEMS/mcl_armor/locale' 2022-07-20 01:19:30 +00:00
3raven d398c5d1f9 Mise à jour de 'mods/HUD/mcl_inventory/locale/mcl_inventory.fr.tr' 2022-07-20 00:05:30 +00:00
3raven 2129436ec3 Mise à jour de 'mods/HUD/mcl_death_messages/locale/mcl_death_messages.fr.tr' 2022-07-19 23:55:14 +00:00
3raven b7502fc5fa remove doublons 2022-07-19 23:48:24 +00:00
3raven b88091ee78 Mise à jour de 'mods/HUD/mcl_death_messages/locale/mcl_death_messages.fr.tr' 2022-07-19 23:41:57 +00:00
kay27 03e20912b4 #357 Sketch png editing python web server script 2022-07-20 02:41:39 +03:00
3raven d5c06e35ff Mise à jour de 'mods/HUD/mcl_achievements/locale/mcl_achievements.fr.tr' 2022-07-19 22:47:48 +00:00
3raven 866ee6f121 Ajouter 'mods/ITEMS/mcl_tridents/locale/mcl_trident.fr.tr' 2022-07-19 22:10:32 +00:00
3raven aaaf0192ad Ajouter 'mods/ITEMS/mcl_spyglass/locale/mcl_spyglass.fr.tr' 2022-07-19 21:45:33 +00:00
3raven 974769abd8 Ajouter 'mods/ITEMS/mcl_smoker/locale/mcl_smoker.fr.tr' 2022-07-19 21:40:52 +00:00
3raven d54c4cdcb2 Mise à jour de 'mods/ITEMS/mcl_smoker/locale/template.txt' 2022-07-19 21:37:45 +00:00
3raven 4210c19e7e Ajouter 'mods/ITEMS/mcl_smithing_table/locale/mcl_smithing_table.fr.tr' 2022-07-19 21:34:51 +00:00
3raven 9d85014222 Ajouter 'mods/ITEMS/mcl_raw_ores/locale/mcl_raw_ores.fr.tr' 2022-07-19 21:30:28 +00:00
3raven 3cd1dd07eb Wrong node name 2022-07-19 21:17:56 +00:00
3raven dae236fe44 Mise à jour de 'mods/ITEMS/mcl_mushroom/locale/mcl_mushroom.fr.tr' 2022-07-19 21:15:59 +00:00
3raven cce9cc868c Mise à jour de 'mods/ITEMS/mcl_mushroom/locale/template.txt' 2022-07-19 21:15:09 +00:00
3raven 03cd73261a Mise à jour de 'mods/ITEMS/mcl_mushroom/locale/template.txt' 2022-07-19 21:05:04 +00:00
3raven 8af587751f Mise à jour de 'mods/ITEMS/mcl_loom/locale/template.txt' 2022-07-19 20:44:20 +00:00
3raven f6bc04142c Ajouter 'mods/ITEMS/mcl_loom/locale/mcl_loom.fr.tr' 2022-07-19 20:44:00 +00:00
kay27 c3e208dbb0 #375 Speed up hopper ABMs 2022-07-19 23:42:57 +03:00
3raven 19b7f796c7 Ajouter 'mods/ITEMS/mcl_loom/locale/template.txt' 2022-07-19 20:39:42 +00:00
3raven 2f9df70ac4 Better formulation 2022-07-19 20:34:43 +00:00
3raven 5cabb7875a Ajouter 'mods/ITEMS/mcl_fletching_table/locale/mcl_fletching_table.fr.tr' 2022-07-19 20:11:21 +00:00
3raven 0248fa533d Ajouter 'mods/ITEMS/mcl_fletching_table/locale/template.txt' 2022-07-19 20:07:44 +00:00
3raven c9431fbbdb Supprimer 'mods/ITEMS/mcl_fletching_table/template.txt' 2022-07-19 20:07:20 +00:00
3raven 7879e6bcb2 Ajouter 'mods/ITEMS/mcl_fletching_table/template.txt' 2022-07-19 20:06:42 +00:00
3raven 6994da8191 Mise à jour de 'mods/ITEMS/mcl_fishing/locale/mcl_fishing.fr.tr' 2022-07-19 20:01:39 +00:00
3raven 5f4327caf0 Update 2022-07-19 19:40:32 +00:00
3raven 851bc14bbc Update+rangement 2022-07-19 19:30:34 +00:00
kay27 ee5d45152d #375 Use single ABM for all hopper logic, fix hopper model, clean up hopper code 2022-07-19 18:01:36 +03:00
3raven 4db9cf7e9f Typo and misspell 2022-07-19 02:11:03 +00:00
3raven 4ba679b011 Mise à jour de 'mods/ITEMS/mcl_cartography_table/locale/mcl_cartography_table.fr.tr' 2022-07-19 01:56:31 +00:00
3raven c284e48143 Ajouter 'mods/ITEMS/mcl_cartography_table/locale/mcl_cartography_table' 2022-07-19 01:54:29 +00:00
3raven 9158201c51 TO DO : add translations 2022-07-19 01:51:00 +00:00
kay27 e80f95710d #375 Better detect hopper touches 2022-07-19 04:42:30 +03:00
3raven 4551df1d0c Mise à jour de 'mods/ITEMS/mcl_bows/locale/mcl_bows.fr.tr' 2022-07-19 01:41:07 +00:00
3raven b1ea2ad9c9 Ajouter 'mods/ITEMS/mcl_blast_furnace/locale/mcl_blast_furnace.fr.tr' 2022-07-19 01:30:23 +00:00
kay27 3d656522f2 #375 Make hoppers suck in items above again 2022-07-19 04:29:27 +03:00
3raven 7afdc48d0d Mise à jour de 'mods/ITEMS/mcl_nether/locale/mcl_nether.fr.tr' 2022-07-19 01:16:09 +00:00
3raven 5495c67c7d Mise à jour de 'mods/ITEMS/mcl_blackstone/locale/mcl_blackstone.fr.tr' 2022-07-19 01:04:23 +00:00
3raven 329576f8e8 Update 2022-07-19 00:51:33 +00:00
3raven e1436c6913 Update 2022-07-19 00:48:50 +00:00
3raven 0d42106bc8 Better translation 2022-07-19 00:36:14 +00:00
3raven 4f9b40b6ab Update 2022-07-19 00:28:57 +00:00
kay27 d0cd3ad478 Update credits 2022-07-18 03:10:00 +03:00
kay27 14e1842820 Merge pull request '#373 Grow cactus in inactive areas/during skipped nights' (#374) from grow_cactus_in_inactive_areas into testing
Reviewed-on: MineClone5/MineClone5#374
2022-07-17 02:25:15 +00:00
kay27 2772303fc0 #373 Fix generated dropped cactee 2022-07-17 04:16:44 +03:00
kay27 1cebafee80 Remove tabs 2022-07-17 04:08:21 +03:00
kay27 7f02781339 Localize lava_spark_add() 2022-07-17 04:04:39 +03:00
kay27 69b66c2e3c Merge testing into grow_cactus_in_inactive_areas 2022-07-17 03:50:00 +03:00
kay27 9210e05eba #373 Grow cactus in inactive areas/during skipped nights 2022-07-17 03:27:12 +03:00
kay27 f4e44acb94 #372 Prevent crash in mcl_shields/init:181 2022-07-17 02:00:37 +03:00
kay27 08846bef2f Merge master into testing 2022-07-17 01:53:37 +03:00
kay27 ec00351041 Merge pull request 'fox_fixes' (#368) from SumianVoice/MineClone5_c:fox_fixes into master
Reviewed-on: MineClone5/MineClone5#368
2022-07-15 13:57:18 +00:00
Sumyjkl 3ec5a26aa1 removed unnecessary added debugging code 2022-07-14 15:12:43 +10:00
Sumyjkl b2bebd1d8d comments and changed scare distance 2022-07-14 14:57:30 +10:00
Sumyjkl 0a3190887c made fox run from player 2022-07-14 14:46:00 +10:00
Sumyjkl 56b1cc8d75 Update fox to fix some bugs with sliding and jittering 2022-07-14 13:24:02 +10:00
kay27 ea8d96389f Merge master into testing 2022-07-10 17:29:05 +03:00
kay27 f2ae6a9d02 Merge pull request 'Advanced Skins Mod' (#313) from MrRar/MineClone5:skins into master
Reviewed-on: MineClone5/MineClone5#313
2022-07-10 14:27:49 +00:00
kay27 1b9af42521 #362 Fix comment typo 2022-07-10 17:17:46 +03:00
kay27 3bc3540ead #362 Cover world edges by mapgen API 2022-07-10 17:15:30 +03:00
kay27 01b2f65309 #361 Fix a crash in mcl_copper/functions.lua:71 2022-07-10 16:08:40 +03:00
kay27 eefaba3f49 Merge master into testing 2022-07-10 15:55:40 +03:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 4ca2fb25a7 Add advanced skins mod 2022-07-09 10:52:28 -05:00
kay27 0ad52fd949 Merge pull request 'Replace PP textures for villager job sites' (#359) from MrRar/MineClone5:pp_textures into master
Reviewed-on: MineClone5/MineClone5#359
2022-07-06 21:58:55 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2905a21674 Replace PP textures for villager job sites 2022-07-06 13:38:12 -05:00
kay27 98855596f9 Merge remote-tracking branch 'origin/master' into testing 2022-07-05 15:02:23 +03:00
kay27 b679fd8a13 Merge pull request 'Stop creeper explosion sequence if target leaves line of sight' (#348) from Gustavo6046/MineClone5:improve/creepers into master
Reviewed-on: MineClone5/MineClone5#348
2022-07-04 08:22:11 +00:00
wallabra 2caf2bf1b8
Merge branch 'master' into improve/creepers 2022-07-04 03:41:54 -03:00
wallabra 6b78abd79c
Merge remote-tracking branch 'origin/improve/creepers' into improve/creepers 2022-07-04 03:41:25 -03:00
kay27 7640edabcc Merge pull request 'Remove 2D preview + fix enchanting overlay by AFCMS' (#311) from MrRar/MineClone5:armor2d into master
Reviewed-on: MineClone5/MineClone5#311
2022-07-04 01:38:55 +00:00
kay27 690b0782a5 Merge pull request 'Polish the behaviour of hoppers' (#350) from Gustavo6046/MineClone5:improve/hoppers into master
Reviewed-on: MineClone5/MineClone5#350
2022-07-03 01:53:42 +00:00
wallabra 2eda3a6971 Merge branch 'master' into improve/creepers 2022-06-23 21:27:13 +00:00
wallabra b8f89e5569
Add missing local definition of var downpos 2022-06-23 18:23:29 -03:00
wallabra f3cc8f0f8a
Fix get_item_group crash in mcl_hoppers 2022-06-23 14:29:36 -03:00
wallabra 5307908290
Merge branch 'master' into improve/creepers 2022-06-21 17:31:46 -03:00
wallabra 588afc72f0
Merge branch 'master' into improve/hoppers 2022-06-21 17:31:40 -03:00
kay27 fa46332870 Merge pull request 'Improve underwater item physics' (#351) from Gustavo6046/MineClone5:item-physics into master
Reviewed-on: MineClone5/MineClone5#351
2022-06-21 19:59:19 +00:00
wallabra d57097baef
Fix syntax error with hopper check 2022-06-20 20:37:15 -03:00
wallabra 54e9477f37
Fix hopper downpos priority check 2022-06-20 17:05:18 -03:00
wallabra 3502e504bf
Merge branch 'master' into improve/creepers 2022-06-20 16:45:22 -03:00
wallabra ff0e0dd36a
Merge branch 'master' into improve/hoppers 2022-06-20 16:45:11 -03:00
wallabra 218990c114
Merge branch 'master' into item-physics 2022-06-20 16:45:00 -03:00
kay27 56ab442645 #346 Cleanup the fix 2022-06-19 02:25:29 +03:00
kay27 acda4deb3b #346 Quickfix indexing nil savetable in doc/doc 2022-06-19 02:13:49 +03:00
kay27 8b2cce4399 Merge master into testing 2022-06-19 02:01:45 +03:00
kay27 8a0ce314a2 #123 Update readme 2022-05-09 06:01:36 +03:00
kay27 da3034cadd #310 Make tridents do not say 261 2022-05-09 05:55:20 +03:00
kay27 0d8c9c8577 Merge master into testing 2022-05-09 05:39:23 +03:00
kay27 0ed8976aae Remove continuous warnings 2022-05-09 05:38:52 +03:00
AFCMS 48c8eaa6ed Remove 2D preview by AFCMS 2022-05-06 12:53:30 -05:00
AFCMS a4655a0c23 Fix player armor enchanting overlay (#2161) 2022-05-06 08:37:15 -05:00
AFCMS 4af046500d Remove preview files 2022-05-06 08:35:37 -05:00
kay27 69bc5dbb16 Fix UNIQUE constraint failed: auth.name in callback createAuth() 2022-04-29 02:43:25 +03:00
kay27 b8b9683d50 Merge master into testing 2022-04-25 01:58:53 +03:00
chmodsayshello 25ff05635a Merge pull request 'Update Fork' (#8) from MineClone5/MineClone5:master into master
Reviewed-on: chmodsayshello/MineClone5#8
2022-03-29 15:39:19 +00:00
wallabra 024904eadd
Use get_item_group accessor in hopper code 2022-02-19 12:45:11 -03:00
wallabra 2c8194bd6d
Slight reorder to prevent race condition in hopper item collection 2022-02-17 21:34:01 -03:00
wallabra 0c6da14e1f
Set _removed to true in item entities sucked by hoppers
This double-check might just prevent future commits from triggering regressions
allowing hoppers to duplicate items.
2022-02-17 21:32:55 -03:00
wallabra 0af898fc6e
Ensure flowing items don't affect collection animation 2022-02-17 21:15:46 -03:00
wallabra 6002057839
Stop creeper explosion sequence if target leaves line of sight 2022-02-17 17:53:16 -03:00
wallabra eee07f56b5
Make sideways hoppers try pushing down before sideways
This is consistent with its behaviour in Minecraft.
2022-02-17 17:40:10 -03:00
wallabra 09854a9af4
Change effect of gravity on submerged items 2022-02-17 17:08:58 -03:00
305 changed files with 4394 additions and 1908 deletions

View File

@ -31,6 +31,12 @@ Refer to [Minetest Lua API](https://github.com/minetest/minetest/blob/master/doc
Follow [Lua code style guidelines](https://dev.minetest.net/Lua_code_style_guidelines). Use tabs, not spaces for indentation (tab size = 8). Never use `minetest.env`.
If you do a translation, try detecting translational issues with `check_translate_files.py` - just run it from tools folder:
```bash
# python3 check_translate_files.py fr | less
```
(`fr` is a language code)
Check your code works as expected.
Commit & push your changes to a new branch (not master, one change per a branch).

View File

@ -70,7 +70,11 @@ an explanation.
## Installation
This game requires latest stable [Minetest](http://minetest.net) to run, please install
it first. Only stable versions of Minetest are officially supported.
it first. Only latest stable version of Minetest is officially supported.
There are lots of questions about Ubuntu, which has minetest-5.1.1 still.
Please, first of all, visit this page, it should fix the problem: https://launchpad.net/~minetestdevs/+archive/ubuntu/stable
Also, here is endless issue #123: https://git.minetest.land/MineClone5/MineClone5/issues/123 - really less preferable way.
There is no support for running MineClone 5 in development versions of Minetest.
To install MineClone 5 (if you haven't already), move this directory into the

View File

@ -0,0 +1,2 @@
# textdomain:mcl_explosions
@1 was caught in an explosion.=@1 es mòrt(a) dins una petarada.

View File

@ -148,16 +148,48 @@ local chunk_scan_range = {
[ CS_NODES] = {LAST_BLOCK+1, LAST_BLOCK+1},
}
local EDGE_MIN = mcl_mapgen.EDGE_MIN
local EDGE_MAX = mcl_mapgen.EDGE_MAX
local function is_chunk_finished(minp)
local center = vector.add(minp, HALF_CS_NODES)
for check_x = center.x - CS_NODES, center.x + CS_NODES, CS_NODES do
for check_y = center.y - CS_NODES, center.y + CS_NODES, CS_NODES do
for check_z = center.z - CS_NODES, center.z + CS_NODES, CS_NODES do
local pos = vector.new(check_x, check_y, check_z)
if pos ~= center then
minetest_get_voxel_manip():read_from_map(pos, pos)
local node = minetest_get_node(pos)
local center_x = minp.x + HALF_CS_NODES
local center_y = minp.y + HALF_CS_NODES
local center_z = minp.z + HALF_CS_NODES
local from_x = center_x - CS_NODES
local from_y = center_y - CS_NODES
local from_z = center_z - CS_NODES
local to_x = center_x + CS_NODES
local to_y = center_y + CS_NODES
local to_z = center_z + CS_NODES
if from_x < EDGE_MIN then from_x = center_x end
if from_y < EDGE_MIN then from_y = center_y end
if from_z < EDGE_MIN then from_z = center_z end
if to_x > EDGE_MAX then to_x = center_x end
if to_y > EDGE_MAX then to_y = center_y end
if to_z > EDGE_MAX then to_z = center_z end
for check_x = from_x, to_x, CS_NODES do
local are_we_in_central_chunk = check_x == center_x
for check_y = from_y, to_y, CS_NODES do
are_we_in_central_chunk = are_we_in_central_chunk and (check_y == center_y)
for check_z = from_z, to_z, CS_NODES do
are_we_in_central_chunk = are_we_in_central_chunk and (check_z == center_z)
if not are_we_in_central_chunk then
local check_pos = {x = check_x, y = check_y, z = check_z}
minetest_get_voxel_manip():read_from_map(check_pos, check_pos)
local node = minetest_get_node(check_pos)
if node.name == "ignore" then
-- return nil, means false, means, there is something to generate still,
-- (because one of adjacent chunks is unfinished - "ignore" means that),
-- means this chunk will be changed, at least one of its sides or corners
-- means it's unsafe to place anything there right now, it might disappar,
-- better to wait, see the diagram of conflict/ok areas per a single axis:
-- conflict| ok |conflict|conflict| ok |conflict|conflict| ok |conflict
-- (_________Chunk1_________)|(_________Chunk2_________)|(_________Chunk3_________)
-- [Block1]|[MidBlk]|[BlockN]|[Block1]|[MidBlk]|[BlockN]|[Block1]|[MidBlk]|[BlockN]
-- \_____________Chunk2-with-shell____________/
-- ...______Chunk1-with-shell________/ \________Chunk3-with-shell______...
-- Generation of chunk 1 AFFECTS 2 ^^^ ^^^ Generation of chunk 3 affects 2
-- ^^^^^^^^Chunk 2 gen. affects 1 and 3^^^^^^^^
return
end
end
@ -362,7 +394,17 @@ minetest.register_on_generated(function(minp, maxp, chunkseed)
end
end)
minetest.register_on_generated = mcl_mapgen.register_chunk_generator
local register_on_generated_old = minetest.register_on_generated
minetest.register_on_generated = function(...)
minetest.log("warning", "minetest.register_on_generated() is being called by the mod '"
.. minetest.get_current_modname() .. "'. MineClone5's map generation system avoids using "
.. "this callback to work around engine map generation issues. If possible please read "
.. "mods/CORE/mcl_mapgen/API.md and update " .. minetest.get_current_modname()
.. " to use the method described from there. MineClone5 makes no promises that "
.. "mapgen mods will be fully compatible with it, please test your server and use at "
.. "your own risk.")
return register_on_generated_old(...)
end
function mcl_mapgen.get_far_node(p)
local p = p
@ -408,6 +450,21 @@ function mcl_mapgen.get_chunk_number(pos) -- unsigned int
c.x + k_positive
end
-- Components of this game should register functions here to update their internal
-- state when external mods modify mapgen settings that they care about.
local settings_changed_callbacks = {}
function mcl_mapgen.register_on_settings_changed(callback)
table.insert(settings_changed_callbacks, callback)
end
-- this is to be called by external mods after modifying these settings
-- to notify Mineclone that it needs to update local copies and whatever's based on them.
function mcl_mapgen.on_settings_changed()
for _, callback in pairs(settings_changed_callbacks) do
callback()
end
end
mcl_mapgen.minecraft_height_limit = 256
mcl_mapgen.bedrock_is_rough = normal

View File

@ -1,5 +1,11 @@
mcl_util = {}
local minetest_get_item_group = minetest.get_item_group
local minetest_get_meta = minetest.get_meta
local minetest_get_node = minetest.get_node
local minetest_get_node_timer = minetest.get_node_timer
local table_copy = table.copy
-- Updates all values in t using values from to*.
function table.update(t, ...)
for _, to in ipairs{...} do
@ -33,36 +39,6 @@ function mcl_util.rotate_axis(itemstack, placer, pointed_thing)
return itemstack
end
-- Returns position of the neighbor of a double chest node
-- or nil if node is invalid.
-- This function assumes that the large chest is actually intact
-- * pos: Position of the node to investigate
-- * param2: param2 of that node
-- * side: Which "half" the investigated node is. "left" or "right"
function mcl_util.get_double_container_neighbor_pos(pos, param2, side)
if side == "right" then
if param2 == 0 then
return {x=pos.x-1, y=pos.y, z=pos.z}
elseif param2 == 1 then
return {x=pos.x, y=pos.y, z=pos.z+1}
elseif param2 == 2 then
return {x=pos.x+1, y=pos.y, z=pos.z}
elseif param2 == 3 then
return {x=pos.x, y=pos.y, z=pos.z-1}
end
else
if param2 == 0 then
return {x=pos.x+1, y=pos.y, z=pos.z}
elseif param2 == 1 then
return {x=pos.x, y=pos.y, z=pos.z-1}
elseif param2 == 2 then
return {x=pos.x-1, y=pos.y, z=pos.z}
elseif param2 == 3 then
return {x=pos.x, y=pos.y, z=pos.z+1}
end
end
end
-- Iterates through all items in the given inventory and
-- returns the slot of the first item which matches a condition.
-- Returns nil if no item was found.
@ -87,7 +63,7 @@ end
-- Returns true if itemstack is a shulker box
local function is_not_shulker_box(itemstack)
local g = minetest.get_item_group(itemstack:get_name(), "shulker_box")
local g = minetest_get_item_group(itemstack:get_name(), "shulker_box")
return g == 0 or g == nil
end
@ -133,136 +109,116 @@ end
--- source_stack_id (optional): The inventory position ID of the source inventory to take the item from (-1 for slot of the first valid item; -1 is default)
--- destination_list (optional): List name of the destination inventory. Default is normally "main"; "src" for furnace
-- Returns true on success and false on failure.
local SHULKER_BOX = 3
local FURNACE = 4
local DOUBLE_CHEST_LEFT = 5
local DOUBLE_CHEST_RIGHT = 6
local CONTAINER_GROUP_TO_LIST = {
[1] = "main",
[2] = "main",
[SHULKER_BOX] = "main",
[FURNACE] = "dst",
[DOUBLE_CHEST_LEFT] = "main",
[DOUBLE_CHEST_RIGHT] = "main",
}
function mcl_util.move_item_container(source_pos, destination_pos, source_list, source_stack_id, destination_list)
local dpos = table.copy(destination_pos)
local spos = table.copy(source_pos)
local snode = minetest.get_node(spos)
local dnode = minetest.get_node(dpos)
local dctype = minetest.get_item_group(dnode.name, "container")
local sctype = minetest.get_item_group(snode.name, "container")
-- Container type 7 does not allow any movement
if sctype == 7 then
return false
end
-- Normalize double container by forcing to always use the left segment first
local function normalize_double_container(pos, node, ctype)
if ctype == 6 then
pos = mcl_util.get_double_container_neighbor_pos(pos, node.param2, "right")
if not pos then
return false
end
node = minetest.get_node(pos)
ctype = minetest.get_item_group(node.name, "container")
-- The left segment seems incorrect? We better bail out!
if ctype ~= 5 then
return false
end
local spos = table_copy(source_pos)
local snode = minetest_get_node(spos)
local sctype = minetest_get_item_group(snode.name, "container")
local default_source_list = CONTAINER_GROUP_TO_LIST[sctype]
if not default_source_list then return end
if sctype == DOUBLE_CHEST_RIGHT then
local sparam2 = snode.param2
if sparam2 == 0 then spos.x = spos.x - 1
elseif sparam2 == 1 then spos.z = spos.z + 1
elseif sparam2 == 2 then spos.x = spos.x + 1
elseif sparam2 == 3 then spos.z = spos.z - 1
end
return pos, node, ctype
snode = minetest_get_node(spos)
sctype = minetest_get_item_group(snode.name, "container")
if sctype ~= DOUBLE_CHEST_LEFT then return end
end
spos, snode, sctype = normalize_double_container(spos, snode, sctype)
dpos, dnode, dctype = normalize_double_container(dpos, dnode, dctype)
if not spos or not dpos then return false end
local smeta = minetest.get_meta(spos)
local dmeta = minetest.get_meta(dpos)
local smeta = minetest_get_meta(spos)
local sinv = smeta:get_inventory()
local source_list = source_list or default_source_list
local dpos = table_copy(destination_pos)
local dnode = minetest_get_node(dpos)
local dctype = minetest_get_item_group(dnode.name, "container")
local default_destination_list = CONTAINER_GROUP_TO_LIST[sctype]
if not default_destination_list then return end
if dctype == DOUBLE_CHEST_RIGHT then
local dparam2 = dnode.param2
if dparam2 == 0 then dpos.x = dpos.x - 1
elseif dparam2 == 1 then dpos.z = dpos.z + 1
elseif dparam2 == 2 then dpos.x = dpos.x + 1
elseif dparam2 == 3 then dpos.z = dpos.z - 1
end
dnode = minetest_get_node(dpos)
dctype = minetest_get_item_group(dnode.name, "container")
if dctype ~= DOUBLE_CHEST_LEFT then return end
end
local dmeta = minetest_get_meta(dpos)
local dinv = dmeta:get_inventory()
-- Default source lists
if not source_list then
-- Main inventory for most container types
if sctype == 2 or sctype == 3 or sctype == 5 or sctype == 6 or sctype == 7 then
source_list = "main"
-- Furnace: output
elseif sctype == 4 then
source_list = "dst"
-- Unknown source container type. Bail out
else
return false
end
end
-- Automatically select stack slot ID if set to automatic
if not source_stack_id then
source_stack_id = -1
end
local source_stack_id = source_stack_id or -1
if source_stack_id == -1 then
local cond = nil
-- Prevent shulker box inception
if dctype == 3 then
cond = is_not_shulker_box
end
if dctype == SHULKER_BOX then cond = is_not_shulker_box end
source_stack_id = mcl_util.get_eligible_transfer_item_slot(sinv, source_list, dinv, dpos, cond)
if not source_stack_id then
-- Try again if source is a double container
if sctype == 5 then
spos = mcl_util.get_double_container_neighbor_pos(spos, snode.param2, "left")
smeta = minetest.get_meta(spos)
sinv = smeta:get_inventory()
source_stack_id = mcl_util.get_eligible_transfer_item_slot(sinv, source_list, dinv, dpos, cond)
if not source_stack_id then
return false
if sctype == DOUBLE_CHEST_LEFT then
local sparam2 = snode.param2
if sparam2 == 0 then spos.x = spos.x + 1
elseif sparam2 == 1 then spos.z = spos.z - 1
elseif sparam2 == 2 then spos.x = spos.x - 1
elseif sparam2 == 3 then spos.z = spos.z + 1
end
else
return false
snode = minetest_get_node(spos)
sctype = minetest_get_item_group(snode.name, "container")
if sctype ~= DOUBLE_CHEST_RIGHT then return end
smeta = minetest_get_meta(spos)
sinv = smeta:get_inventory()
source_stack_id = mcl_util.get_eligible_transfer_item_slot(sinv, source_list, dinv, dpos, cond)
end
end
if not source_stack_id then return end
end
-- Abort transfer if shulker box wants to go into shulker box
if dctype == 3 then
if dctype == SHULKER_BOX then
local stack = sinv:get_stack(source_list, source_stack_id)
if stack and minetest.get_item_group(stack:get_name(), "shulker_box") == 1 then
return false
end
end
-- Container type 7 does not allow any placement
if dctype == 7 then
return false
if stack and minetest_get_item_group(stack:get_name(), "shulker_box") == 1 then return end
end
-- If it's a container, put it into the container
if dctype ~= 0 then
-- Automatically select a destination list if omitted
if not destination_list then
-- Main inventory for most container types
if dctype == 2 or dctype == 3 or dctype == 5 or dctype == 6 or dctype == 7 then
destination_list = "main"
-- Furnace source slot
elseif dctype == 4 then
destination_list = "src"
local destination_list = destination_list or default_destination_list
-- Move item
local ok = mcl_util.move_item(sinv, source_list, source_stack_id, dinv, destination_list)
-- Try transfer to neighbor node if transfer failed and double container
if not ok then
if dctype == DOUBLE_CHEST_LEFT then
local dparam2 = dnode.param2
if dparam2 == 0 then dpos.x = dpos.x + 1
elseif dparam2 == 1 then dpos.z = dpos.z - 1
elseif dparam2 == 2 then dpos.x = dpos.x - 1
elseif dparam2 == 3 then dpos.z = dpos.z + 1
end
end
if destination_list then
-- Move item
local ok = mcl_util.move_item(sinv, source_list, source_stack_id, dinv, destination_list)
-- Try transfer to neighbor node if transfer failed and double container
if not ok and dctype == 5 then
dpos = mcl_util.get_double_container_neighbor_pos(dpos, dnode.param2, "left")
dmeta = minetest.get_meta(dpos)
dinv = dmeta:get_inventory()
ok = mcl_util.move_item(sinv, source_list, source_stack_id, dinv, destination_list)
end
-- Update furnace
if ok and dctype == 4 then
-- Start furnace's timer function, it will sort out whether furnace can burn or not.
minetest.get_node_timer(dpos):start(1.0)
end
return ok
dnode = minetest_get_node(dpos)
dctype = minetest_get_item_group(dnode.name, "container")
if dctype ~= DOUBLE_CHEST_RIGHT then return end
dmeta = minetest_get_meta(dpos)
dinv = dmeta:get_inventory()
ok = mcl_util.move_item(sinv, source_list, source_stack_id, dinv, destination_list)
end
end
return false
-- Update furnace
if ok and dctype == FURNACE then
-- Start furnace's timer function, it will sort out whether furnace can burn or not.
minetest_get_node_timer(dpos):start(1.0)
end
return ok
end
-- Returns the ID of the first non-empty slot in the given inventory list
@ -292,7 +248,7 @@ function mcl_util.generate_on_place_plant_function(condition)
end
-- Call on_rightclick if the pointed node defines it
local node = minetest.get_node(pointed_thing.under)
local node = minetest_get_node(pointed_thing.under)
if placer and not placer:get_player_control().sneak then
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack
@ -300,8 +256,8 @@ function mcl_util.generate_on_place_plant_function(condition)
end
local place_pos
local def_under = minetest.registered_nodes[minetest.get_node(pointed_thing.under).name]
local def_above = minetest.registered_nodes[minetest.get_node(pointed_thing.above).name]
local def_under = minetest.registered_nodes[minetest_get_node(pointed_thing.under).name]
local def_above = minetest.registered_nodes[minetest_get_node(pointed_thing.above).name]
if not def_under or not def_above then
return itemstack
end
@ -359,7 +315,7 @@ function mcl_util.call_on_rightclick(itemstack, player, pointed_thing)
-- Call on_rightclick if the pointed node defines it
if pointed_thing and pointed_thing.type == "node" then
local pos = pointed_thing.under
local node = minetest.get_node(pos)
local node = minetest_get_node(pos)
if player and not player:get_player_control().sneak then
local nodedef = minetest.registered_nodes[node.name]
local on_rightclick = nodedef and nodedef.on_rightclick
@ -372,7 +328,7 @@ end
function mcl_util.calculate_durability(itemstack)
local unbreaking_level = mcl_enchanting.get_enchantment(itemstack, "unbreaking")
local armor_uses = minetest.get_item_group(itemstack:get_name(), "mcl_armor_uses")
local armor_uses = minetest_get_item_group(itemstack:get_name(), "mcl_armor_uses")
local uses

View File

@ -2,11 +2,18 @@ mcl_worlds = {}
local get_connected_players = minetest.get_connected_players
local min1, min2, min3
local max1, max2, max3
local get_local_settings = function()
min1, min2, min3 = mcl_mapgen.overworld.min, mcl_mapgen.end_.min, mcl_mapgen.nether.min
max1, max2, max3 = mcl_mapgen.overworld.max, mcl_mapgen.end_.max, mcl_mapgen.nether.max+128
end
get_local_settings()
mcl_mapgen.register_on_settings_changed(get_local_settings)
-- For a given position, returns a 2-tuple:
-- 1st return value: true if pos is in void
-- 2nd return value: true if it is in the deadly part of the void
local min1, min2, min3 = mcl_mapgen.overworld.min, mcl_mapgen.end_.min, mcl_mapgen.nether.min
local max1, max2, max3 = mcl_mapgen.overworld.max, mcl_mapgen.end_.max, mcl_mapgen.nether.max+128
function mcl_worlds.is_in_void(pos)
local y = pos.y
local void = not ((y < max1 and y > min1) or (y < max2 and y > min2) or (y < max3 and y > min3))

View File

@ -21,9 +21,11 @@ local S = minetest.get_translator("extra_mobs")
local followitem = "mcl_farming:sweet_berry"
local fox = {
type = "monster",
type = "animal",
passive = false,
spawn_class = "hostile",
skittish = true,
runaway = true,
hp_min = 10,
hp_max = 10,
xp_min = 1,
@ -32,9 +34,20 @@ local fox = {
attack_type = "dogfight",
damage = 2,
reach = 1.5,
jump = true,
makes_footstep_sound = true,
walk_velocity = 3,
run_velocity = 6,
follow_velocity = 2,
follow = followitem,
pathfinding = 1,
fear_height = 4,
view_range = 16,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.84, 0.3},
specific_attack = { "mobs_mc:chicken", "extra_mobs:cod", "extra_mobs:salmon" },
visual = "mesh",
mesh = "extra_mobs_fox.b3d",
rotate = 270,
textures = { {
"extra_mobs_fox.png",
"extra_mobs_trans.png",
@ -42,10 +55,6 @@ local fox = {
visual_size = {x=3, y=3},
sounds = {
},
jump = true,
makes_footstep_sound = true,
walk_velocity = 3,
run_velocity = 6,
drops = {
},
animation = {
@ -63,9 +72,9 @@ local fox = {
lay_start = 34,
lay_end = 34,
},
runaway = true,
on_spawn = function(self)
if minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:snow") ~= nil or minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:dirt_with_grass_snow") ~= nil then
if minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:snow") ~= nil
or minetest.find_node_near(self.object:get_pos(), 4, "mcl_core:dirt_with_grass_snow") ~= nil then
self.object:set_properties({textures={"extra_mobs_artic_fox.png", "extra_mobs_trans.png"}})
end
end,
@ -83,7 +92,11 @@ local fox = {
end)
end
for _,object in pairs(minetest.get_objects_inside_radius(self.object:get_pos(), 8)) do
if object and not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "extra_mobs:fox" and self.state ~= "attack" and math.random(1, 500) == 1 then
if object
and not object:is_player()
and object:get_luaentity()
and object:get_luaentity().name == "extra_mobs:fox"
and self.state ~= "attack" and math.random(1, 500) == 1 then
self.horny = true
end
local lp = object:get_pos()
@ -93,15 +106,30 @@ local fox = {
y = lp.y - s.y,
z = lp.z - s.z
}
if object and object:is_player() and not object:get_player_control().sneak or not object:is_player() and object:get_luaentity() and object:get_luaentity().name == "mobs_mc:wolf" then
self.state = "runaway"
self.object:set_rotation({x=0,y=(atan(vec.z / vec.x) + 3 * pi / 2) - self.rotate,z=0})
if self.reach > vector.distance(self.object:get_pos(), object:get_pos()) and self.timer > .9 then
self.timer = 0
object:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = self.damage}
}, nil)
-- scare logic
if (object
and object:is_player()
and not object:get_player_control().sneak)
or (not object:is_player()
and object:get_luaentity()
and object:get_luaentity().name == "mobs_mc:wolf") then
-- don't keep setting it once it's set
if not self.state == "runaway" then
self.state = "runaway"
self.object:set_rotation({x=0,y=(atan(vec.z / vec.x) + 3 * pi / 2) - self.rotate,z=0})
end
-- if it is within a distance of the player or wolf
if 6 > vector.distance(self.object:get_pos(), object:get_pos()) then
self.timer = self.timer + 1
-- have some time before getting scared
if self.timer > 6 then
self.timer = 0
-- punch the fox for the player, but don't do any damage
self.object:punch(object, 0, {
full_punch_interval = 0,
damage_groups = {fleshy = 0}
}, nil)
end
end
end
end
@ -109,10 +137,6 @@ local fox = {
do_punch = function(self)
self.state = "runaway"
end,
follow = followitem,
fear_height = 4,
view_range = 16,
specific_attack = { "mobs_mc:chicken", "extra_mobs:cod", "extra_mobs:salmon" },
}
mobs:register_mob("extra_mobs:fox", fox)
@ -146,21 +170,21 @@ mobs:spawn_setup({
--mobs:spawn_specific("extra_mobs:fox", "overworld", "ground", 0, minetest.LIGHT_MAX+1, 30, 6000, 3, 0, 500)
--[[
mobs:spawn_specific(
"extra_mobs:artic_fox",
"overworld",
"ground",
"extra_mobs:artic_fox",
"overworld",
"ground",
{
"ColdTaiga",
"IcePlainsSpikes",
"IcePlains",
"ExtremeHills+_snowtop",
},
0,
minetest.LIGHT_MAX+1,
30,
6000,
3,
mobs_mc.spawn_height.water,
0,
minetest.LIGHT_MAX+1,
30,
6000,
3,
mobs_mc.spawn_height.water,
mobs_mc.spawn_height.overworld_max)
]]--
-- spawn eggs

View File

@ -1,11 +1,11 @@
# textdomain:extra_mobs
Hoglin=Hoglin
piglin=Piglin
piglin Brute=Piglin Barbare
Piglin=Piglin
Piglin Brute=Piglin Barbare
Strider=Arpenteur
Fox=Renard
Cod=Poisson
Salmon=Saumon
dolphin=Dauphin
Dolphin=Dauphin
Glow Squid=Pieuvre Lumineuse
Glow Ink Sac=Sac d'Encre Lumineuse

View File

@ -1,11 +1,11 @@
# textdomain:extra_mobs
Hoglin=
piglin=
piglin Brute=
Piglin=
Piglin Brute=
Strider=
Fox=
Cod=
Salmon=
dolphin=
Dolphin=
Glow Squid=
Glow Ink Sac=

View File

@ -0,0 +1,13 @@
# textdomain: mcl_boats
Acacia Boat=Barca de Cacièr
Birch Boat=Barca de Bèç
Boat=Barca
Boats are used to travel on the surface of water.= Las Barcas permetàn de vogar per l'aiga.
Dark Oak Boat=Barca de Jàrric
Jungle Boat=Barca de Jungla
Oak Boat=Barca de Ròure
Obsidian Boat=Barca d'Obsidiana
Rightclick on a water source to place the boat. Rightclick the boat to enter it. Use [Left] and [Right] to steer, [Forwards] to speed up and [Backwards] to slow down or move backwards. Use [Sneak] to leave the boat, punch the boat to make it drop as an item.=Fasetz un clic dreit sobre una sorça d'aiga per botar la barca. Fasetz un clic dreit sobre la barca per ne'n dintrar. Utilisatz [Esquèrra] e [Dreita] per menar, [Davant] per accelerar, e [Darrèir] per alentir o recular. Utilizatz [S'acatar] per o quitar, picatz la barca per o faire tombar en objèct.
Spruce Boat=Barca de Sap
Water vehicle=Veïcule d'Aiga
Sneak to dismount=S'acatar per descendre

View File

@ -0,0 +1,3 @@
# textdomain: mcl_falling_nodes
@1 was smashed by a falling anvil.=@1 fuguèt espotit per una enclutge.
@1 was smashed by a falling block.=@1 fuguèt espotit per un blòc.

View File

@ -156,6 +156,10 @@ minetest.register_globalstep(function(dtime)
object:set_velocity({x=0,y=0,z=0})
object:set_acceleration({x=0,y=0,z=0})
if object._flowing then
object._flowing = false
end
object:move_to(checkpos)
pool[name] = pool[name] + 1
@ -795,6 +799,9 @@ minetest.register_entity(":__builtin:item", {
local oldvel = self.object:get_velocity() -- v is vector, vel is velocity
-- apply gravity *before* drag computations
oldvel.y = oldvel.y - get_gravity() * dtime
-- drag
local fluid_drag = item_drop_settings.fluid_drag
@ -808,12 +815,6 @@ minetest.register_entity(":__builtin:item", {
newv.x = newv.x - (oldvel.x - newv.x) * fluid_drag * dtime
newv.y = newv.y - (oldvel.y - newv.y) * fluid_drag * dtime
newv.z = newv.z - (oldvel.z - newv.z) * fluid_drag * dtime
newv.y = newv.y + -0.22 -- (keep slight downward thrust from previous version of code)
-- NOTE: is there any particular reason we have this, anyway?
-- since fluid drag is now on, we could as well just
-- apply gravity here; drag will slow down the fall
-- realistically
self.object:set_velocity({x = oldvel.x + newv.x * dtime, y = oldvel.y + newv.y * dtime, z = oldvel.z + newv.z * dtime})

View File

@ -417,7 +417,7 @@ function mobs:register_mob(name, def)
--on_breed = def.on_breed,
--on_grown = def.on_grown,
on_grown = def.on_grown,
--on_detach_child = mob_detach_child,

View File

@ -88,7 +88,7 @@ local function land_state_switch(self, dtime)
end
--ignore everything else if following
if mobs.check_following(self) and
if mobs.check_following(self, dtime) and
(not self.breed_lookout_timer or (self.breed_lookout_timer and self.breed_lookout_timer == 0)) and
(not self.breed_timer or (self.breed_timer and self.breed_timer == 0)) then
self.state = "follow"
@ -984,7 +984,7 @@ function mobs.mob_step(self, dtime)
--go get the closest player
if attacking then
mobs.do_head_logic(self, dtime, attacking)
self.memory = 6 --6 seconds of memory
--set initial punch timer
@ -1040,6 +1040,7 @@ function mobs.mob_step(self, dtime)
--don't break eye contact
if self.hostile and self.attacking then
mobs.set_yaw_while_attacking(self)
mobs.do_head_logic(self, dtime, self.attacking)
end
--perfectly reset pause_timer

View File

@ -26,6 +26,8 @@ local math_random = math.random
|_|
]]--
local minetest_line_of_sight = minetest.line_of_sight
mobs.explode_attack_walk = function(self,dtime)
--this needs an exception
@ -36,17 +38,27 @@ mobs.explode_attack_walk = function(self,dtime)
mobs.set_yaw_while_attacking(self)
local distance_from_attacking = vector_distance(self.object:get_pos(), self.attacking:get_pos())
local pos = self.object:get_pos()
local attack_pos = self.attacking:get_pos()
local distance_from_attacking = vector_distance(pos, attack_pos)
--make mob walk up to player within 2 nodes distance then start exploding
if distance_from_attacking >= self.reach and
--don't allow explosion to cancel unless out of the reach boundary
not (self.explosion_animation and self.explosion_animation > 0 and distance_from_attacking <= self.defuse_reach) then
if (
distance_from_attacking >= self.reach and
--don't allow explosion to cancel unless out of the reach boundary
not (self.explosion_animation and self.explosion_animation > 0 and distance_from_attacking <= self.defuse_reach) or
--don't allow creeper to finish exploding animation if can't see target
not minetest_line_of_sight(
{x = pos.x, y = pos.y + self.eye_height, z = pos.z},
{x = attack_pos.x, y = attack_pos.y + (self.attacking.eye_height or 0), z = attack_pos.z}
)
) then
mobs.set_velocity(self, self.run_velocity)
mobs.set_mob_animation(self,"run")
mobs.reverse_explosion_animation(self,dtime)
else
mobs.set_velocity(self,0)
@ -344,4 +356,4 @@ mobs.projectile_attack_fly = function(self, dtime)
mobs.shoot_projectile(self)
end
end
end
end

View File

@ -3,7 +3,7 @@ local minetest_get_objects_inside_radius = minetest.get_objects_inside_radius
local vector = vector
--check to see if someone nearby has some tasty food
mobs.check_following = function(self) -- returns true or false
mobs.check_following = function(self, dtime) -- returns true or false
--ignore
if not self.follow then
self.following_person = nil
@ -15,6 +15,7 @@ mobs.check_following = function(self) -- returns true or false
--check if the follower is a player incase they log out
if follower and follower:is_player() then
mobs.do_head_logic(self, dtime, follower)
local stack = follower:get_wielded_item()
--safety check
if not stack then
@ -145,11 +146,12 @@ end
--make the baby grow up
mobs.baby_grow_up = function(self)
self.baby = nil
self.visual_size = self.backup_visual_size
self.collisionbox = self.backup_collisionbox
self.selectionbox = self.backup_selectionbox
self.object:set_properties(self)
self.baby = nil
self.visual_size = self.backup_visual_size
self.collisionbox = self.backup_collisionbox
self.selectionbox = self.backup_selectionbox
self.object:set_properties(self)
if self.on_grown then self.on_grown(self) end
end
--makes the baby grow up faster with diminishing returns

View File

@ -1,14 +1,15 @@
local math = math
local vector = vector
local debug_head = minetest.settings:get_bool("mcl_debug_head_code", false)
--converts yaw to degrees
local degrees = function(yaw)
return yaw*180.0/math.pi
end
mobs.do_head_logic = function(self,dtime)
local player = minetest.get_player_by_name("singleplayer")
mobs.do_head_logic = function(self, dtime, player)
if not self.has_head == true then return end
local player = player or minetest.get_player_by_name("singleplayer")
local look_at = player:get_pos()
look_at.y = look_at.y + player:get_properties().eye_height
@ -25,15 +26,16 @@ mobs.do_head_logic = function(self,dtime)
pos = vector.add(pos, head_offset)
minetest.add_particle({
pos = pos,
velocity = {x=0, y=0, z=0},
acceleration = {x=0, y=0, z=0},
expirationtime = 0.2,
size = 1,
texture = "default_dirt.png",
})
if debug_head then
minetest.add_particle({
pos = pos,
velocity = {x=0, y=0, z=0},
acceleration = {x=0, y=0, z=0},
expirationtime = 0.2,
size = 1,
texture = "default_dirt.png",
})
end
local bone_pos = vector.new(0,0,0)
--(horizontal)
@ -89,10 +91,21 @@ mobs.do_head_logic = function(self,dtime)
head_pitch = head_pitch + self.head_pitch_modifier
end
if self.swap_y_with_x then
self.object:set_bone_position(self.head_bone, bone_pos, vector.new(degrees(head_pitch),degrees(head_yaw),0))
local head_bone = self.head_bone
if (type(head_bone) == "table") then
for _, v in pairs(head_bone) do
if self.swap_y_with_x then
self.object:set_bone_position(v, bone_pos, vector.new(degrees(head_pitch),degrees(head_yaw),0))
else
self.object:set_bone_position(v, bone_pos, vector.new(degrees(head_pitch),0,degrees(head_yaw)))
end
end
else
self.object:set_bone_position(self.head_bone, bone_pos, vector.new(degrees(head_pitch),0,degrees(head_yaw)))
if self.swap_y_with_x then
self.object:set_bone_position(head_bone, bone_pos, vector.new(degrees(head_pitch),degrees(head_yaw),0))
else
self.object:set_bone_position(head_bone, bone_pos, vector.new(degrees(head_pitch),0,degrees(head_yaw)))
end
end
--set_bone_position([bone, position, rotation])
end
end

View File

@ -1,11 +1,11 @@
# textdomain: mcl_mobs
Peaceful mode active! No monsters will spawn.=Mode paisible actif! Aucun monstre n'apparaîtra.
Peaceful mode active! No monsters will spawn.=Mode paisible actif ! Aucun monstre n'apparaîtra.
This allows you to place a single mob.=Cela vous permet de placer un seul mob.
Just place it where you want the mob to appear. Animals will spawn tamed, unless you hold down the sneak key while placing. If you place this on a mob spawner, you change the mob it spawns.=Placez-le là où vous voulez que le mob apparaisse. Les animaux apparaîtront apprivoisés, sauf si vous maintenez la touche furtive enfoncée pendant le placement. Si vous le placez sur un générateur de mob, vous changez le mob qu'il génère.
You need the “maphack” privilege to change the mob spawner.=Vous avez besoin du privilège "maphack" pour changer le générateur de mob.
Name Tag=Étiquette de nom
A name tag is an item to name a mob.=Une étiquette de nom est un élément pour nommer un mob.
Before you use the name tag, you need to set a name at an anvil. Then you can use the name tag to name a mob. This uses up the name tag.=Avant d'utiliser l'étiquette de nom, vous devez définir un nom sur une enclume. Ensuite, vous pouvez utiliser l'étiquette de nom pour nommer un mob. Cela utilise l'étiquette de nom.
Only peaceful mobs allowed!=Seuls les mobs pacifiques sont autorisés!
Only peaceful mobs allowed!=Seuls les mobs pacifiques sont autorisés !
Give names to mobs=Donne des noms aux mobs
Set name at anvil=Définir le nom sur l'enclume

View File

@ -0,0 +1,2 @@
# textdomain:mcl_paintings
Painting=Pintura

View File

@ -74,3 +74,4 @@ Tool Smith=Fabriquant d'outil
Cleric=Clerc
Nitwit=Crétin
Protects you from death while wielding it=Vous protège de la mort en le maniant
Pillager=Pillard

View File

@ -0,0 +1,77 @@
# textdomain: mobs_mc
Totem of Undying=Totèm d'Imortalitat
A totem of undying is a rare artifact which may safe you from certain death.=Un totèm d'imortalitat es un artefacte rara que pòt vos sauvar d'una mòrt surada.
The totem only works while you hold it in your hand. If you receive fatal damage, you are saved from death and you get a second chance with 1 HP. The totem is destroyed in the process, however.=
Agent=Agent
Bat=Ratapenada
Blaze=Blaze
Chicken=Pola
Cow=Vacha
Mooshroom=Champavacha
Creeper=Creeper
Ender Dragon=Drac de l'End
Enderman=Òme de l'End
Endermite=Endarna
Ghast=Trèva
Elder Guardian=Gardian Ainat
Guardian=Gardian
Horse=Ega
Skeleton Horse=Ega Esquelèta
Zombie Horse=Ega Mòrtaviva
Donkey=Asne
Mule=Miula
Iron Golem=Golèm de Fèrre
Llama=Lama
Ocelot=Ocelòt
Parrot=Papagai
Pig=Pòrc
Polar Bear=Ors Polar
Rabbit=Lapin
Killer Bunny=Lapin Tuaire
The Killer Bunny=Lo Lapin Tuaire
Sheep=Moton
Shulker=
Silverfish=
Skeleton=
Stray=
Wither Skeleton=
Magma Cube=
Slime=
Snow Golem=
Spider=
Cave Spider=
Squid=
Vex=
Evoker=
Illusioner=
Villager=
Vindicator=
Zombie Villager=
Witch=
Wither=
Wolf=
Husk=
Zombie=
Zombie Pigman=
Iron Horse Armor=
Iron horse armor can be worn by horses to increase their protection from harm a bit.=
Golden Horse Armor=
Golden horse armor can be worn by horses to increase their protection from harm.=
Diamond Horse Armor=
Diamond horse armor can be worn by horses to greatly increase their protection from harm.=
Place it on a horse to put on the horse armor. Donkeys and mules can't wear horse armor.=
Farmer=
Fisherman=
Fletcher=
Shepherd=
Librarian=
Cartographer=
Armorer=
Leatherworker=
Butcher=
Weapon Smith=
Tool Smith=
Cleric=
Nitwit=
Protects you from death while wielding it=
Pillager=

Binary file not shown.

View File

@ -87,11 +87,11 @@ mobs:register_mob("mobs_mc:sheep", {
swap_y_with_x = false,
reverse_head_yaw = false,
head_bone_pos_y = 3.6,
head_bone_pos_z = -0.6,
head_bone_pos_y = 0,
head_bone_pos_z = 0,
head_height_offset = 1.0525,
head_direction_offset = 0.5,
head_height_offset = 1.2,
head_direction_offset = 0,
head_pitch_modifier = 0,
--end head code
@ -117,7 +117,7 @@ mobs:register_mob("mobs_mc:sheep", {
},
animation = {
speed_normal = 25, run_speed = 65,
stand_start = 40, stand_end = 80,
stand_start = 0, stand_end = 0,
walk_start = 0, walk_end = 40,
run_start = 0, run_end = 40,
},
@ -330,6 +330,24 @@ mobs:register_mob("mobs_mc:sheep", {
return false
end
end,
on_spawn = function(self)
if self.baby then
self.animation = table.copy(self.animation)
self.animation.stand_start = 81
self.animation.stand_end = 81
self.animation.walk_start = 81
self.animation.walk_end = 121
self.animation.run_start = 81
self.animation.run_end = 121
end
return true
end,
on_grown = function(self)
self.animation = nil
local anim = self.current_animation
self.current_animation = nil -- Mobs Redo does nothing otherwise
mobs.set_mob_animation(self, anim)
end
})
mobs:spawn_specific(
"mobs_mc:sheep",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -229,19 +229,23 @@ mobs_mc.override.spawn = {
}
-- This table contains important spawn height references for the mob spawn height.
mobs_mc.override.spawn_height = {
water = tonumber(minetest.settings:get("water_level")) or 0, -- Water level in the Overworld
-- Overworld boundaries (inclusive)
overworld_min = mcl_mapgen.overworld.min,
overworld_max = mcl_mapgen.overworld.max,
-- Nether boundaries (inclusive)
nether_min = mcl_mapgen.nether.min,
nether_max = mcl_mapgen.nether.max,
-- End boundaries (inclusive)
end_min = mcl_mapgen.end_.min,
end_max = mcl_mapgen.end_.max,
}
local get_local_settings = function()
mobs_mc.override.spawn_height = {
water = tonumber(minetest.settings:get("water_level")) or 0, -- Water level in the Overworld
-- Overworld boundaries (inclusive)
overworld_min = mcl_mapgen.overworld.min,
overworld_max = mcl_mapgen.overworld.max,
-- Nether boundaries (inclusive)
nether_min = mcl_mapgen.nether.min,
nether_max = mcl_mapgen.nether.max,
-- End boundaries (inclusive)
end_min = mcl_mapgen.end_.min,
end_max = mcl_mapgen.end_.max,
}
end
get_local_settings()
mcl_mapgen.register_on_settings_changed(get_local_settings)

View File

@ -0,0 +1,4 @@
# textdomain: lightning
@1 was struck by lightning.=@1 fuguèt pica·t·da per lo tròn
Let lightning strike at the specified position or yourself=Pica lo tròn vès una posicion mencionada o sobre vosautr·e·a·s-mema
No position specified and unknown player=Pas de posicion mencionada e jogair·e·a pas conegu·t·da

View File

@ -1,4 +1,4 @@
# textdomain: lightning
@1 was struck by lightning.=@1 a été frappé(e) par la foudre.
Let lightning strike at the specified position or yourself=Fait frapper la foudre à la position spécifiée ou sur vous-même
Let lightning strike at the specified position or player. No parameter will strike yourself.=Fait frapper la foudre sur la position ou le joueur indiqué. Sans paramètre, la foudre frappera sur vous-même.
No position specified and unknown player=Aucune position spécifiée et joueur inconnu

View File

@ -0,0 +1,3 @@
# textdomain: mcl_void_damage
The void is off-limits to you!=Lo voeida es defendut per vosautr·e·a·s !
@1 fell into the endless void.=@1 es tombar dins la voeida infinida.

View File

@ -5,4 +5,4 @@ Error: No weather specified.=Erreur: Aucune météo spécifiée.
Error: Invalid parameters.=Erreur: Paramètres non valides.
Error: Duration can't be less than 1 second.=Erreur: La durée ne peut pas être inférieure à 1 seconde.
Error: Invalid weather specified. Use “clear”, “rain”, “snow” or “thunder”.=Erreur: Météo non valide spécifiée. Utilisez "clear" (clair), "rain" (pluie), "snow" (neige) ou "thunder" (tonnerre).
Toggles between clear weather and weather with downfall (randomly rain, thunderstorm or snow)=Bascule entre temps clair et temps avec chute (au hasard entre pluie, orage ou neige)
Toggles between clear weather and weather with downfall (randomly rain, thunderstorm or snow)=Bascule entre temps clair et temps avec des précipitations (au hasard entre pluie, orage ou neige)

View File

@ -611,11 +611,14 @@ do
io.close(file)
if string then
local savetable = minetest.deserialize(string)
for name, players_stored_data in pairs(savetable.players_stored_data) do
doc.data.players[name] = {}
doc.data.players[name].stored_data = players_stored_data
local savetable_players_stored_data = savetable and savetable.players_stored_data
if savetable_players_stored_data then
for name, players_stored_data in pairs(savetable_players_stored_data) do
doc.data.players[name] = {}
doc.data.players[name].stored_data = players_stored_data
end
minetest.log("action", "[doc] doc.mt successfully read.")
end
minetest.log("action", "[doc] doc.mt successfully read.")
end
end
end

View File

@ -17,7 +17,6 @@ Skeleton view range: -50%=
Creeper view range: -50%=
Damage: @1=
Damage (@1): @2=
Durability: @1
Healing: @1=
Healing (@1): @2=
Full punch interval: @1s=

View File

@ -1,4 +1,4 @@
# textdomain:awards
# textdomain: awards
@1/@2 chat messages=@1/@2 chat messages
@1/@2 crafted=@1/@2 fabrication
@1/@2 deaths=@1/@2 Mort
@ -6,12 +6,11 @@
@1/@2 game joins=@1/@2 sessions
@1/@2 placed=@1/@2 mis
@1 (got)=@1 (obtenu)
@1: @1=@1: @1
@1: @2=@1: @2
@1s awards:=Récompenses de @1:
(Secret Award)=(Récompense Secrètte)
<achievement ID>=<Succès ID>
<name>=<nom>
A Cat in a Pop-Tart?!=Un chat beurré ?!
Achievement gotten!=Succès obtenu !
Achievement gotten:=Succès obtenu :
Achievement gotten: @1=Succès obtenu : @1
@ -28,9 +27,9 @@ Join the game.=Rejoignez le jeu.
List awards in chat (deprecated)=Liste des récompenses dans le chat (obsolète)
Place a block: @1=Placer un bloc: @1
Place blocks: @1×@2=Placer des blocs: @1×@2
Secret Achievement gotten!=Succès secret obtenu !
Secret Achievement gotten:=Succès secret obtenu :
Secret Achievement gotten: @1=Succès secret obtenu : @1
Secret achievement gotten!=Succès secret obtenu !
Secret achievement gotten:=Succès secret obtenu :
Secret achievement gotten: @1=Succès secret obtenu : @1
Show details of an achievement=Afficher les détails d'un succès
Show, clear, disable or enable your achievements=Affichez, effacez, désactivez ou activez vos succès
Get this achievement to find out what it is.=Obtenez ce succès pour découvrir de quoi il s'agit.

View File

@ -1,4 +1,4 @@
# textdomain:awards
# textdomain: awards
@1/@2 chat messages=
@1/@2 crafted=
@1/@2 deaths=

View File

@ -234,6 +234,20 @@ awards.register_achievement("mcl:fishyBusiness", {
icon = "mcl_fishing_fishing_rod.png",
})
--Triggered in mcl_beacons
awards.register_achievement("mcl:beacon", {
title = S("Bring Home the Beacon"),
description = S("Use a beacon."),
icon = "beacon_achievement_icon.png",
})
awards.register_achievement("mcl:maxed_beacon", {
title = S("Beaconator"),
description = S("Use a fully powered beacon."),
icon = "beacon_achievement_icon.png",
})
-- Armor Advancements
--[[awards.register_achievement("mcl:suitUp", {
title = S("Suit Up"),

View File

@ -47,3 +47,7 @@ Use a crafting table to craft a wooden hoe from wooden planks and sticks.=Benutz
Use a crafting table to craft a wooden pickaxe from wooden planks and sticks.=Benutzen Sie eine Werkbank, um eine Holzspitzhacke aus Holzplanken und Stöcken zu fertigen.
Use obsidian and a fire starter to construct a Nether portal.=Benutzen Sie Obsidian und ein Feuerzeug, um ein Netherportal zu errichten.
Use wheat to craft a bread.=Benutzen Sie Weizen, um ein Brot zu machen.
Bring Home the Beacon=Den Nachbarn heimleuchten
Use a beacon.=Benutzen Sie ein Leuchtfeuer.
Beaconator=Leuchtturmwärter
Use a fully powered beacon.=Benutzen Sie ein vollständiges Leuchtfeuer.

View File

@ -63,3 +63,15 @@ Not Quite "Nine" Lives=Presque "neuf" vies
Charge a Respawn Anchor to the maximum.=Charger une Ancre de Réapparition au maximum.
The End?=L'End ?
Or the beginning?\nHint: Enter an end portal.=Ou le commencement ?\nAstuce : Entrer dans un portail de l'End.
Postmortal=Aux frontières de la mort
Use a Totem of Undying to cheat death.=Utiliser un Totem d'imortalité pour tromper la mort.
Sweet Dreams=Bonne nuit les petits
Sleep in a bed to change your respawn point.=Dormez dans un lit pour changer votre point de réapparition.
Serious Dedication=Sérieux dévouement
Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices.=Utilisez un lingot de netherite pour améliorez une houe, puis réévaluez complètement vos choix de vie.
Fishy Business=Merci pour le poisson
Catch a fish. \nHint: Catch a fish, salmon, clownfish, or pufferfish.=Attrapez un poisson. \nAstuce : attrapez un poisson, saumon, poisson-clown, ou poisson-globe.
What A Deal!=Adjugé, Vendu !
Successfully trade with a Villager.=Commercez avec succès avec un villageois.
Tactical Fishing=Pêche tactique
Catch a fish... without a fishing rod=Attrapez un poisson... sans canne à pêche

View File

@ -75,3 +75,7 @@ What A Deal!=
Successfully trade with a Villager.=
Tactical Fishing=
Catch a fish... without a fishing rod=
Bring Home the Beacon=
Use a beacon.=
Beaconator=
Use a fully powered beacon.=

View File

@ -6,6 +6,7 @@ Alexander Minges
aligator
ArTee3
Artem Arbatsky
balazsszalab
basxto
Benjamin Schötz
Blue Blancmange
@ -13,6 +14,7 @@ Booglejr
Brandon
Bu-Gee
bzoss
CableGuy67
chmodsayshello
Code-Sploit
cora
@ -31,6 +33,7 @@ Emojigit
epCode
erlehmann
FinishedFragment
FlamingRCCars
Glaucos Ginez
Gustavo Ramos Rehermann
Guy Liner
@ -39,6 +42,7 @@ HimbeerserverDE
iliekprogrammar
j1233
Jared Moody
Johannes Fritz
jordan4ibanez
kabou
kay27
@ -46,13 +50,14 @@ Laurent Rocher
Li0n
marcin-serwin
Marcin Serwin
Mark Roth
Mental-Inferno
Midgard
MysticTempest
Nicholas Niro
nickolas360
Nicu
nikolaus-albinger
Niklp
Nils Dagsson Moskopp
NO11
NO411
@ -60,6 +65,7 @@ Oil_boi
pitchum
PrairieAstronomer
PrairieWind
River River
Rocher Laurent
rootyjr
Rootyjr
@ -68,6 +74,7 @@ Sab Pyrope
Saku Laesvuori
sfan5
SmallJoker
Sumyjkl
superfloh247
Sven792
Sydney Gems
@ -75,6 +82,7 @@ talamh
TechDudie
Thinking
Tianyang Zhang
unknown
U.N.Owen
Wouters Dorian
wuniversales

View File

@ -1,8 +1,4 @@
Please run the following command to update contributor list:
```bash
# git log --pretty="%an" | sort | uniq >CONTRUBUTOR_LIST.txt
```
Please run `./update_credits.sh` from [tools](../../../tools) folder to update contributor list.
Please check that there is no error on execution, and `CONTRUBUTOR_LIST.txt` is updated.

View File

@ -1,59 +1,56 @@
# textdomain: mcl_death_messages
@1 was fatally hit by an arrow.=@1 a été mortellement touché par une flèche.
@1 has been killed with an arrow.=@1 a été tué avec une flèche.
@1 was shot by an arrow from @2.=@1 a été abattu par une flèche de @2.
@1 was shot by an arrow from a skeleton.=@1 a été abattu par une flèche d'un squelette.
@1 was shot by an arrow from a stray.=@1 a été abattu par une flèche d'un vagabond.
@1 was shot by an arrow from an illusioner.=@1 a été abattu par une flèche d'un illusionniste.
@1 was shot by an arrow.=@1 a été abattu par une flèche.
@1 forgot to breathe.=@1 a oublié de respirer.
@1 drowned.=@1 s'est noyé.
@1 ran out of oxygen.=@1 a manqué d'oxygène.
@1 was killed by @2.=@1 a été tué par @2.
@1 was killed.=@1 a été tué.
@1 was killed by a mob.=@1 a été tué par un mob.
@1 was burned to death by a blaze's fireball.=@1 a été brûlé vif par la boule de feu d'un blaze.
@1 was killed by a fireball from a blaze.=@1 a été tué par une boule de feu lors d'un blaze.
@1 was burned by a fire charge.=@1 a été brûlé par un incendie.
A ghast scared @1 to death.=Un ghast a éffrayé @1 à mort.
@1 has been fireballed by a ghast.=@1 a été pétrifié par un ghast.
@1 fell from a high cliff.=@1 est tombé d'une haute falaise.
@1 took fatal fall damage.=@1 a succombé à un chute mortelle.
@1 fell victim to gravity.=@1 a été victime de la gravité.
@1 died.=@1 est mort.
@1 was killed by a zombie.=@1 a été tué par un zombie.
@1 was killed by a baby zombie.=@1 a été tué par un bébé zombie.
@1 was killed by a blaze.=@1 a été tué par un blaze.
@1 was killed by a slime.=@1 a été tué par un slime.
@1 was killed by a witch.=@1 a été tué par un sorcier.
@1 was killed by a magma cube.=@1 a été tué par un cube de magma.
@1 was killed by a wolf.=@1 a été tué par un loup.
@1 was killed by a cat.=@1 a été tué par un chat.
@1 was killed by an ocelot.=@1 a été tué par un ocelot.
@1 was killed by an ender dragon.=@1 a été tué par un ender dragon.
@1 was killed by a wither.=@1 a été tué par un wither.
@1 was killed by an enderman.=@1 a été tué par un enderman.
@1 was killed by an endermite.=@1 a été tué par un endermite.
@1 was killed by a ghast.=@1 a été tué par un ghast.
@1 was killed by an elder guardian.=@1 a été tué par un grand gardien.
@1 was killed by a guardian.=@1 a été tué par un gardien.
@1 was killed by an iron golem.=@1 a été tué par un golem de fer.
@1 was killed by a polar_bear.=@1 a été tué par un ours blanc.
@1 was killed by a killer bunny.=@1 a été tué par un lapin tueur.
@1 was killed by a shulker.=@1 a été tué par un shulker.
@1 was killed by a silverfish.=@1 a été tué par un poisson d'argent.
@1 was killed by a skeleton.=@1 a été tué par un squelette.
@1 was killed by a stray.=@1 a été tué par un vagabond.
@1 was killed by a slime.=@1 a été tué par un slime.
@1 was killed by a spider.=@1 a été tué par une araignée.
@1 was killed by a cave spider.=@1 a été tué par une araignée venimeuse.
@1 was killed by a vex.=@1 a été tué par un vex.
@1 was killed by an evoker.=@1 a été tué par un invocateur.
@1 was killed by an illusioner.=@1 a été tué par un illusionniste.
@1 was killed by a vindicator.=@1 a été tué par un vindicateur.
@1 was killed by a zombie villager.=@1 a été tué par un villageois zombie.
@1 was killed by a husk.=@1 a été tué par un zombie momie.
@1 was killed by a baby husk.=@1 a été tué par un bébé zombie momie.
@1 was killed by a zombie pigman.=@1 a été tué par un zombie-couchon.
@1 was killed by a baby zombie pigman.=@1 a été tué par un bébé zombie-couchon
@1 was slain by @2.=@1 a été tué par @2
@1 went up in flames=@1 a marché dans les flammes
@1 walked into fire whilst fighting @2=@1 a marché dans les flammes en combattant @2
@1 was struck by lightning=@1 a été frappé par la foudre
@1 was struck by lightning whilst fighting @2=@1 a été frappé par la foudre en combattant @2
@1 burned to death=@1 a brûlé vif
@1 was burnt to a crisp whilst fighting @2=@1 a brûlé comme une saucisse en combattant @2
@1 tried to swim in lava=@1 a tenté de nager dans la lave
@1 tried to swim in lava to escape @2=@1 a tenté de nager dans la lave pour échapper à @2
@1 discovered the floor was lava=@1 a découvert que le sol était en lave
@1 walked into danger zone due to @2=@1 a marché dans la zone de danger à cause de @2
@1 suffocated in a wall=@1 est mort asphyxié dans un mur
@1 suffocated in a wall whilst fighting @2=@1 est mort asphyxié dans un mur en combattant @2
@1 drowned=@1 s'est noyé
@1 drowned whilst trying to escape @2=@1 s'est noyé en essayant d'échapper à @2
@1 starved to death=@1 est mort de faim
@1 starved to death whilst fighting @2=@1 est mort de faim en combattant @2
@1 was pricked to death=@1 a été piqué à mort
@1 walked into a cactus whilst trying to escape @2=@1 a marché dans un cactus en essayant d'échapper à @2
@1 hit the ground too hard=@1 a heurté le sol trop fort
@1 hit the ground too hard whilst trying to escape @2=@1 a heurté le sol trop fort en essayant d'échapper à @2
@1 experienced kinetic energy=@1 a expérimenté l'énergie cinétique
@1 experienced kinetic energy whilst trying to escape @2=@1 a expérimenté l'énergie cinétique en essayant d'échapper à @2
@1 fell out of the world=@1 est tombé hors du monde
@1 didn't want to live in the same world as @2=@1 ne voulait vivre dans le même monde que @2
@1 died=@1 est mort
@1 died because of @2=@1 est mort à cause de @2
@1 was killed by magic=@1 a été tué par magie
@1 was killed by magic whilst trying to escape @2=@1 a été tué par magie en essayant d'échapper à @2
@1 was killed by @2 using magic=@1 a été tué par @2 en utilisant la magie
@1 was killed by @2 using @3=@1 a été tué par @2 en utilisant @3
@1 was roasted in dragon breath=@1 a été rôti dans le souffle du dragon
@1 was roasted in dragon breath by @2=@1 a été rôti dans le souffle du dragon par @2
@1 withered away=@1 s'est flétri
@1 withered away whilst fighting @2=@1 s'est flétri en combattant @2
@1 was shot by a skull from @2=@1 a été abattu par un crane de @2
@1 was squashed by a falling anvil=@1 a été écrasé par une enclume
@1 was squashed by a falling anvil whilst fighting @2=@1 a été écrasé par une enclume en combattant @2
@1 was squashed by a falling block=@1 a été écrasé par un bloc tombant
@1 was squashed by a falling block whilst fighting @2=@1 a été écrasé par un bloc tombant en combattant @2
@1 was slain by @2=@1 a été tué par @2
@1 was slain by @2 using @3=@1 a été tué par @2 avec @3
@1 was shot by @2=@1 a été abattu par @2
@1 was shot by @2 using @3=@1 a été abattu par @2 avec @3
@1 was fireballed by @2=@1 a reçu une boule de feu de @2
@1 was fireballed by @2 using @3=@1 a reçu une boule de feu de @2 en utilisant @3
@1 was killed trying to hurt @2=@1 a été tué en essayant de blesser @2
@1 was killed by @3 trying to hurt @2=@1 a été tué par @3 en essayant de blesser @2
@1 blew up=@1 a explosé
@1 was blown up by @2=@1 a été explosé par @2
@1 was blown up by @2 using @3=@1 a été explosé par @2 en utilisant @3
@1 was squished too much=@1 a été trop écrabouillé
@1 was squashed by @2=@1 a été écrasé par @2
@1 went off with a bang=@1 est parti avec un bang
@1 went off with a bang due to a firework fired from @3 by @2=@1 est parti avec un bang à cause d'un feu d'artifice tiré de @3 par @2

View File

@ -33,7 +33,6 @@
@1 was roasted in dragon breath by @2=
@1 withered away=
@1 withered away whilst fighting @2=
@1 was killed by magic=
@1 was shot by a skull from @2=
@1 was squashed by a falling anvil=
@1 was squashed by a falling anvil whilst fighting @2=
@ -41,8 +40,6 @@
@1 was squashed by a falling block whilst fighting @2=
@1 was slain by @2=
@1 was slain by @2 using @3=
@1 was slain by @2=
@1 was slain by @2 using @3=
@1 was shot by @2=
@1 was shot by @2 using @3=
@1 was fireballed by @2=

View File

@ -1,14 +1,28 @@
local refresh_interval = .63
local huds = {}
local default_debug = 3
local default_debug = 5
local after = minetest.after
local get_connected_players = minetest.get_connected_players
local get_biome_name = minetest.get_biome_name
local get_biome_data = minetest.get_biome_data
local get_node = minetest.get_node
local format = string.format
local table_concat = table.concat
local floor = math.floor
local minetest_get_gametime = minetest.get_gametime
local get_voxel_manip = minetest.get_voxel_manip
local min1, min2, min3 = mcl_mapgen.overworld.min, mcl_mapgen.end_.min, mcl_mapgen.nether.min
local max1, max2, max3 = mcl_mapgen.overworld.max, mcl_mapgen.end_.max, mcl_mapgen.nether.max + 128
local min1, min2, min3
local max1, max2, max3
local CS
local get_local_settings = function()
min1, min2, min3 = mcl_mapgen.overworld.min, mcl_mapgen.end_.min, mcl_mapgen.nether.min
max1, max2, max3 = mcl_mapgen.overworld.max, mcl_mapgen.end_.max, mcl_mapgen.nether.max+128
CS = mcl_mapgen.CS_NODES
end
get_local_settings()
mcl_mapgen.register_on_settings_changed(get_local_settings)
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
@ -17,6 +31,7 @@ local storage = minetest.get_mod_storage()
local player_dbg = minetest.deserialize(storage:get_string("player_dbg") or "return {}") or {}
local function get_text(pos, bits)
local pos = pos
local bits = bits
if bits == 0 then return "" end
local y = pos.y
@ -27,16 +42,42 @@ local function get_text(pos, bits)
elseif y >= min2 and y <= max2 then
y = y - min2
end
local biome_data = get_biome_data(pos)
local biome_name = biome_data and get_biome_name(biome_data.biome) or "No biome"
local text
if bits == 1 then
text = biome_name
elseif bits == 2 then
text = format("x:%.1f y:%.1f z:%.1f", pos.x, y, pos.z)
elseif bits == 3 then
text = format("%s x:%.1f y:%.1f z:%.1f", biome_name, pos.x, y, pos.z)
local will_show_mapgen_status = bits % 8 > 3
local will_show_coordinates = bits % 4 > 1
local will_show_biome_name = bits % 2 > 0
local will_be_shown = {}
if will_show_biome_name then
local biome_data = get_biome_data(pos)
local biome_name = biome_data and get_biome_name(biome_data.biome) or "No biome"
will_be_shown[#will_be_shown + 1] = biome_name
end
if will_show_coordinates then
local coordinates = format("x:%.1f y:%.1f z:%.1f", pos.x, y, pos.z)
will_be_shown[#will_be_shown + 1] = coordinates
end
if will_show_mapgen_status then
local pos_x = floor(pos.x)
local pos_y = floor(pos.y)
local pos_z = floor(pos.z)
local c = 0
for x = pos_x - CS, pos_x + CS, CS do
for y = pos_y - CS, pos_y + CS, CS do
for z = pos_z - CS, pos_z + CS, CS do
local pos = {x = x, y = y, z = z}
get_voxel_manip():read_from_map(pos, pos)
local node = get_node(pos)
if node.name ~= "ignore" then c = c + 1 end
end
end
end
local p = floor(c / 27 * 100 + 0.5)
local status = format("Generated %u%% (%u/27 chunks)", p, c)
will_be_shown[#will_be_shown + 1] = status
end
local text = table_concat(will_be_shown, ' ')
return text
end
@ -82,11 +123,11 @@ minetest.register_on_authplayer(function(name, ip, is_success)
end)
minetest.register_chatcommand("debug",{
description = S("Set debug bit mask: 0 = disable, 1 = biome name, 2 = coordinates, 3 = all"),
description = S("Set debug bit mask: 0 = disable, 1 = biome name, 2 = coordinates, 4 = mapgen status, 7 = all"),
func = function(name, params)
local dbg = math.floor(tonumber(params) or default_debug)
if dbg < 0 or dbg > 3 then
minetest.chat_send_player(name, S("Error! Possible values are integer numbers from @1 to @2", 0, 3))
if dbg < 0 or dbg > 7 then
minetest.chat_send_player(name, S("Error! Possible values are integer numbers from @1 to @2", 0, 7))
return
end
if dbg == default_debug then

View File

@ -1,4 +1,4 @@
# textdomain: mcl_info
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 3 @= all=Réglage du masque de débugage : 0 @= désactiver, 1 @= nom de biome, 2 @= coordonnées, 3 @= tout=
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 4 @= mapgen status, 7 @= all=Réglage du masque de débugage : 0 @= désactiver, 1 @= nom de biome, 2 @= coordonnées, 4 @= mapgen status, 7 @= tout=
Error! Possible values are integer numbers from @1 to @2=Erreur ! Les valeurs autorisées sont des nombres entiers de @1 à @2
Debug bit mask set to @1=Masque de débugage réglé à @1
Debug bit mask set to @1=Masque de débugage réglé à @1

View File

@ -1,4 +1,4 @@
# textdomain: mcl_info
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 3 @= all=Установка отладочной битовой маски: 0 @= отключить, 1 @= биом, 2 @= координаты, 3 @= всё
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 4 @= mapgen status, 7 @= all=Установка отладочной битовой маски: 0 @= отключить, 1 @= биом, 2 @= координаты, 4 @= состояние мапгена, 7 @= всё
Error! Possible values are integer numbers from @1 to @2=Ошибка! Допустимые значения - целые числа от @1 до @2
Debug bit mask set to @1=Отладочной битовой маске присвоено значение @1

View File

@ -1,4 +1,4 @@
# textdomain: mcl_info
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 3 @= all=
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 4 @= mapgen status, 7 @= all=
Error! Possible values are integer numbers from @1 to @2=
Debug bit mask set to @1=

View File

@ -34,7 +34,7 @@ minetest.register_on_mods_loaded(function()
for name,def in pairs(minetest.registered_items) do
if (not def.groups.not_in_creative_inventory or def.groups.not_in_creative_inventory == 0) and def.description and def.description ~= "" then
local function is_redstone(def)
return def.mesecons or def.groups.mesecon or def.groups.mesecon_conductor_craftable or def.groups.mesecon_effecor_off
return def.mesecons or def.groups.mesecon or def.groups.mesecon_conductor_craftable or def.groups.mesecon_effector_off
end
local function is_tool(def)
return def.groups.tool or (def.tool_capabilities and def.tool_capabilities.damage_groups == nil)
@ -339,14 +339,6 @@ function mcl_inventory.set_creative_formspec(player, start_i, pagenum, inv_size,
if name == "inv" then
inv_bg = "crafting_inventory_creative_survival.png"
-- Show armor and player image
local player_preview
if minetest.settings:get_bool("3d_player_preview", true) then
player_preview = mcl_player.get_player_formspec_model(player, 3.9, 1.4, 1.2333, 2.4666, "")
else
player_preview = "image[3.9,1.4;1.2333,2.4666;"..mcl_player.player_get_preview(player).."]"
end
-- Background images for armor slots (hide if occupied)
local armor_slot_imgs = ""
local inv = player:get_inventory()
@ -386,8 +378,7 @@ function mcl_inventory.set_creative_formspec(player, start_i, pagenum, inv_size,
armor_slot_imgs..
-- player preview
player_preview..
mcl_player.get_player_formspec_model(player, 3.9, 1.4, 1.2333, 2.4666, "")..
-- crafting guide button
"image_button[9,1;1,1;craftguide_book.png;__mcl_craftguide;]"..
"tooltip[__mcl_craftguide;"..F(S("Recipe book")).."]"..

View File

@ -61,14 +61,6 @@ local function set_inventory(player, armor_change_only)
inv:set_width("craft", 2)
inv:set_size("craft", 4)
-- Show armor and player image
local player_preview
if minetest.settings:get_bool("3d_player_preview", true) then
player_preview = mcl_player.get_player_formspec_model(player, 1.0, 0.0, 2.25, 4.5, "")
else
player_preview = "image[1.1,0.2;2,4;"..mcl_player.player_get_preview(player).."]"
end
local armor_slots = {"helmet", "chestplate", "leggings", "boots"}
local armor_slot_imgs = ""
for a=1,4 do
@ -83,7 +75,7 @@ local function set_inventory(player, armor_change_only)
local form = "size[9,8.75]"..
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png]"..
player_preview..
mcl_player.get_player_formspec_model(player, 1.0, 0.0, 2.25, 4.5, "")..
--armor
"list[current_player;armor;0,0;1,1;1]"..
"list[current_player;armor;0,1;1,1;2]"..

View File

@ -3,6 +3,7 @@ Recipe book=Livre de recettes
Help=Aide
Select player skin=Sélectionnez l'apparence du joueur
Achievements=Accomplissements
Switch stack size=Échanger les tailles de piles
Building Blocks=Blocs de Construction
Decoration Blocks=Blocs de Décoration
Redstone=Redstone

View File

@ -1,2 +1,2 @@
# textdomain: mcl_observers
# textdomain: mcl_bells
Bell=Cloche

View File

@ -1,2 +1,2 @@
# textdomain: mcl_observers
# textdomain: mcl_bells
Bell=

View File

@ -0,0 +1,19 @@
# textdomain: mcl_amethyst
Amethyst Cluster= Abarolada d'Ametista
Amethyst Cluster is the final growth of amethyst bud.= L'Abarolada d'Ametista es l'etapa fin finala de creissança dau borron d'ametista.
Amethyst Shard= Esclap d'Ametista
An amethyst shard is a crystalline mineral.= Un Esclap d'Ametista es un minerau cristallin.
Block of Amethyst= Blòc d'Ametista
Budding Amethyst= Ametista Borronanta
Calcite= Calcita
Calcite can be found as part of amethyst geodes.= La Calcita pòt se trobar dins una geòda d'ametista.
Large Amethyst Bud= Borron d'Ametista Bèl
Large Amethyst Bud is the third growth of amethyst bud.= Lo Borron d'Ametista Bèl es la tresèima etapa de creissança dau borron d'ametista.
Medium Amethyst Bud= Borron d'Ametista Mejan
Medium Amethyst Bud is the second growth of amethyst bud.= Lo Borron d'Ametista Mejan es la segonda etapa de creissança dau borron d'ametista.
Small Amethyst Bud= Borron d'Ametista Pichòt
Small Amethyst Bud is the first growth of amethyst bud.= Lo Borron d'Ametista Pichòt es la pormèira etapa de creissança dau borron d'ametista.
The Block of Amethyst is a decoration block crafted from amethyst shards.= Lo Blòc d'Ametista es un blòc de decoracion fabricat dempuèi d'esclaps d'ametista.
The Budding Amethyst can grow amethyst= L'Ametista Borronanta pòt créisser l'ametista.
Tinted Glass= Veire Tintat
Tinted Glass is a type of glass which blocks lights while it is visually transparent.= Lo Veire Tintat es un tipe de veire que barra la lutz en estant clarent.

288
mods/ITEMS/mcl_armor/API.md Normal file
View File

@ -0,0 +1,288 @@
# mcl_armor
This mod implements the ability of registering armors.
## Registering an Armor Set
The `mcl_armor.register_set()` function aims to simplify the process of registering a full set of armor.
This function register four pieces of armor (head, torso, leggings, feets) based on a definition table:
```lua
mcl_armor.register_set({
--name of the armor material (used for generating itemstrings)
name = "dummy_armor",
--description of the armor material
--do NOT translate this string, it will be concatenated will each piece of armor's description and result will be automatically fetched from your mod's translation files
description = "Dummy Armor",
--overide description of each armor piece
--do NOT localize this string
descriptions = {
head = "Cap", --default: "Helmet"
torso = "Tunic", --default: "Chestplate"
legs = "Pants", --default: "Leggings"
feet = "Shoes", --default: "Boots"
},
--this is used to calculate each armor piece durability with the minecraft algorithm
--head durability = durability * 0.6857 + 1
--torso durability = durability * 1.0 + 1
--legs durability = durability * 0.9375 + 1
--feet durability = durability * 0.8125 + 1
durability = 80,
--this is used then you need to specify the durability of each piece of armor
--this field have the priority over the durability one
--if the durability of some pieces of armor isn't specified in this field, the durability field will be used insteed
durabilities = {
head = 200,
torso = 500,
legs = 400,
feet = 300,
},
--this define how good enchants you will get then enchanting one piece of the armor in an enchanting table
--if set to zero or nil, the armor will not be enchantable
enchantability = 15,
--this define how much each piece of armor protect the player
--these points will be shown in the HUD (chestplate bar above the health bar)
points = {
head = 1,
torso = 3,
legs = 2,
feet = 1,
},
--this attribute reduce strong damage even more
--See https://minecraft.fandom.com/wiki/Armor#Armor_toughness for more explanations
--default: 0
toughness = 2,
--this field is used to specify some items groups that will be added to each piece of armor
--please note that some groups do NOT need to be added by hand, because they are already handeled by the register function:
--(armor, combat_armor, armor_<element>, combat_armor_<element>, mcl_armor_points, mcl_armor_toughness, mcl_armor_uses, enchantability)
groups = {op_armor = 1},
--specify textures that will be overlayed on the entity wearing the armor
--these fields have default values and its recommanded to keep the code clean by just using the default name for your textures
textures = {
head = "dummy_texture.png", --default: "<modname>_helmet_<material>.png"
torso = "dummy_texture.png", --default: "<modname>_chestplate_<material>.png"
legs = "dummy_texture.png", --default: "<modname>_leggings_<material>.png"
feet = "dummy_texture.png", --default: "<modname>_boots_<material>.png"
},
--you can also define these fields as functions, that will be called each time the API function mcl_armor.update(obj) is called (every time you equip/unequip some armor piece, take damage, and more)
--note that the enchanting overlay will not appear unless you implement it in the function
--this allow to make armors where the textures change whitout needing to register many other armors with different textures
textures = {
head = function(obj, itemstack)
if mcl_enchanting.is_enchanted(itemstack) then
return "dummy_texture.png^"..mcl_enchanting.overlay
else
return "dummy_texture.png"
end
end,
},
--inventory textures aren't definable using a table similar to textures or previews
--you are forced to use the default texture names which are:
--head: "<modname>_inv_helmet_<material>.png
--torso: "<modname>_inv_chestplate_<material>.png
--legs: "<modname>_inv_leggings_<material>.png
--feet: "<modname>_inv_boots_<material>.png
--this callback table allow you to define functions that will be called each time an entity equip an armor piece or the mcl_armor.on_equip() function is called
--the functions accept two arguments: obj and itemstack
on_equip_callbacks = {
head = function(obj, itemstack)
--do stuff
end,
},
--this callback table allow you to define functions that will be called each time an entity unequip an armor piece or the mcl_armor.on_unequip() function is called
--the functions accept two arguments: obj and itemstack
on_unequip_callbacks = {
head = function(obj, itemstack)
--do stuff
end,
},
--this callback table allow you to define functions that will be called then an armor piece break
--the functions accept one arguments: obj
--the itemstack isn't sended due to how minetest handle items which have a zero durability
on_break_callbacks = {
head = function(obj)
--do stuff
end,
},
--this is used to generate automaticaly armor crafts based on each element type folowing the regular minecraft pattern
--if set to nil no craft will be added
craft_material = "mcl_mobitems:leather",
--this is used to generate cooking crafts for each piece of armor
--if set to nil no craft will be added
cook_material = "mcl_core:gold_nugget", --cooking any piece of this armor will output a gold nugged
--this is used for allowing each piece of the armor to be repaired by using an anvil with repair_material as aditionnal material
--it basicaly set the _repair_material item field of each piece of the armor
--if set to nil no repair material will be added
repair_material = "mcl_core:iron_ingot",
})
```
## Creating an Armor Piece
If you don't want to register a full set of armor, then you will need to manually register your own single item.
```lua
minetest.register_tool("dummy_mod:random_armor", {
description = S("Random Armor"),
--these two item fields are used for ingame documentation
--the mcl_armor.longdesc and mcl_armor.usage vars contains the basic usage and purpose of a piece of armor
--these vars may not be enough for that you want to do, so you may add some extra informations like that:
--_doc_items_longdesc = mcl_armor.longdesc.." "..S("Some extra informations.")
_doc_items_longdesc = mcl_armor.longdesc,
_doc_items_usagehelp = mcl_armor.usage,
--this field is similar to any item definition in minetest
--it just set the image shown then the armor is dropped as an item or inside an inventory
inventory_image = "mcl_armor_inv_elytra.png",
--this field is used by minetest internally and also by some helper functions
--in order for the tool to be shown is the right creative inventory tab, the right groups should be added
--"mcl_armor_uses" is required to give your armor a durability
--in that case, the armor can be worn by 10 points before breaking
--if you want the armor to be enchantable, you should also add the "enchantability" group, with the highest number the better enchants you can apply
groups = {armor = 1, non_combat_armor = 1, armor_torso = 1, non_combat_torso = 1, mcl_armor_uses = 10},
--this table is used by minetest for seraching item specific sounds
--the _mcl_armor_equip and _mcl_armor_unequip are used by the armor implementation to play sounds on equip and unequip
--note that you don't need to provide any file extention
sounds = {
_mcl_armor_equip = "mcl_armor_equip_leather",
_mcl_armor_unequip = "mcl_armor_unequip_leather",
},
--these fields should be initialised like that in most cases
--mcl_armor.equip_on_use is a function that try to equip the piece of armor you have in hand inside the right armor slot if the slot is empty
on_place = mcl_armor.equip_on_use,
on_secondary_use = mcl_armor.equip_on_use,
--this field define that the tool is ACTUALLY an armor piece and in which armor slot you can put it
--it should be set to "head", "torso", "legs" or "feet"
_mcl_armor_element = "torso",
--this field is used to provide the texture that will be overlayed on the object (player or mob) skin
--this field can be a texture name or a function that will be called each time the mcl_armor.update(obj) function is called
--see the mcl_armor.register_set() documentation for more explanations
_mcl_armor_texture = "mcl_armor_elytra.png"
--callbacks
--see the mcl_armor.register_set() documentation for more explanations
_on_equip = function(obj, itemstack)
end,
_on_unequip = function(obj, itemstack)
end,
_on_break = function(obj)
end,
})
```
## Interacting with Armor of an Entity
Mods may want to interact with armor of an entity.
Most global functions not described here may not be stable or may be for internal use only.
You can equip a piece of armor on an entity inside a mod by using `mcl_armor.equip()`.
```lua
--itemstack: an itemstack containing the armor piece to equip
--obj: the entity you want to equip the armor on
--swap: boolean, force equiping the armor piece, even if the entity already have one of the same type
mcl_armor.equip(itemstack, obj, swap)
```
You can update the entity apparence by using `mcl_armor.update()`.
This function put the armor overlay on the object's base texture.
If the object is player it will update his displayed armor points count in HUD.
This function will work both on players and mobs.
```lua
--obj: the entity you want the apparence to be updated
mcl_armor.update(obj)
```
## Handling Enchantments
Armors can be enchanted in most cases.
The enchanting part of MineClone2 is separated from the armor part, but closely linked.
Existing armor enchantments in Minecraft improve most of the time how the armor protect the entity from damage.
The `mcl_armor.register_protection_enchantment()` function aims to simplificate the creation of such enchants.
```lua
mcl_armor.register_protection_enchantment({
--this field is the id that will be used for registering enchanted book and store the enchant inside armor metadata.
--(his internal name)
id = "magic_protection",
--visible name of the enchant
--this field is used as the name of registered enchanted book and inside armor tooltip
--translation should be added
name = S("Magic Protection"),
--this field is used to know that the enchant currently do
--translation should be added
description = S("Reduces magic damage."),
--how many levels can the enchant have
--ex: 4 => I, II, III, IV
--default: 4
max_level = 4,
--which enchants this enchant will not be compatible with
--each of these values is a enchant id
incompatible = {blast_protection = true, fire_protection = true, projectile_protection = true},
--how much will the enchant consume from the enchantability group of the armor item
--default: 5
weight = 5,
--false => the enchant can be obtained in an enchanting table
--true => the enchant isn't obtainable in the enchanting table
--is true, you will probably need to implement some ways to obtain it
--even it the field is named "treasure", it will be no way to find it
--default: false
treasure = false,
--how much will damage be reduced
--see Minecraft Wiki for more informations
--https://minecraft.gamepedia.com/Armor#Damage_protection
--https://minecraft.gamepedia.com/Armor#Enchantments
factor = 1,
--restrict damage to one type
--allow the enchant to only protect of one type of damage
damage_type = "magic",
--restrict damage to one category
--allow to protect from many type of damage at once
--this is much less specific than damage_type and also much more customisable
--the "is_magic" flag is used in the "magic", "dragon_breath", "wither_skull" and "thorns" damage types
--you can checkout the mcl_damage source code for a list of availlable damage types and associated flags
--but be warned that mods can register additionnal damage types
damage_flag = "is_magic",
})
```

View File

@ -94,7 +94,6 @@ function mcl_armor.register_set(def)
local on_unequip_callbacks = def.on_unequip_callbacks or {}
local on_break_callbacks = def.on_break_callbacks or {}
local textures = def.textures or {}
local previews = def.previews or {}
local durabilities = def.durabilities or {}
local element_groups = def.element_groups or {}
@ -134,8 +133,7 @@ function mcl_armor.register_set(def)
_on_break = on_break_callbacks[name] or def.on_break,
_mcl_armor_element = name,
_mcl_armor_texture = textures[name] or modname .. "_" .. itemname .. ".png",
_mcl_armor_preview = previews[name] or modname .. "_" .. itemname .. "_preview.png",
_mcl_upgradable = def.upgradable,
_mcl_upgradable = def.upgradable
})
if def.craft_material then
@ -222,17 +220,6 @@ function mcl_armor.update(obj)
end
end
local preview = def._mcl_armor_preview
if obj:is_player() and preview then
if type(preview) == "function" then
preview = preview(obj, itemstack)
end
if preview then
info.preview = "(player.png^[opacity:0^" .. def._mcl_armor_preview .. ")" .. (info.preview and "^" .. info.preview or "" )
end
end
info.points = info.points + minetest.get_item_group(itemname, "mcl_armor_points")
local mob_range_mob = def._mcl_armor_mob_range_mob
@ -255,8 +242,6 @@ function mcl_armor.update(obj)
info.texture = info.texture or "blank.png"
if obj:is_player() then
info.preview = info.preview or "blank.png"
mcl_armor.update_player(obj, info)
else
local luaentity = obj:get_luaentity()

View File

@ -6,18 +6,44 @@ Iron Helmet=Casque de Fer
Golden Helmet=Casque d'Or
Diamond Helmet=Casque de Diamant
Chain Helmet=Casque de Mailles
Netherite Helmet=Casque de Netherite
Leather Tunic=Tunique en Cuir
Iron Chestplate=Plastron de Fer
Golden Chestplate=Plastron d'Or
Diamond Chestplate=Plastron de Diamant
Chain Chestplate=Cotte de Mailles
Netherite Chestplate=Plastron de Netherite
Leather Pants=Pantalon de Cuir
Iron Leggings=Jambières de Fer
Golden Leggings=Jambières d'Or
Diamond Leggings=Jambières de Diamant
Chain Leggings=Jambières de Mailles
Netherite Leggings=Jambières de Netherite
Leather Boots=Bottes de Cuir
Iron Boots=Bottes de Fer
Golden Boots=Bottes d'Or
Diamond Boots=Bottes de Diamant
Chain Boots=Bottes de Mailles
Netherite Boots=Bottes de Netherite
Elytra=Élytres
#Translations of enchantements
Increases underwater mining speed.=Augmente la vitesse de minage sous-marine.
Blast Protection=Protection contre les explosions
Reduces explosion damage and knockback.=Réduit les dégâts d'explosion et de recul.
Curse of Binding=Malédiction du lien éternel
Item cannot be removed from armor slots except due to death, breaking or in Creative Mode.=L'objet ne peut pas être retiré des emplacements d'armure sauf en cas de mort, de rupture ou en mode créatif.
Feather Falling=Chute amortie
Reduces fall damage.=Réduit les dégats de chute.
Fire Protection=Protection contre le feu
Reduces fire damage.=Reduit les dégats de feu.
Shooting consumes no regular arrows.=Le tir ne consomme pas de flèches standard.
Shoot 3 arrows at the cost of one.=Tirez sur 3 flèches au prix d'une.
Projectile Protection=Protection contre les projectiles
Reduces projectile damage.=Réduit les dommages causés par les projectiles.
Protection=Protection
Reduces most types of damage by 4% for each level.=Réduit la plupart des types de dégâts de 4% pour chaque niveau.
Thorns=Épines
Reflects some of the damage taken when hit, at the cost of reducing durability with each proc.=Reflète une partie des dégâts subis lors de la frappe, au prix d'une réduction de la durabilité à chaque déclenchement.
Aqua Affinity=Affinité aquatique

View File

@ -6,19 +6,43 @@ Iron Helmet=
Golden Helmet=
Diamond Helmet=
Chain Helmet=
Netherite Helmet=
Leather Tunic=
Iron Chestplate=
Golden Chestplate=
Diamond Chestplate=
Chain Chestplate=
Netherite Chestplate=
Leather Pants=
Iron Leggings=
Golden Leggings=
Diamond Leggings=
Chain Leggings=
Netherite Leggings=
Leather Boots=
Iron Boots=
Golden Boots=
Diamond Boots=
Chain Boots=
Netherite Boots=
Elytra=
#Translations of enchantements
Increases underwater mining speed.=
Blast Protection=
Reduces explosion damage and knockback.=
Curse of Binding=Malédiction du lien éternel
Item cannot be removed from armor slots except due to death, breaking or in Creative Mode.=
Feather Falling=
Reduces fall damage.=
Fire Protection=
Reduces fire damage.=
Shooting consumes no regular arrows.=
Shoot 3 arrows at the cost of one.=
Projectile Protection=
Reduces projectile damage.=
Protection=
Reduces most types of damage by 4% for each level.=
Thorns=
Reflects some of the damage taken when hit, at the cost of reducing durability with each proc.=
Aqua Affinity=

View File

@ -63,7 +63,7 @@ mcl_player.player_register_model("mcl_armor_character_female.b3d", {
})
function mcl_armor.update_player(player, info)
mcl_player.player_set_armor(player, info.texture, info.preview)
mcl_player.player_set_armor(player, info.texture)
local meta = player:get_meta()
meta:set_int("mcl_armor:armor_points", info.points)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 149 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

View File

@ -75,3 +75,4 @@ You can copy the pattern of a banner by placing two banners of the same color in
And one additional layer=Et une couche supplémentaire
And @1 additional layers=Et @1 couches supplémentaires
Paintable decoration=Décoration à peindre
Preview Banner= Aperçu de la Bannière

View File

@ -0,0 +1,402 @@
local S = minetest.get_translator(minetest.get_current_modname())
--[[
there are strings in meta, which are being used to see which effect will be given to the player(s)
Valid strings:
swiftness
leaping
strenght
regeneration
]]--
mcl_beacons = {
blocks ={"mcl_core:diamondblock","mcl_core:ironblock","mcl_core:goldblock","mcl_core:emeraldblock","mcl_nether:netheriteblock"},
fuel = {"mcl_core:diamond","mcl_core:emerald","mcl_core:iron_ingot","mcl_core:gold_ingot","mcl_nether:netherite_ingot"}
}
local beacon_blocklist = mcl_beacons.blocks
local beacon_fuellist = mcl_beacons.fuel
local pallete_order = {
glass_cyan = 1,
pane_cyan_flat = 1,
pane_cyan = 1,
glass_white = 2,
pane_white_flat = 2,
pane_white = 2,
glass_brown = 3,
pane_brown_flat = 3,
pane_brown = 3,
glass_blue = 4,
pane_blue_flat = 4,
pane_blue = 4,
glass_light_blue = 5,
pane_light_blue_flat = 5,
pane_light_blue = 5,
glass_pink = 6,
pane_pink_flat = 6,
pane_pink = 6,
glass_purple = 7,
pane_purple_flat = 7,
pane_purple = 7,
glass_red = 8,
pane_red_flat = 8,
pane_red = 8,
glass_silver = 9,
pane_silver_flat = 9,
pane_silver = 9,
glass_gray = 10,
pane_gray_flat = 10,
pane_gray = 10,
glass_lime = 11,
pane_lime_flat = 11,
pane_lime = 11,
glass_green = 12,
pane_green_flat = 12,
pane_green = 12,
glass_orange = 13,
pane_orange_flat = 13,
pane_orange = 13,
glass_yellow = 14,
pane_yellow_flat = 14,
pane_yellow = 14,
glass_black = 15,
pane_black_flat = 15,
pane_black = 15,
glass_magenta = 16,
pane_magenta_flat = 16,
pane_magenta = 16
}
local function get_beacon_beam(glass_nodename)
if glass_nodename == "air" then return 0 end
local glass_string = glass_nodename:split(':')[2]
if not pallete_order[glass_string] then return 0 end
return pallete_order[glass_string]
end
minetest.register_node("mcl_beacons:beacon_beam", {
tiles = {"^[colorize:#b8bab9"},
drawtype = "nodebox",
node_box = {
type = "fixed",
fixed = {
{-0.1250, -0.5000, -0.1250, 0.1250, 0.5000, 0.1250}
}
},
pointable= false,
light_source = 14,
walkable = false,
groups = {not_in_creative_inventory=1},
_mcl_blast_resistance = 1200,
paramtype2 = "color",
palette = "beacon_beam_palette.png",
palette_index = 0,
buildable_to = true,
})
mesecon.register_mvps_stopper("mcl_beacons:beacon_beam")
local formspec_string=
"size[11,14]"..
"label[4.5,0.5;"..minetest.formspec_escape(S("Beacon:")).."]"..
"label[0.5,1;"..minetest.formspec_escape(S("Primary Power:")).."]"..
"label[0.5,8.25;"..minetest.formspec_escape( S("Inventory:")).."]"..
"image[1,1.5;1,1;custom_beacom_symbol_4.png]"..
"image[1,3;1,1;custom_beacom_symbol_3.png]"..
"image[1,4.5;1,1;custom_beacom_symbol_2.png]"..
"image[1,6;1,1;custom_beacom_symbol_1.png]"..
"image_button[5.2,1.5;1,1;mcl_potions_effect_swift.png;swiftness;]"..
"image_button[5.2,3;1,1;mcl_potions_effect_leaping.png;leaping;]"..
"image_button[5.2,4.5;1,1;mcl_potions_effect_strong.png;strenght;]"..
"image_button[5.2,6;1,1;mcl_potions_effect_regenerating.png;regeneration;]"..
"item_image[1,7;1,1;mcl_core:diamond]"..
"item_image[2.2,7;1,1;mcl_core:emerald]"..
"item_image[3.4,7;1,1;mcl_core:iron_ingot]"..
"item_image[4.6,7;1,1;mcl_core:gold_ingot]"..
"item_image[5.8,7;1,1;mcl_nether:netherite_ingot]"..
mcl_formspec.get_itemslot_bg(7.2,7,1,1)..
"list[context;input;7.2,7;1,1;]"..
mcl_formspec.get_itemslot_bg(1,9,9,3)..
"list[current_player;main;1,9;9,3;9]"..
mcl_formspec.get_itemslot_bg(1,12.5,9,1)..
"list[current_player;main;1,12.5;9,1;]"
local function remove_beacon_beam(pos)
for y=pos.y, pos.y+301 do
local node = minetest.get_node({x=pos.x,y=y,z=pos.z})
if node.name ~= "air" and node.name ~= "mcl_core:bedrock" and node.name ~= "mcl_core:void" then
if node.name == "ignore" then
minetest.get_voxel_manip():read_from_map({x=pos.x,y=y,z=pos.z}, {x=pos.x,y=y,z=pos.z})
node = minetest.get_node({x=pos.x,y=y,z=pos.z})
end
if node.name == "mcl_beacons:beacon_beam" then
minetest.remove_node({x=pos.x,y=y,z=pos.z})
end
end
end
end
local function beacon_blockcheck(pos)
for y_offset = 1,4 do
local block_y = pos.y - y_offset
for block_x = (pos.x-y_offset),(pos.x+y_offset) do
for block_z = (pos.z-y_offset),(pos.z+y_offset) do
local valid_block = false --boolean which stores if block is valid or not
for _, beacon_block in pairs(beacon_blocklist) do
if beacon_block == minetest.get_node({x=block_x,y=block_y,z=block_z}).name and not valid_block then --is the block in the pyramid a valid beacon block
valid_block =true
end
end
if not valid_block then
return y_offset -1 --the last layer is complete, this one is missing or incomplete
end
end
end
if y_offset == 4 then --all checks are done, beacon is maxed
return y_offset
end
end
end
local function effect_player(effect,pos,power_level, effect_level,player)
local distance = vector.distance(player:get_pos(), pos)
if distance > (power_level+1)*10 then return end
if effect == "swiftness" then
mcl_potions.swiftness_func(player,effect_level,16)
elseif effect == "leaping" then
mcl_potions.leaping_func(player, effect_level, 16)
elseif effect == "strenght" then
mcl_potions.strength_func(player, effect_level, 16)
elseif effect == "regeneration" then
mcl_potions.regeneration_func(player, effect_level, 16)
end
end
local function globalstep_function(pos,player)
local meta = minetest.get_meta(pos)
local power_level = beacon_blockcheck(pos)
local effect_string = meta:get_string("effect")
if meta:get_int("effect_level") == 2 and power_level < 4 then
return
else
local obstructed = false
for y=pos.y+1, pos.y+100 do
local nodename = minetest.get_node({x=pos.x,y=y, z = pos.z}).name
if nodename ~= "mcl_core:bedrock" and nodename ~= "air" and nodename ~= "mcl_core:void" and nodename ~= "ignore" then --ignore means not loaded, let's just assume that's air
if nodename ~="mcl_beacons:beacon_beam" then
if minetest.get_item_group(nodename,"glass") == 0 and minetest.get_item_group(nodename,"material_glass") == 0 then
obstructed = true
remove_beacon_beam(pos)
return
end
end
end
end
if obstructed then
return
end
effect_player(effect_string,pos,power_level,meta:get_int("effect_level"),player)
end
end
minetest.register_node("mcl_beacons:beacon", {
description = S"Beacon",
drawtype = "mesh",
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
mesh = "mcl_beacon.b3d",
tiles = {"beacon_UV.png"},
use_texture_alpha = "clip",
on_construct = function(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
inv:set_size("input", 1)
local form = formspec_string
meta:set_string("formspec", form)
end,
on_destruct = function(pos)
local meta = minetest.get_meta(pos)
local input = meta:get_inventory():get_stack("input",1)
if not input:is_empty() then
local p = {x=pos.x+math.random(0, 10)/10-0.5, y=pos.y, z=pos.z+math.random(0, 10)/10-0.5} --from mcl_anvils
minetest.add_item(p, input)
end
remove_beacon_beam(pos)
end,
on_receive_fields = function(pos, formname, fields, sender)
if fields.swiftness or fields.regeneration or fields.leaping or fields.strenght then
local sender_name = sender:get_player_name()
local power_level = beacon_blockcheck(pos)
if minetest.is_protected(pos, sender_name) then
minetest.record_protection_violation(pos, sender_name)
return
elseif power_level == 0 then
return
end
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
local input = inv:get_stack("input",1)
if input:is_empty() then
return
end
local valid_item = false
for _, item in ipairs(beacon_fuellist) do
if input:get_name() == item then
valid_item = true
end
end
if not valid_item then
return
end
local successful = false
if fields.swiftness then
if power_level == 4 then
minetest.get_meta(pos):set_int("effect_level",2)
else
minetest.get_meta(pos):set_int("effect_level",1)
end
minetest.get_meta(pos):set_string("effect","swiftness")
successful = true
elseif fields.leaping and power_level >= 2 then
if power_level == 4 then
minetest.get_meta(pos):set_int("effect_level",2)
else
minetest.get_meta(pos):set_int("effect_level",1)
end
minetest.get_meta(pos):set_string("effect","leaping")
successful = true
elseif fields.strenght and power_level >= 3 then
if power_level == 4 then
minetest.get_meta(pos):set_int("effect_level",2)
else
minetest.get_meta(pos):set_int("effect_level",1)
end
minetest.get_meta(pos):set_string("effect","strenght")
successful = true
elseif fields.regeneration and power_level == 4 then
minetest.get_meta(pos):set_int("effect_level",2)
minetest.get_meta(pos):set_string("effect","regeneration")
successful = true
end
if successful then
if power_level == 4 then
awards.unlock(sender:get_player_name(),"mcl:maxed_beacon")
end
awards.unlock(sender:get_player_name(),"mcl:beacon")
input:take_item()
inv:set_stack("input",1,input)
local beam_palette_index = 0
remove_beacon_beam(pos)
for y = pos.y +1, pos.y + 201 do
local node = minetest.get_node({x=pos.x,y=y,z=pos.z})
if node.name == ignore then
minetest.get_voxel_manip():read_from_map({x=pos.x,y=y,z=pos.z}, {x=pos.x,y=y,z=pos.z})
node = minetest.get_node({x=pos.x,y=y,z=pos.z})
end
if minetest.get_item_group(node.name, "glass") ~= 0 or minetest.get_item_group(node.name,"material_glass") ~= 0 then
beam_palette_index = get_beacon_beam(node.name)
end
if node.name == "air" then
minetest.set_node({x=pos.x,y=y,z=pos.z},{name="mcl_beacons:beacon_beam",param2=beam_palette_index})
end
end
globalstep_function(pos,sender)--call it once outside the globalstep so the player gets the effect right after selecting it
end
end
end,
light_source = 14,
groups = {handy=1},
drop = "mcl_beacons:beacon",
sounds = mcl_sounds.node_sound_glass_defaults(),
_mcl_hardness = 3,
})
mesecon.register_mvps_stopper("mcl_beacons:beacon")
mcl_wip.register_wip_item("mcl_beacons:beacon")
function register_beaconblock (itemstring)--API function for other mods
table.insert(beacon_blocklist, itemstring)
end
function register_beaconfuel(itemstring)
table.insert(beacon_fuellist, itemstring)
end
local timer = 0
minetest.register_globalstep(function(dtime)
timer = timer + dtime
if timer >= 3 then
for _, player in ipairs(minetest.get_connected_players()) do
local player_pos = player:get_pos()
local pos_list = minetest.find_nodes_in_area({x=player_pos.x-50, y=player_pos.y-50, z=player_pos.z-50}, {x=player_pos.x+50, y=player_pos.y+50, z=player_pos.z+50},"mcl_beacons:beacon")
for _, pos in ipairs(pos_list) do
globalstep_function(pos,player)
end
end
timer = 0
end
end)
minetest.register_abm{
label="update beacon beam",
nodenames = {"mcl_beacons:beacon_beam"},
interval = 1,
chance = 1,
action = function(pos)
local node_below = minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z})
local node_above = minetest.get_node({x=pos.x,y=pos.y+1,z=pos.z})
local node_current = minetest.get_node(pos)
if node_below.name == "air" then
if minetest.get_node({x=pos.x,y=pos.y-2,z=pos.z}).name == "mcl_beacons:beacon" then
minetest.set_node({x=pos.x,y=pos.y-1,z=pos.z},{name="mcl_beacons:beacon_beam",param2=0})
end
remove_beacon_beam(pos)
elseif node_above.name == "air" or (node_above.name == "mcl_beacons:beacon_beam" and node_above.param2 ~= node_current.param2) then
minetest.set_node({x=pos.x,y=pos.y+1,z=pos.z},{name="mcl_beacons:beacon_beam",param2=node_current.param2})
elseif minetest.get_item_group(node_above.name, "glass") ~= 0 or minetest.get_item_group(node_above.name,"material_glass") ~= 0 then
minetest.set_node({x=pos.x,y=pos.y+2,z=pos.z},{name="mcl_beacons:beacon_beam",param2=get_beacon_beam(node_above.name)})
end
end,
}
minetest.register_craft({
output = "mcl_beacons:beacon",
recipe = {
{"mcl_core:glass", "mcl_core:glass", "mcl_core:glass"},
{"mcl_core:glass", "mcl_mobitems:nether_star", "mcl_core:glass"},
{"mcl_core:obsidian", "mcl_core:obsidian", "mcl_core:obsidian"}
}
})

View File

@ -0,0 +1,5 @@
# textdomain: mcl_beacons
Beacon=Leuchtfeuer
Beacon:=Leuchtfeuer:
Primary Power:=Primäre Kraft:
Inventory:=Inventar:

View File

@ -0,0 +1,5 @@
# textdomain: mcl_beacons
Beacon=
Beacon:=
Primary Power:=
Inventory:=

View File

@ -0,0 +1,2 @@
author=chmodsayshello
depends=mcl_formspec, mcl_init, mcl_wip, mesecons_mvps, mcl_core, mcl_sounds, awards, mcl_achievements, mcl_mobitems, mcl_nether

Binary file not shown.

After

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 635 B

Binary file not shown.

View File

@ -37,6 +37,7 @@ Players in bed: @1/@2=Joueurs au lit: @1/@2
Note: Night skip is disabled.=Remarque: Le saut de nuit est désactivé.
You're sleeping.=Tu dors.
You will fall asleep when all players are in bed.=Vous vous endormirez lorsque tous les joueurs seront au lit.
You will fall asleep when @1% of all players are in bed.=Vous vous endormirez lorsque @1% des joueurs seront au lit.
You're in bed.=Tu es au lit.
Allows you to sleep=Vous permet de dormir
Respawn Anchor=Ancre de Réapparition

View File

@ -245,16 +245,16 @@ minetest.register_node("mcl_blackstone:chain", {
--slabs/stairs
mcl_stairs.register_stair_and_slab_simple("blackstone", "mcl_blackstone:blackstone", "Blackstone Stair", "Blackstone Slab", "Double Blackstone Slab")
mcl_stairs.register_stair_and_slab_simple("blackstone", "mcl_blackstone:blackstone", S("Blackstone Stair"), S("Blackstone Slab"), S("Double Blackstone Slab"))
mcl_stairs.register_stair_and_slab_simple("blackstone_polished", "mcl_blackstone:blackstone_polished", "Polished Blackstone Stair", "Polished Blackstone Slab", "Polished Double Blackstone Slab")
mcl_stairs.register_stair_and_slab_simple("blackstone_polished", "mcl_blackstone:blackstone_polished", S("Polished Blackstone Stair"), S("Polished Blackstone Slab"), S("Polished Double Blackstone Slab"))
mcl_stairs.register_stair_and_slab_simple("blackstone_chiseled_polished", "mcl_blackstone:blackstone_chiseled_polished", "Polished Chiseled Blackstone Stair", "Chiseled Polished Blackstone Slab", "Double Polished Chiseled Blackstone Slab")
mcl_stairs.register_stair_and_slab_simple("blackstone_chiseled_polished", "mcl_blackstone:blackstone_chiseled_polished", S("Chiseled Polished Blackstone Stair"), S("Chiseled Polished Blackstone Slab"), S("Double Polished Chiseled Blackstone Slab"))
mcl_stairs.register_stair_and_slab_simple("blackstone_brick_polished", "mcl_blackstone:blackstone_brick_polished", "Polished Blackstone Brick Stair", "Polished Blackstone Brick Slab", "Double Polished Blackstone Brick Slab")
mcl_stairs.register_stair_and_slab_simple("blackstone_brick_polished", "mcl_blackstone:blackstone_brick_polished", S("Polished Blackstone Brick Stair"), S("Polished Blackstone Brick Slab"), S("Double Polished Blackstone Brick Slab"))
--Wall

View File

@ -1,18 +1,18 @@
# textdomain: mcl_blackstone
Blackstone=Roche noire
Polished Blackstone=Pierre noire
Chieseled Polished Blackstone=Pierre noire sculptée
Chiseled Polished Blackstone=Pierre noire sculptée
Polished Blackstone Bricks=Briques de pierre noire
Basalt=Basalte
Polished Basalt=Basalte taillé
Blackstone Slab=Dalle de roche noire
Polished Blackstone Slab=Dalle de pierre noire
Chieseled Polished Blackstone Slab=Dalle de pierre noire sculptée
Chiseled Polished Blackstone Slab=Dalle de pierre noire sculptée
Polished Blackstone Brick Slab=Dalle de briques de pierre noire
Blackstone Stairs=Escalier de roche noire
Polished Blackstone Stairs=Escalier de pierre noire
Chieseled Polished Blackstone Stairs=Escalier de pierre noire sculptée
Polished Blackstone Brick Stairs=Escalier de briques de pierre noire
Blackstone Stair=Escalier de roche noire
Polished Blackstone Stair=Escalier de pierre noire
Chiseled Polished Blackstone Stair=Escalier de pierre noire sculptée
Polished Blackstone Brick Stair=Escalier de briques de pierre noire
Quartz Bricks=Briques de quartz
Soul Torch=Torche des âmes
Soul Lantern=Lanterne des âmes
@ -21,3 +21,8 @@ Eternal Soul Fire=Feux éternel des âmes
Gilded Blackstone=Roche noire dorée
Nether Gold Ore=Minerai d'or du Nether
Smooth Basalt=Basalte lisse
Blackstone Wall=Muret de Roche noire
Double Blackstone Slab=Double dalle de roche noire
Polished Double Blackstone Slab=Double dalle de pierre noire
Double Polished Chiseled Blackstone Slab=Double dalle de pierre noire sculptée
Double Polished Blackstone Brick Slab=Double dalle de briques de pierre noire

View File

@ -7,12 +7,12 @@ Basalt=
Polished Basalt=
Blackstone Slab=
Polished Blackstone Slab=
Chieseled Polished Blackstone Slab=
Chiseled Polished Blackstone Slab=
Polished Blackstone Brick Slab=
Blackstone Stairs=
Polished Blackstone Stairs=
Chieseled Polished Blackstone Stairs=
Polished Blackstone Brick Stairs=
Blackstone Stair=
Polished Blackstone Stair=
Chiseled Polished Blackstone Stair=
Polished Blackstone Brick Stair=
Quartz Bricks=
Soul Torch=
Soul Lantern=
@ -22,3 +22,7 @@ Gilded Blackstone=
Nether Gold Ore=
Smooth Basalt=
Blackstone Wall=
Double Blackstone Slab=
Polished Double Blackstone Slab=
Double Polished Chiseled Blackstone Slab=
Double Polished Blackstone Brick Slab=

View File

@ -510,8 +510,8 @@ minetest.register_craft({
}
})
minetest.register_alias("mcl_blast_furnace:blast_furnace", "mcl_furnaces:blast_furnace")
minetest.register_alias("mcl_blast_furnace:blast_furnace_active", "mcl_furnaces:blast_furnace_active")
minetest.register_alias("mcl_furnaces:blast_furnace", "mcl_blast_furnace:blast_furnace")
minetest.register_alias("mcl_furnaces:blast_furnace_active", "mcl_blast_furnace:blast_furnace_active")
-- Add entry alias for the Help
if minetest.get_modpath("doc") then

View File

@ -0,0 +1,8 @@
# textdomain: mcl_blast_furnace
Inventory=Inventaire
Blast Furnace=Haut Fourneau
Smelts ores faster than furnace=fond le minerai plus vite que le fourneau
Use the recipe book to see what you can smelt, what you can use as fuel and how long it will burn.=Utiliser le livre de recettes pour voir ce que vous pouvez fondre, ce que vous pouvez utiliser comme combustible et combien de temps ça va brûler.
Use the furnace to open the furnace menu.\nPlace a furnace fuel in the lower slot and the source material in the upper slot.\nThe furnace will slowly use its fuel to smelt the item.\nThe result will be placed into the output slot at the right side.=Utiliser le fourneau pour ouvrir le menu.\nPlacer le combustible dans la case en bas et le matériau source dans la case du haut.\nLe fourneau utilisera son combustible pour fondre lentement l'objet.\nLe résultat sera placé dans la case de sortie à droite.
Blast Furnaces smelt several items, mainly ores and armor, using a furnace fuel, into something else.=Les hauts fourneaux fondent plusieurs objets, principalement du minerai et des pièces d'armure, en quelque chose d'autre.
Active Blast Furnace=Haut Fourneau Actif

Some files were not shown because too many files have changed in this diff Show More