1
0
Fork 0

Compare commits

..

498 Commits

Author SHA1 Message Date
the-real-herowl c70ae8e535 Merge pull request 'Add hunger debug setting' (#4127) from add-hunger-debug-setting into master
Reviewed-on: MineClone2/MineClone2#4127
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-13 03:47:41 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 c1115c9cef Merge pull request 'Fixed an invalid player object crash' (#4131) from player_crash_fix into master
Reviewed-on: MineClone2/MineClone2#4131
Reviewed-by: 𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 <mrrar@noreply.git.minetest.land>
2024-01-11 20:00:02 +00:00
the-real-herowl 12b3e34f88 Fix a crash
Defensive check for nonexistent player
2024-01-11 03:45:10 +00:00
the-real-herowl 59c5d54cbe Merge pull request 'Add and fix some german translations' (#4132) from Tuxilio/MineClone2:german-translation into master
Reviewed-on: MineClone2/MineClone2#4132
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 13:54:55 +00:00
tuxilio 4b5afee4bb Add and fix some german translations 2024-01-08 13:35:41 +00:00
the-real-herowl 3c2247d7c8 Merge pull request 'mobs:piglin: use (alt) zombified piglin sounds' (#4083) from Bakawun/MineClone2:piglin_sounds into master
Reviewed-on: MineClone2/MineClone2#4083
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 08:47:16 +00:00
the-real-herowl 324fd0dc4a Merge pull request 'Add missing Hoglin/Zoglin sounds' (#4082) from Bakawun/MineClone2:hoglin_sounds into master
Reviewed-on: MineClone2/MineClone2#4082
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 08:45:33 +00:00
bakawun cd033aa4ff mobs:zoglin:sounds: adress review comment 2024-01-08 09:30:12 +01:00
bakawun 1f3c7913dd mobs:piglin:sounds: adress review comment 2024-01-08 09:26:03 +01:00
the-real-herowl 18db66c431 Merge pull request 'Changes in mcl_util.rotate_axis_and_place and bamboo on_place callback' (#4123) from JoseDouglas26/MineClone2:bamboo_rotation into master
Reviewed-on: MineClone2/MineClone2#4123
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 07:14:12 +00:00
JoseDouglas26 cc3f092185 Changes in rotation code and bamboo rotation 2024-01-08 05:55:36 +00:00
the-real-herowl 9f64facbf9 Merge pull request 'Nylium can be turned into netherrack' (#4124) from JoseDouglas26/MineClone2:nylium_into_netherrack into master 2024-01-08 03:12:54 +01:00
JoseDouglas26 6694babbde nylium can be turned into netherrack 2024-01-08 03:08:56 +01:00
SmokeyDope fc204c8717 Merge pull request 'Fix typo in pumpkin.lua' (#4122) from fix_pumpkin_typo_pumkin into master
Reviewed-on: MineClone2/MineClone2#4122
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 02:02:20 +00:00
SmokeyDope c664216104 Merge pull request 'Compressed Cobblestone' (#4119) from mcl_compressed_blocks into master
Reviewed-on: MineClone2/MineClone2#4119
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 01:20:14 +00:00
SmokeyDope cd3426b5ce Adjust hardness & blast resistance for compressed cobblestone blocks 2024-01-08 01:07:46 +00:00
the-real-herowl 9867c73eb3 Merge pull request 'Added colored end rod variants' (#4111) from end_rods_variants into master
Reviewed-on: MineClone2/MineClone2#4111
2024-01-08 00:57:31 +00:00
the-real-herowl 3db02bb022 Merge pull request 'Added colored redstone lamps' (#4115) from redstone_lamp_variants into master
Reviewed-on: MineClone2/MineClone2#4115
2024-01-08 00:56:36 +00:00
SmokeyDope 3c7597b75e Add hunger debug to settingtypes.txt 2024-01-06 22:50:40 +00:00
SmokeyDope 7bf3fbf13c Fix typo in pumpkin.lua 2024-01-05 17:06:22 +00:00
SmokeyDope fc7133f1a8 compressed cobblestone textures pt 2 2024-01-03 18:23:17 +00:00
SmokeyDope 05eb3bb8aa compressed cobblestone textures pt 1 2024-01-03 18:22:47 +00:00
SmokeyDope 7583caca9b mcl_compressed_blocks initial comit 2024-01-03 18:21:51 +00:00
the-real-herowl 882531b9fc Refactored end rod coloring code 2024-01-01 02:53:20 +01:00
the-real-herowl 0b5c15d05f Updated translation files 2024-01-01 02:18:01 +01:00
the-real-herowl cd930365b0 Added colored redstone lamps 2024-01-01 02:07:06 +01:00
the-real-herowl ce56f396b1 Merge pull request 'Fix translation files syntax errors' (#4092) from megustanlosfrijoles/frijolesclone2:fix-translation-files-syntax-errors into master
Reviewed-on: MineClone2/MineClone2#4092
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 23:25:49 +00:00
the-real-herowl ba297001b4 Merge pull request 'mcl_tt Spanish translation' (#4093) from megustanlosfrijoles/frijolesclone2:mcl_tt-spanish-translation into master
Reviewed-on: MineClone2/MineClone2#4093
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 23:23:53 +00:00
the-real-herowl 24eca01c3f Added translations for colored end rods 2023-12-31 00:20:15 +01:00
the-real-herowl 4e3cf9e04b Added colored end rod variants 2023-12-31 00:07:16 +01:00
the-real-herowl d285a48fed Merge pull request 'release/0.86.2' (#4110) from release/0.86.2 into master
Reviewed-on: MineClone2/MineClone2#4110
2023-12-30 04:38:49 +00:00
the-real-herowl d3d1bdf8d2 Post-hotfix revert game.conf to SNAPSHOT version 2023-12-30 05:34:24 +01:00
the-real-herowl f306d3768e Update game.conf for hotfix release 0.86.2 2023-12-30 05:33:27 +01:00
the-real-herowl 7463b97c69 Added hotfix notes to the release notes for 0.86 2023-12-30 05:32:10 +01:00
the-real-herowl d11526f8e8 Merge pull request 'Finish PVP Combat Parity with the rest + PVP Tweaks' (#4078) from Eliy21/MineClone2:combat_fixes into master
Reviewed-on: MineClone2/MineClone2#4078
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 04:21:18 +00:00
the-real-herowl 8021a6a723 Merge pull request 'Hotfix 0.86.2' (#4109) from hotfix_0_86_2_branch into master
Reviewed-on: MineClone2/MineClone2#4109
2023-12-30 04:01:05 +00:00
the-real-herowl 1bad5659cf Fixed a cryptic error message
Migrated it to mcl_log and maded it clearer
2023-12-30 04:53:17 +01:00
the-real-herowl befd98b83e Fixed XP orb texture breaking randomly
It used undefined engine behaviour.
It's unclear how it even worked *sometimes*.
2023-12-30 04:13:13 +01:00
the-real-herowl 13341df20b Optimized some textures for size 2023-12-29 13:50:22 +01:00
the-real-herowl f866b56d06 Merge pull request 'Workaround for bows, crossbow and spyglass on mobile' (#4104) from mobile_bow_workaround into master
Reviewed-on: MineClone2/MineClone2#4104
2023-12-27 19:41:57 +00:00
José M 4a407679c0 Translate mcl_tt to spanish 2023-12-25 23:41:49 -06:00
the-real-herowl 39f98ec6fb Updated doc strings for bow and crossbow
Mentioned the zoom key
2023-12-25 23:56:39 +01:00
the-real-herowl 9e3d7ce0f4 Added a workaround for mobile using zoom key
* Bow can now be used with zoom key aside of RMB
* Crossbow can now be loaded with zoom key as well
* Spyglass can now be used with zoom key
2023-12-25 23:50:06 +01:00
the-real-herowl cb7878249d Merge pull request 'release_0_86_another_look' (#4100) from release_0_86_another_look into master
Reviewed-on: MineClone2/MineClone2#4100
2023-12-24 05:35:00 +00:00
the-real-herowl 939905b9d8 Post-release set version 0.87.0-SNAPSHOT 2023-12-24 06:31:35 +01:00
the-real-herowl b1f7fecb59 Add release notes for 0.86 2023-12-24 06:29:39 +01:00
the-real-herowl 3d58878750 Updated release credits and set version for v0.86 2023-12-24 06:27:13 +01:00
the-real-herowl b6938bad90 Merge pull request 'Fix a heisenbug' (#4098) from depends_patch into master
Reviewed-on: MineClone2/MineClone2#4098
2023-12-24 05:04:49 +00:00
the-real-herowl 9df4e2e95e Merge pull request 'Added shepherd functionality' (#4099) from shepherd into master
Reviewed-on: MineClone2/MineClone2#4099
2023-12-24 05:00:35 +00:00
the-real-herowl a2a4da5aed Added shepherd functionality 2023-12-24 05:48:41 +01:00
the-real-herowl e1d5899aa5 Remove unneeded dependencies
This patches a heisenbug to be investigated later
2023-12-24 01:27:29 +01:00
the-real-herowl dd7d56a385 Merge pull request 'br_pt_translation by JoseDouglas26' (#4095) from br_pt_translation into master
Reviewed-on: MineClone2/MineClone2#4095
2023-12-23 20:31:49 +00:00
the-real-herowl 4bb46d7d30 Merge pull request 'New sunflower mesh (by JoseDouglas26)' (#4094) from sunflower_mesh_update into master
Reviewed-on: MineClone2/MineClone2#4094
2023-12-23 20:24:45 +00:00
the-real-herowl 8071d0fbef Merge pull request 'Nerfed vexes and evokers' (#4076) from vex_evoker_fixes into master
Reviewed-on: MineClone2/MineClone2#4076
2023-12-23 20:19:24 +00:00
the-real-herowl 60c0483c12 Merge pull request 'Nerfed slime and magma cube attack range' (#4075) from slime_fixes into master
Reviewed-on: MineClone2/MineClone2#4075
2023-12-23 20:18:23 +00:00
cora 29d40ef553 Mix down new mob sounds to mono 2023-12-23 09:39:12 +01:00
JoseDouglas26 d59a6c6a00 mesecons_delayer pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 c20a37486e mesecons_pressureplates pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 85bc643442 mesecons_lightstone pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 907e037430 mcl_dispensers pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 7b93c65c45 mcl_droppers pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 73bcb0026f mcl_observers pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 01abafe50f mesecons_button pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 e28207f44e mesecons_walllever pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 a5370bc63d mcl_target pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 f904512e61 mcl_comparators pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 c1e3c69800 mcl_monster_eggs pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 d0697c70cc mcl_fire pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 bef3253d5c mcl_enchanting pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 ad099ed7c2 mcl_grindstone pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 a2b7549456 mcl_mangrove pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 f8ef5a15c5 mcl_death_messages pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 6c4101dc12 mcl_hoppers pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 8c0d9cc450 mcl_info pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 1f370bf1f2 hudbars pt_BR translation 2023-12-22 23:45:08 +01:00
JoseDouglas26 6bffaf56d2 mcl_dye and mcl_smithing_table translation fixes 2023-12-22 23:45:08 +01:00
JoseDouglas26 04b77db7fa mcl_books and mcl_bows pt_BR translation fixes 2023-12-22 23:45:08 +01:00
JoseDouglas26 aeeb5acc25 mcl_armor pt_BR translation correction 2023-12-22 23:45:08 +01:00
JoseDouglas26 9a8a6764d1 mcl_doors and mcl_fences pt_BR translation fixes 2023-12-22 23:45:07 +01:00
JoseDouglas26 3047568ed4 mcl_maps pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 2a8da574f0 mcl_ocean pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 00bf5f0331 mcl_smoker pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 2d5b57c60d mcl_experience pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 b476c703f1 mcl_lectern pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 8f3936792f mcl_cocoas pt_BR translation missing 2023-12-22 23:45:07 +01:00
JoseDouglas26 8816e9fc61 mcl_throwing pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 e291d9918e mcl_stonecutter pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 bd19c8fe67 mcl_mud pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 7f36116146 screwdriver pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 8afa57b914 mcl_sus_stew pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 bc186560b4 mcl_hamburger pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 ae470f8809 mcl_armor pt_BR translation missing 2023-12-22 23:45:07 +01:00
JoseDouglas26 8b1ad1c217 mcl_smithing_table pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 0638c67cf7 mcl_shields pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 3f0e77b971 mcl_bamboo pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 3e131a213f mcl_villages pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 d7c8c7a54a mcl_privs pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 fcd4a610e5 mcl_commands pt_BR translation missing 2023-12-22 23:45:07 +01:00
JoseDouglas26 cde4bc797e mcl_commands pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 cb6b4253d2 findbiome pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 6480c6923a mcl_music pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 487f78d663 mcl_hunger pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 908c46ce34 mcl_loom pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 90a758c002 mcl_lightning_rods pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 3a89d367b0 mclx_fences pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 6dac652241 mclx_core pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 4a3369205e mcl_wool pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 8b02d7b0b2 mcl_walls pt_BR translation fix 2023-12-22 23:45:07 +01:00
JoseDouglas26 184a098964 mcl_torches pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 d57fbb047d mcl_sponges pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 1c3003c85b mcl_spawn pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 188f1cdaa6 mcl_itemframes pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 e536822b4d mcl_tools pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 c6fc911c12 mcl_heads pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 cb0c67b05f mcl_fishing pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 427724ced2 mcl_ver_info pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 799462c4b4 mcl_credits pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 334ac81f58 mcl_fences pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 840381f73f mcl_fletching_table pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 21a10751d1 mcl_lanterns pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 09a063256b mcl_wip pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 9701526d16 mcl_skins pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 e2746adea8 mcl_furnaces pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 a93ce7af1f mcl_inventory pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 3684cb8d2a mcl_cherry_blossom pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 0626c3329b mcl_sculk pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 5489bf20ea mcl_beehives pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 232740b5e6 mcl_totems pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 6f7ac46f05 mcl_jukebox pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 1524f63a6d mcl_hbarmor pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 60377c56cd mcl_tt pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 b0b120dd28 mcl_walls pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 34c23bd578 mcl_tnt pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 9be815956c mcl_signs pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 2da67765a0 mcl_flowers pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 01641b5a8c mcl_flowerpots pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 9371ed5c48 mcl_spyglass pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 527577cbcc mcl_raw_ores pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 86d5e748bb mcl_craftguide pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 6cbd985974 mcl_honey pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 6f9b70a98d mcl_fireworks pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 76e941cbb6 doc_items pt_BR translation missing translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 aef093ef4e doc_items pt_BR translation correction 2023-12-22 23:45:07 +01:00
JoseDouglas26 f824f109e2 mcl_structures pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 a3ccd4d032 lightning pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 419456b835 mcl_weather pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 72a144f0b2 mcl_void_damage pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 f379a06998 mcl_raids pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 947d20ae96 mcl_mobs pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 5c06c28b0f mobs_mc pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 df02770470 mcl_minecarts pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 51dc10c9ea mcl_paintings pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 2370d155c9 mcl_falling_nodes pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 ad3ec48ec9 mcl_boats pt_BR translation 2023-12-22 23:45:07 +01:00
JoseDouglas26 beb06315ac mcl_explosions pt_BR translation 2023-12-22 23:45:07 +01:00
the-real-herowl 569dd69188 Increase sunflower height 2023-12-22 23:36:49 +01:00
the-real-herowl 92ee9c0557 Remove the wrong separate sunflower definition 2023-12-22 23:06:08 +01:00
JoseDouglas26 f63e5d3c19 fix facing west 2023-12-22 23:03:11 +01:00
JoseDouglas26 4d5d595310 changes requested in sunflower definitions 2023-12-22 22:55:09 +01:00
JoseDouglas26 f9972aef01 new lower mesh and selection box 2023-12-22 22:53:55 +01:00
JoseDouglas26 85d21fa1e9 new sunflower mesh 2023-12-22 22:53:43 +01:00
JoseDouglas26 e6a64cfc69 Sound and mining sunflower bug fixes 2023-12-22 22:53:31 +01:00
JoseDouglas26 dd5a9178d9 sunflower mapgen bug fix 2023-12-22 22:53:10 +01:00
JoseDouglas26 113f07581b new sunflower mesh 2023-12-22 22:52:50 +01:00
Eliy21 10dcdb7d6b Remove unnecessary player vector magnitude calculation 2023-12-21 15:52:26 +00:00
José M ec8f3f5530 Start the beggining of the mcl_tt spanish translation 2023-12-21 00:18:40 -06:00
José M 74ab3ffeee Add missing placeholder(s) in doc_items.pt.tr translation: '@1' 2023-12-20 23:55:39 -06:00
José M 9d62c4ca5e Fix missing placeholder(s) in mesecons_commandblock.es.tr translation: '@1' '@2' 2023-12-20 23:46:30 -06:00
José M c9d221976b Escape equals signs in translation file mcl_doc_basics.it.tr 2023-12-20 23:40:33 -06:00
José M 0d1a6d91e9 Remove an unescaped equals sign in mcl_info.fr.tr translation 2023-12-20 23:24:03 -06:00
José M 0f82c623d5 Add missing placeholder(s) in mcl_farming.fr.tr translation: '@1' 2023-12-20 23:15:12 -06:00
the-real-herowl a1d390bd4d Merge pull request 'Fix translation files syntax errors' (#4091) from megustanlosfrijoles/frijolesclone2:fix-translation-files-syntax-errors into master
Reviewed-on: MineClone2/MineClone2#4091
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-21 02:05:08 +00:00
José M 325c6ab4ca Escape equals signs in translation file mcl_deepslate.pt_BR.tr 2023-12-20 19:13:30 -06:00
José M dc4c559ad9 Escape equals sign in translation 2023-12-20 19:04:46 -06:00
José M 1f52b7051a Add missing placeholder(s) in translation: '@1' 2023-12-20 18:58:15 -06:00
José M 5e28ff2d06 Delete non-empty translation in mcl_enchanting template file 2023-12-20 18:34:16 -06:00
José M d5eda7352c Remove whitespace-only translation in mcl_blast_furnace template file 2023-12-20 18:29:13 -06:00
ancientmarinerdev 5071855d00 Merge pull request 'Fix wrong argument when piston dig calls on_dignode callbacks (Credit: Cora)' (#4089) from bamboo_crash_fix into master
Reviewed-on: MineClone2/MineClone2#4089
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-20 21:28:07 +00:00
cora 4cfd4ef6ce Fix wrong argument when piston dig calls on_dignode callbacks 2023-12-20 16:54:36 +00:00
Eliy21 96fa6c251e Counteract self forward velocity when hit by players in pvp 2023-12-20 15:50:37 +00:00
Eliy21 e19de85990 Adjust the difference between sprinting & walking knockbacks for a more seemless transition 2023-12-19 17:19:09 +00:00
Eliy21 76bff2b540 Add minimum pvp knockbacks to other meele weapons 2023-12-19 16:49:48 +00:00
Eliy21 ff882707de Rework moving majority of the added velocity knockbacks into sprinting 2023-12-19 16:15:41 +00:00
Eliy21 d7ed37ef25 Remove redundant knockback limiter 2023-12-19 15:31:29 +00:00
Michieal ceada2fcec Merge pull request 'Fix translation files syntax errors' (#4061) from megustanlosfrijoles/frijolesclone2:warning-fix2 into master
Reviewed-on: MineClone2/MineClone2#4061
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Merged-by: michieal
2023-12-19 01:15:43 +00:00
the-real-herowl 99cc88ac42 Merge pull request 'Update spanish translations and fix syntax errors' (#4060) from megustanlosfrijoles/frijolesclone2:es-translations-syntax into master
Reviewed-on: MineClone2/MineClone2#4060
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-18 23:25:48 +00:00
Michieal 56ebb5ac09 Merge pull request 'Fix the FOV issues with Bows, Sprinting and Spyglasses.' (#4045) from Fix-FOV into master
Reviewed-on: MineClone2/MineClone2#4045
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-18 23:19:43 +00:00
the-real-herowl 8a5058e032 Unified and refactored FOV API code 2023-12-18 22:50:52 +00:00
the-real-herowl e312955a14 Made spyglass reset instant 2023-12-18 22:50:52 +00:00
the-real-herowl 5afd0aa255 Fixed the exclusive modifiers not being exclusive 2023-12-18 22:50:52 +00:00
Michieal 98b6ead591 Fixed a couple of errors
Removed a debug statement that was broken.
Changed `modififer` to `modifier` in a code block.
2023-12-18 22:50:52 +00:00
the-real-herowl 040ce8288e Script and documentation cleanup 2023-12-18 22:50:52 +00:00
the-real-herowl f9b192e68f Updated credits 2023-12-18 22:50:52 +00:00
the-real-herowl 08241f6ea3 Updated the api.md file 2023-12-18 22:50:52 +00:00
the-real-herowl 5bf6608483 Made bow unfocus faster 2023-12-18 22:50:52 +00:00
the-real-herowl 42ec62562d Moved sprinting into the new FOV api 2023-12-18 22:50:52 +00:00
the-real-herowl 7f5ce4e033 Fixed modifier application and removal 2023-12-18 22:50:52 +00:00
the-real-herowl 3a007e3bb1 Re-registered FOV mods using new API version 2023-12-18 22:50:52 +00:00
the-real-herowl a650f8b368 Made fovapi registration more robust 2023-12-18 22:50:52 +00:00
Michieal 580a1caa38 Reworked some of the Apply_Modifier code to help prevent errors. 2023-12-18 22:50:52 +00:00
Michieal 2f8389d3f5 Put in check to prevent Trying to Reference a Nil error in Apply_Modifier. 2023-12-18 22:50:52 +00:00
Michieal 4f3f59f4bc Put in checks to prevent repeatedly applying the same FOV modifier.
Added short circuit to remove_modifier if the modifier is not currently applied.
2023-12-18 22:50:52 +00:00
Michieal 36f661743e Set up the Bows to use the new FOV API. Bows now zoom in and clear out the zoom. 2023-12-18 22:50:52 +00:00
Michieal 0a17bbe731 Added reset for player respawning to remove FOV modifiers.
Fixed missing on_end call in remove_all_modifiers.
Added mcl_fovapi to Bows, Sprint, and Spyglass.
Set up the Spyglass to use the new FOV API.
2023-12-18 22:50:52 +00:00
Michieal 6cfb55e853 Added reset for player respawning to remove FOV modifiers.
Fixed missing on_end call in remove_all_modifiers.
Added mcl_fovapi to Bows, Sprint, and Spyglass.
2023-12-18 22:50:52 +00:00
Michieal bf41e116a1 Fleshed out the API Documentation.
Modified missing pieces of code.
2023-12-18 22:50:52 +00:00
Michieal fc80d4fb9f Initial API state. 2023-12-18 22:50:52 +00:00
Michieal 11c5d36c55 Initial Commit. 2023-12-18 22:50:52 +00:00
Eliy21 44c656502f Add a prevention in case players get stuck with the damage animation 2023-12-18 22:04:12 +00:00
Eliy21 fe90424ee4 Add pvp knockback reduction when moving towards player while attacking 2023-12-18 21:42:26 +00:00
Eliy21 14cec16c63 Increase enchanted bow knockback 2023-12-18 21:31:38 +00:00
bakawun cc470b9d88 mobs:hoglin: fix conversion of tabs to spaces 2023-12-18 11:08:09 +01:00
bakawun ee51a500b2 mobs:piglin: use (alt) zombified piglin sounds 2023-12-18 10:57:39 +01:00
bakawun 7f823f0155 mobs:hoglin:add licence information 2023-12-18 10:38:23 +01:00
bakawun f5ba0b7981 mobs:zoglin: use hoglin sound .2 2023-12-18 10:31:08 +01:00
bakawun e202f20869 mobs:hoglin: use sound .1 for random and
reuse hurt sound for death
2023-12-18 09:58:37 +01:00
bakawun 692b101212 mobs:hoglin: add missing sounds
these were made by epCode and lincenced under
LGPL-3.0.
downloaded from
49a838e733
2023-12-18 09:51:58 +01:00
the-real-herowl 07147e9d5b Make slime+magmacube collision boxes rotate properly 2023-12-18 02:56:43 +01:00
the-real-herowl d44b00a20e Merge pull request 'Shulker improvements and homing mob projectiles' (#4000) from Bakawun/MineClone2:Shulker_shot_speed into master
Reviewed-on: MineClone2/MineClone2#4000
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-18 00:54:04 +00:00
Eliy21 12109e7f44 Add player damage animation 2023-12-17 21:18:57 +00:00
Eliy21 200f7451eb Remove unnecessary invul code & add damage animation code 2023-12-17 21:15:55 +00:00
Eliy21 c39e55e2d4 Add minimum knockback to crossbow 2023-12-17 20:01:35 +00:00
Eliy21 6d7ae8ba2d Add minimum unenchanted knockback to bow 2023-12-17 19:59:18 +00:00
Eliy21 8612350fa7 Make vertical pvp knockback floatiness reduction include moving hits 2023-12-17 17:48:39 +00:00
Eliy21 0a8874ecad Make vertical pvp knockbacks less floaty 2023-12-17 16:39:04 +00:00
Eliy21 e8ee9c4463 Remove obsolete work-around code 2023-12-16 12:58:58 +00:00
Eliy21 32e91b45ae Add vertical pvp knockbacks from downward hits & reduce pvp kb on half block angled upward hits 2023-12-16 11:48:16 +00:00
Eliy21 8fbd72c142 Optimize code by calling get_enchantment function only once 2023-12-16 09:46:18 +00:00
Eliy21 cfab59d68a Rebalanced moving pvp knockbacks 2023-12-16 09:20:29 +00:00
Eliy21 33e8337bbb Finish remaining excessive vertical pvp knockback prevention adjustments when hit from below 2023-12-16 07:58:26 +00:00
Eliy21 f799596db9 Make vertical pvp knockbacks respect attack reach limit & complete excess vertical kb prevention 2023-12-15 22:56:02 +00:00
Eliy21 9b9747b3d8 Prevent excessive vertical knockbacks if hit by a player from below 2023-12-15 21:02:07 +00:00
Eliy21 c9692c6224 Fix player invulnerability not getting disabled permanently bug 2023-12-15 19:49:04 +00:00
Eliy21 cd83305f07 Make the vertical lift on pvp knockback similar to MC 2023-12-15 18:17:15 +00:00
Eliy21 d7b10d18d8 Fix not being able to give minimum knockback to players when both near and lower than them 2023-12-15 16:27:09 +00:00
Eliy21 8e2c5249f5 Fix comment on player invul code 2023-12-15 15:59:08 +00:00
Eliy21 ca556c052f Prevent pvp knockbacks when invulnerable 2023-12-15 15:52:26 +00:00
Eliy21 60367cdbe0 Revert unreliable bugfix
There are times when the continuous damage when punching players does not happen so will not fix at the moment as using other weapons does still work.
2023-12-15 15:42:49 +00:00
Eliy21 ae169b2814 Add fix to crash when moving bought villager trade item to empty sell slot bug by JoseDouglas26 (#4079)
Add fix to #4062 by JoseDouglas26 MineClone2/MineClone2#4062 (comment)

Reviewed-on: MineClone2/MineClone2#4079
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-12-15 03:09:48 +00:00
bakawun cee5bbc206 mobs:fix typo in homing function 2023-12-14 16:50:23 +01:00
Eliy21 6b439fd1de Add maximum pvp knockback limit & approximate enchant knockback distance to be similar to MC 2023-12-14 11:57:55 +00:00
Eliy21 bf9e487fa9 Adjust minimum pvp knockback to be closer to MC 2023-12-14 09:27:28 +00:00
Eliy21 49af5d2013 Rebalance minimum pvp knockback to account for added knockbacks when moving 2023-12-14 08:51:34 +00:00
Eliy21 ed507d8509 Remove unnecessary space in the attack reach limit on mobs code 2023-12-14 08:15:55 +00:00
Eliy21 b2507c3640 Make fire aspect enchant respect attack reach limit 2023-12-14 08:12:13 +00:00
Eliy21 85b1f5247a Add vertical lift & minimum pvp knockback 2023-12-14 07:46:16 +00:00
Eliy21 2b71462c1e Prevent knockback if player is beyond attack reach limit 2023-12-13 20:36:54 +00:00
Eliy21 b0e33793ec Fix a potential bug that could bypass attack reach limit when a stronger attack breaches the invul 2023-12-13 20:04:15 +00:00
Eliy21 96aaf89036 Readjust pvp enchant knockback to make the running knockback difference more pronounced 2023-12-13 18:49:08 +00:00
Eliy21 a8c2d4534a Nerf long pvp enchanted knockbacks especially when running 2023-12-13 17:42:42 +00:00
Eliy21 a8806fe04e Add player invulnerability & fix not continuously damaging players when holding the attack key
Player invulnerability is the same as Minecraft's Damage Immunity https://minecraft.wiki/w/Damage#Immunity

The old code for some reason only allows a few damage by holding and does not continuously damage other players after a few hits
2023-12-13 17:34:42 +00:00
Wbjitscool ebd733be82 update's the campfire's fire burning animation to make it look better (#4077)
improve the look of the campfire's flame/burning animation

Reviewed-on: MineClone2/MineClone2#4077
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Wbjitscool <dwsda121@gmail.com>
Co-committed-by: Wbjitscool <dwsda121@gmail.com>
2023-12-13 05:22:41 +00:00
the-real-herowl a2c8d13f04 Nerfed vexes and evokers 2023-12-13 04:51:56 +01:00
the-real-herowl 610bcab0d6 Merge pull request 'Update's the stonecutter animation speed to match to the MC's one' (#4074) from stonecutter_fixes into master
Reviewed-on: MineClone2/MineClone2#4074
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-13 03:14:27 +00:00
the-real-herowl ed205190e4 Nerfed slime and magma cube attack range 2023-12-13 04:10:01 +01:00
Wbjitscool 07eb70e9be Update mods/ITEMS/mcl_stonecutter/init.lua 2023-12-13 02:39:25 +00:00
the-real-herowl b3da7a473d Merge pull request 'Move deepslate ore registration within generation check' (#4070) from Zasco/MineClone2:master into master
Reviewed-on: MineClone2/MineClone2#4070
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-13 02:06:25 +00:00
bakawun bc101314df mobs:shulker:use on_attack to set shoot interval
to between 1 and 6 seconds
2023-12-13 02:42:08 +01:00
the-real-herowl 69903aa4ec Fixed crashes 2023-12-13 02:42:08 +01:00
bakawun 686646b86d Shulker: align armor value with mc and set it to 0 when opened 2023-12-13 02:42:08 +01:00
bakawun 789c9a9a6d Shulker: make bullet speed match mc
speed is 5 according to https://www.gmbinder.com/share/-MelLRYIg8yCfuAqQ82g#:~:text=After%20doing%20some%20experimentation%20I,~5%20blocks%2Fsecond).
2023-12-13 02:42:08 +01:00
cora cf51c60527 Fix shulker bullets ignoring armor 2023-12-13 02:42:08 +01:00
cora 55fe71d73b Add a get_arrow_hit_func function to mcl_mobs
reason for this is that player:punch used by most mobs ignores armor
worn by player
2023-12-13 02:42:08 +01:00
cora 58bb26a7ef Make shulker bullets homing 2023-12-13 02:42:08 +01:00
cora f5079f1568 Add an option for mob arrows to be "homing" 2023-12-13 02:42:08 +01:00
Bakawun b4511fb8c7 Shulker, add missing false statement 2023-12-13 02:42:08 +01:00
Bakawun b02a3deec7 Shulker; fix attack open animation, improve peek 2023-12-13 02:42:08 +01:00
Bakawun 26cfdf0b7c Shulker: randomize shoot interval
Randomize shoot interval to between 1 and 5.5 seconds and set default shoot interval to 5.5
2023-12-13 02:42:08 +01:00
Bakawun 8d34ff2a9a Shulker: Make shulker peek periodically
Adjust walk and animation settings so the shulker peeks out randomly.
2023-12-13 02:42:08 +01:00
Bakawun e6ddc03d3c Shulker: lower shoot interval to 1 second
In this video we can see the shulkers are shooting at a rate of once per second.
https://youtube.com/shorts/8tUFaSZ4b7I?si=sszp4cnyXR4dXg9B

The wiki confirms this but mentions a range of 1 to 5.5 seconds. 
I think this range is caused by the shulker closing and stopping shots for a few seconds but no longer than the max interval of 5.5

https://minecraft.fandom.com/wiki/Shulker#:~:text=The%20shulker%20continues%20firing%20every,unaffected%20by%20Levitation%20when%20hit
2023-12-13 02:42:08 +01:00
Zasco 351e31a889 Move deepslate ore registration within generation check 2023-12-12 23:16:51 +00:00
the-real-herowl aff4216ccf Merge pull request 'on_attack callback fix' (#4065) from on_attack_callback into master
Reviewed-on: MineClone2/MineClone2#4065
2023-12-10 23:55:47 +00:00
the-real-herowl 8b00fff4cb Remove dangling else 2023-12-11 00:54:30 +01:00
the-real-herowl cf70de0ecc Add an on_attack callback for mobs (#4064)
Added an on_attack callback that allows to execute additional custom logic after each attack.

Reviewed-on: MineClone2/MineClone2#4064
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2023-12-10 16:10:33 +00:00
José M 6dce3b4bc4 Remove whitespace-only translation in template file 2023-12-10 01:56:19 -06:00
José M a60540c17e Remove a non empty translation in template file 2023-12-10 01:47:35 -06:00
José M 19fd075a2f Add the textdomain line in mcl_beehives.dk.tr
This will remove the warning that is shown when running Wuzzy's Minetest_Translation_tools and will contribute to the issue 3540
2023-12-10 01:16:43 -06:00
José M 1ac65305d6 Fix a typo in mcl_honey.es.tr 2023-12-10 00:13:40 -06:00
José M 8dcb62aa56 Fix a typo in mcl_honey.es.tr 2023-12-10 00:11:07 -06:00
José M 1d2a7b35d8 Update mcl_honey.es.tr 2023-12-10 00:07:17 -06:00
José M 02e7ff41d5 Update mcl_fire.es.tr and fix syntax errors 2023-12-09 23:42:32 -06:00
the-real-herowl d4797e13af Merge pull request 'release_0_85_fire_and_stone' (#4049) from release_0_85_fire_and_stone into master
Reviewed-on: MineClone2/MineClone2#4049
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2023-12-08 23:05:13 +00:00
the-real-herowl 3caa99a409 Post-release set version 0.86.0-SNAPSHOT 2023-12-09 00:03:41 +01:00
the-real-herowl ca71e949a8 Credits update 2023-12-09 00:01:19 +01:00
the-real-herowl 9a7e39654c Minor credits update 2023-12-09 00:01:19 +01:00
the-real-herowl 333db53e7b Add release notes for 0.85 2023-12-09 00:01:19 +01:00
the-real-herowl 47f920c9df Updated release credits and set version for 0.85 2023-12-09 00:01:19 +01:00
the-real-herowl bb66f81999 Merge pull request 'Combat rebalancing' (#4036) from combat_rebalancing into master
Reviewed-on: MineClone2/MineClone2#4036
2023-12-08 22:06:06 +00:00
the-real-herowl a344755894 Merge pull request 'horse: drops: remove 2nd saddle, add armor' (#4047) from Bakawun/MineClone2:horse into master
Reviewed-on: MineClone2/MineClone2#4047
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-07 01:02:38 +00:00
the-real-herowl c03366aa12 Merge pull request 'Fix syntax errors and update spanish translations' (#4050) from megustanlosfrijoles/frijolesclone2:master into master
Reviewed-on: MineClone2/MineClone2#4050
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-06 23:36:09 +00:00
José M bb1e572287 Update mcl_compass.es.tr and fix syntax errors 2023-12-05 18:39:29 -06:00
Eliy21 4127d120d2 Add server privs restriction to mcl_villages build tool (#4043)
<!--
Please follow our contributing guidelines first:
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CONTRIBUTING.md#how-you-can-help-as-a-programmer

By submitting this pull request, you agree to follow our Code of Conduct:
https://git.minetest.land/MineClone2/MineClone2/src/branch/master/CODE_OF_CONDUCT.md
-->

Fixes #4022

### Testing
-Make a new world, check host server and go into creative mode
-Since you're the server you have the server privs so get the mcl_villages build tool item in creative inventory and use it to see if it works
-Have someone join your server and give them the same item to use and see if they are restricted from using it

Reviewed-on: MineClone2/MineClone2#4043
Reviewed-by: chmodsayshello <chmodsayshello@hotmail.com>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-12-05 12:49:49 +00:00
Eliy21 86dad4693e Add warning log if players with 0 hp joined (#4051)
Reviewed-on: MineClone2/MineClone2#4051
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-12-05 08:21:37 +00:00
José M f39fe17895 Update mesecons_lightsone spanish translation
Fixed a syntaxis error at line 3 and added the missing translation for line 4
2023-12-04 22:51:50 -06:00
Eliy21 0673fcc25b Respawn dead players when they login so they don't get stuck without the death formspec (#4041)
Hopefully will prevent the dead player not respawning when logging in bug from happening

Reviewed-on: MineClone2/MineClone2#4041
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-12-05 01:08:50 +00:00
the-real-herowl 589de76613 Fixed a code branch never being run 2023-12-05 01:59:05 +01:00
the-real-herowl 1857341b59 Fixed player knockback from arrows 2023-12-05 00:58:10 +00:00
the-real-herowl 46d9c66000 Fixed mobs executing custom on_punch with punch fail 2023-12-05 00:58:10 +00:00
the-real-herowl cca6645524 Added player damage invulnerability 2023-12-05 00:58:10 +00:00
the-real-herowl 24ffd64cad Knockback fixes 2023-12-05 00:58:10 +00:00
the-real-herowl e29654a0f6 Revert healing interval default to the lower value 2023-12-05 00:58:10 +00:00
José Muñoz 027e0e8337 Fix a typo in the spanish translation (#4039)
Reviewed-on: MineClone2/MineClone2#4039
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: José Muñoz <dr.cabra@disroot.org>
Co-committed-by: José Muñoz <dr.cabra@disroot.org>
2023-12-05 00:05:39 +00:00
bakawun 2ba73f832c horse: drops: remove 2nd saddle, add armor 2023-12-04 20:17:39 +01:00
chmodsayshello 4b63ff1c2a Merge pull request 'Fix "sleeping player hud" sometimes showing decimal numbers' (#4038) from player_sleeping_hudfix into master
Reviewed-on: MineClone2/MineClone2#4038
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-02 19:37:05 +00:00
chmodsayshello 43e7a952ac use math.ceil to get amount of needed players 2023-11-30 22:29:56 +01:00
codiac 4cf865a36c Fix passive threshold in nether and end (#4030)
Fix light check for passive mobs in other dimensions. It is apparently the same in all dimensions. If a mob has it's own spawn_check function then that should be used regardless of it's type.

Fixes #4029

Reviewed-on: MineClone2/MineClone2#4030
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: codiac <codiac@inbox.lv>
Co-committed-by: codiac <codiac@inbox.lv>
2023-11-28 02:45:18 +00:00
Eliy21 b57f6be81d Make showing advancement chat messages into a setting (#4032)
Reviewed-on: MineClone2/MineClone2#4032
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-11-28 01:37:45 +00:00
the-real-herowl cd40861b3b Merge pull request 'Add stonecutter functionality' (#3999) from stonecutter_functionality into master
Reviewed-on: MineClone2/MineClone2#3999
2023-11-27 23:37:57 +00:00
the-real-herowl 19728c5a19 Merge pull request 'hopper reimplementation' (#3980) from Morik666/MineClone2:hopper into master
Reviewed-on: MineClone2/MineClone2#3980
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-11-27 23:34:47 +00:00
Kostinatyn Tsiupa 1da7bb0bdc hopper reimplementation
Reimplemented hoppers and all (blast_furnace, furnace, smoker, composters, double chaets, shulker_boxes, droppers, bookshelvs and brewing_stands) connected nodes
2023-11-27 14:33:01 +02:00
the-real-herowl 1044163717 Fixed the ambiguous /clear command being dangerous (#4026)
Implements #3826

Reviewed-on: MineClone2/MineClone2#4026
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2023-11-27 02:22:39 +00:00
ThePython10110 570ea114ec Fix weathered cut copper crafting (#4033)
Just fixing a typo.

Reviewed-on: MineClone2/MineClone2#4033
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: ThePython10110 <thepython10110@noreply.git.minetest.land>
Co-committed-by: ThePython10110 <thepython10110@noreply.git.minetest.land>
2023-11-27 02:21:48 +00:00
the-real-herowl 8fd988da11 Increased cut copper recipe output 2023-11-25 23:52:04 +00:00
the-real-herowl f1c5f0ca1c Fixed duplication bug 2023-11-25 23:52:04 +00:00
the-real-herowl b4080b6275 Credits update in mod.conf 2023-11-25 23:52:04 +00:00
the-real-herowl bb48e47488 Made stonecutter player metadata consistent 2023-11-25 23:52:04 +00:00
the-real-herowl a6025b751a Uneven crafts support
-taking part of the resulting stack now produces well-defined results
-stonecutter won't allow amount undivisible by recipe count anymore
2023-11-25 23:52:04 +00:00
the-real-herowl af2f58248f Added the ability to stonecut up to full stack 2023-11-25 23:52:04 +00:00
AFCMS e324a1a74b Make inventory use the util functions 2023-11-25 23:52:04 +00:00
AFCMS 4836418cf6 Rework Stonecutter 2023-11-25 23:52:04 +00:00
AFCMS a001f84786 Add utility functions to clean inventory lists 2023-11-25 23:52:04 +00:00
AFCMS 2128dd4c15 Add basic table ordered keys iterator 2023-11-25 23:52:04 +00:00
the-real-herowl c183da7714 Updated README 2023-11-25 23:52:04 +00:00
the-real-herowl fd17bf1a29 Removed old implementation groups 2023-11-25 23:52:04 +00:00
the-real-herowl 0c7b4d473c Copper blocks stonecutter recipes 2023-11-25 23:52:04 +00:00
the-real-herowl 6ebd3ccb7d Third batch of stonecutter recipes
-deepslate
-blackstone
-quartz bricks
2023-11-25 23:52:04 +00:00
the-real-herowl d46b9071a0 Added nether and end stonecutter recipes 2023-11-25 23:52:04 +00:00
the-real-herowl ead2e772c2 First batch of stonecutter recipes under new API
-core blocks
-stairs
-slabs
-walls
2023-11-25 23:52:04 +00:00
the-real-herowl 19cea45c17 Stonecutter fixes and improvements
-improved stonecutter API, making it more robust
-fixed a dupe bug
2023-11-25 23:52:04 +00:00
the-real-herowl b252e577ec Implement recipe registering API 2023-11-25 23:52:04 +00:00
Chris Page 12568a6749 use on_destruct instead of after dig node 2023-11-25 23:52:04 +00:00
Chris Page 559f500322 Update readme for stonecutter 2023-11-25 23:52:04 +00:00
Chris Page 40fb043de2 Add stage so smooth items can't be reverted 2023-11-25 23:52:04 +00:00
Chris Page 5dda3033a5 Prevent input from being a selectable option 2023-11-25 23:52:04 +00:00
Chris Page 524c9c1bcc Dupe glitch fizes and remove item label 2023-11-25 23:52:04 +00:00
Chris Page a9f26fb354 use item groups to determine the cuttable items 2023-11-25 23:52:04 +00:00
Chris Page 01d43bb33a Remove unused meta on drop items 2023-11-25 23:52:04 +00:00
Chris Page ca37ce5744 Remove hardcoded one element array 2023-11-25 23:52:04 +00:00
Chris Page 5f0ad98dae Use node group for items that can be used in the stonecutter 2023-11-25 23:52:04 +00:00
Chris Page 0e60231c2e Only reset output if input is empty 2023-11-25 23:52:04 +00:00
Chris Page 7fcc2e3be3 Minor output fixes 2023-11-25 23:52:04 +00:00
Chris Page 356045b3e3 Add comments and drop items when destroyed 2023-11-25 23:52:04 +00:00
Chris Page 07d2759ae4 Check if item is a slab or not 2023-11-25 23:52:04 +00:00
Chris Page 9da07af370 Check if item can be made into stairs, slabs and walls 2023-11-25 23:52:04 +00:00
Chris Page 47990eec2b begin adding check if item canbe cut 2023-11-25 23:52:04 +00:00
Chris Page 7523727521 take output from stonecutter 2023-11-25 23:52:04 +00:00
Chris Page 2af08c3188 clear formspec on taking input item 2023-11-25 23:52:04 +00:00
Chris Page 45532ebe6d Add gui to list craft recipes for some stones 2023-11-25 23:52:04 +00:00
3raven 86da47b922 French translation update (#4006)
Update french translation, add missing chain, fix typo

Reviewed-on: MineClone2/MineClone2#4006
Reviewed-by: AFCMS <afcm.contact@gmail.com>
Co-authored-by: 3raven <3raven@noreply.git.minetest.land>
Co-committed-by: 3raven <3raven@noreply.git.minetest.land>
2023-11-25 01:08:06 +00:00
Eliy21 7cbba73d50 Combat (mostly PvE) rebalancing (#4005)
-Added short mob invulnerability time after being hit
-Added separate shorter range for hitting mobs (as opposed to node interaction)
-Reworked mob knockback
-Slowed down natural health regeneration from saturation
-Added a setting for the saturation health regen speed

Reviewed-on: MineClone2/MineClone2#4005
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-11-23 00:32:23 +00:00
José M 4df6f82c64 Fix spanish translation errors (#4018)
Reviewed-on: MineClone2/MineClone2#4018
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: José M <dr.cabra@disroot.org>
Co-committed-by: José M <dr.cabra@disroot.org>
2023-11-18 22:20:02 +00:00
chmodsayshello 6ee2dbe70c Add MineCraft like sleeping player hud (#4011)
This adds a sleeping hud/actionbar that'll be displayed to players currently not sleeping.

Reviewed-on: MineClone2/MineClone2#4011
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: chmodsayshello <chmodsayshello@hotmail.com>
Co-committed-by: chmodsayshello <chmodsayshello@hotmail.com>
2023-11-18 21:21:17 +00:00
the-real-herowl 613ab897b2 Merge pull request 'Fix item not dropping at tool last use' (#4009) from tool_destruction into master
Reviewed-on: MineClone2/MineClone2#4009
2023-11-18 01:32:01 +00:00
the-real-herowl e53d9ec8d7 Added comments 2023-11-18 02:31:07 +01:00
Mikita Wiśniewski a764818e13 Add a new 'pumpkin' group (#4012)
Creates a new 'pumpkin' group, which combines Pumpkin, Faceless Pumkin and Jack o'Lantern under a shared category. This helps tidy up the mesecons_noteblock code a bit, and possibly other mods too.

Reviewed-on: MineClone2/MineClone2#4012
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2023-11-14 15:35:30 +00:00
the-real-herowl 378b8f8f6c Fix item not dropping at tool last use 2023-11-13 13:35:12 +01:00
Aliaksei Urbanski 32ef89aca3 Fix minor README's imperfections (#4001)
I've prepared some minor changes for `README`s.

Reviewed-on: MineClone2/MineClone2#4001
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com>
Co-committed-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com>
2023-11-11 21:01:45 +00:00
the-real-herowl accb8742dd Merge pull request 'Make golem go home. Fixes #3288' (#3929) from golem_nav into master
Reviewed-on: MineClone2/MineClone2#3929
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-11-06 22:31:43 +00:00
codiac 71282e196e Move mob nav hacks to Experimental 2023-11-06 22:46:04 +01:00
codiac 89c97690c8 Add a setting to enable mod nav hacks 2023-11-06 22:01:31 +01:00
codiac 06f9486e4d Do not go home if attacking 2023-11-06 21:59:40 +01:00
codiac ae5564e658 Make golem go home. Fixes #3288 2023-11-06 21:59:40 +01:00
the-real-herowl fdf823fff6 Merge pull request 'Update trapdoor climbable behavior' (#3938) from Dehydrate6684/MineClone2:trapdoor-ladder into master
Reviewed-on: MineClone2/MineClone2#3938
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-11-06 20:29:23 +00:00
Araca 52b65554d9 Do not output enchanted item if enchantment is impossible (#3998)
To Fix #3672 , I avoid displaying the output item if enchantment is not possible for various reason
* Level of added enchantment is below the one from input item
* Incompatible enchantment

Co-authored-by: Araca <>
Reviewed-on: MineClone2/MineClone2#3998
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Araca <araca.prod@gmail.com>
Co-committed-by: Araca <araca.prod@gmail.com>
2023-11-06 20:12:36 +00:00
the-real-herowl 5a069af072 Merge pull request 'Piston-breakable nodes don't fill up the push limit, items properly drop' (#3813) from seventeenthShulker/MineClone2:piston_digs_properly into master
Reviewed-on: MineClone2/MineClone2#3813
2023-11-06 19:50:31 +00:00
the-real-herowl 14f73a8c55 Merge pull request 'armor trim followup' (#3974) from trim_achievement into master
Reviewed-on: MineClone2/MineClone2#3974
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-11-06 19:37:56 +00:00
the-real-herowl dbab70ea38 Fixed the wayfinder 2023-11-06 20:22:46 +01:00
chmodsayshello 952a96b57d fix leggings trim textures 2023-11-05 20:35:13 +01:00
Dehydrate6684 e5a260b563
Added vines and skulk vines to ladder group 2023-11-05 14:10:58 +08:00
Dehydrate6684 9b2b8ee56e
Removed direction checks 2023-11-05 14:06:53 +08:00
seventeenthShulker 00cfca5947 Make carpet sticky again 2023-11-04 16:01:46 +00:00
seventeenthShulker c37da143da Add crying obsidian and lodestone to mvps_stoppers 2023-11-04 16:01:46 +00:00
seventeenthShulker 520fd773fb Fix random crash when piston breaks node with no player 2023-11-04 16:01:46 +00:00
seventeenthShulker 378df76e5f Prevent signs from being replaced by pushed/pulled blocks 2023-11-04 16:01:46 +00:00
seventeenthShulker 3e12b3c700 Check protection of certain nodes before push/pull
- The node directly in front of a piston (including air)

- The 'final' position of any connected nodes
2023-11-04 16:01:46 +00:00
seventeenthShulker 0637182697 Tallgrass and dead bush added to dig_by_piston 2023-11-04 16:01:46 +00:00
seventeenthShulker 0580b14310 Vertical pistons now save owner meta 2023-11-04 16:01:46 +00:00
seventeenthShulker 98cf3b7f7a Check node_replaceable after dig_by_piston
Allows tallgrass, nether vines etc to drop
2023-11-04 16:01:46 +00:00
seventeenthShulker e5829f719d All signs are mvps_stopper upon registration
All buttons are mvps_unsticky upon registration
Add some missing unmovable nodes
Bamboo trapdoor is now sticky
2023-11-04 16:01:46 +00:00
seventeenthShulker 089e3d46f1 Several more blocks comply with MC piston mechanics. 2023-11-04 16:01:46 +00:00
seventeenthShulker 5d8688dbeb Change tall flowers to `buildable_to = false` 2023-11-04 16:01:46 +00:00
seventeenthShulker 058684f17f Improve dig_node simulation and fix duplication 2023-11-04 16:01:46 +00:00
seventeenthShulker 918b8eee38 Fix unsticky defs for shulker_box_small names (some did not exist) 2023-11-04 16:01:46 +00:00
seventeenthShulker af206ed8b3 All bamboo plant tiles can be broken with pistons 2023-11-04 16:01:46 +00:00
seventeenthShulker f2eca64e42 Blocks with dig_by_piston no longer fill up the push limit
Fix for broken nodes (e.g. sugar cane) not updating and leaving floating bits

Short-term fix for minetest.dig_node not always working (checking for group dig_immediate = 3)
2023-11-04 16:01:46 +00:00
the-real-herowl 262100be24 Fixed stew/bowl duplication bug (#3995)
Fixed #3991, copied some code over from mcl_potions

Reviewed-on: MineClone2/MineClone2#3995
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2023-11-03 22:39:21 +00:00
Eliy21 69dc013799 Prevent multiple chestboat drivers (#3992)
Fixes #3872

Reviewed-on: MineClone2/MineClone2#3992
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-11-03 22:09:49 +00:00
Michieal a425d359f5 WaterLoggedRootsKelpFix (#3994)
Fixes #3990

A very simple fix to Kelp and the current water logged nodes. It adds the group "waterlogged" to water logged items and then puts a check for the group in kelp growth. Made it as a group, because eventually there will be other waterlogged nodes.

Reviewed-on: MineClone2/MineClone2#3994
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Michieal <michieal@noreply.git.minetest.land>
Co-committed-by: Michieal <michieal@noreply.git.minetest.land>
2023-11-03 21:46:00 +00:00
Freedom 83d6e2a5d2 polar bear fix typo (#3846)
horrizonatal -> horizontal

Reviewed-on: MineClone2/MineClone2#3846
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Freeman <project@gnuhacker.org>
Co-committed-by: Freeman <project@gnuhacker.org>
2023-11-03 00:06:06 +00:00
FossFanatic ce403b9245 Rename Liquid Textures (#3758)
This pull request renames the textures of water and lava to more closely follow the MineClone 2 naming convention.

The code has also been changed to now reflect these new names.

Reviewed-on: MineClone2/MineClone2#3758
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: FossFanatic <fossfanatic@noreply.git.minetest.land>
Co-committed-by: FossFanatic <fossfanatic@noreply.git.minetest.land>
2023-11-02 23:47:26 +00:00
Eliy21 da911bd4d4 Turn non-player boat passenger sideways (#3986)
Some low hanging simple boat fixes.

Fixes #3259

Reviewed-on: MineClone2/MineClone2#3986
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-11-02 19:24:52 +00:00
the-real-herowl 8789411ab7 Merge pull request 'Add ability for shovels to turn grass paths into dirt on shift+right click' (#3932) from add-dirty-shovel-function into master
Reviewed-on: MineClone2/MineClone2#3932
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-11-02 19:03:47 +00:00
the-real-herowl 5b1deedaf0 Disabled grass path making when sneaking 2023-11-02 20:00:19 +01:00
SmokeyDope fa1d8dfc47 Adjust grass path long description to inform players of new way to turn paths back to dirt. 2023-11-02 17:34:01 +00:00
SmokeyDope d2a4a6d042 add group 'path_remove_possible' to grass paths 2023-11-02 17:34:01 +00:00
SmokeyDope 5e194b33bd Adjust make_grass_path function to let shovels turn grass paths back to dirt with shift+rightclick 2023-11-02 17:34:01 +00:00
Araca 35bb569ee1 make craft guide search use local language (#3984)
Fix #3909

It is now possible to search in the crafting guide using both item id ("name", usually related to the English name) and translated item description (containing the displayed in-game name).

Co-authored-by: Araca <>
Reviewed-on: MineClone2/MineClone2#3984
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Araca <araca.prod@gmail.com>
Co-committed-by: Araca <araca.prod@gmail.com>
2023-10-31 10:00:58 +00:00
chmodsayshello 5be506830f make diamond tools upgradeable again 2023-10-25 18:04:32 +02:00
codiac 4fcd1ae541 Fix slime spawn crash (#3977)
Declare global variables before using them!

Fixes #3975

Reviewed-on: MineClone2/MineClone2#3977
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: codiac <codiac@inbox.lv>
Co-committed-by: codiac <codiac@inbox.lv>
2023-10-23 05:32:18 +00:00
the-real-herowl f941817c39 Merge pull request 'Un-hardcode blast resistance and hardness of fences and walls' (#3943) from wood_fence_blast_resistance into master
Reviewed-on: MineClone2/MineClone2#3943
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-10-22 02:24:28 +00:00
seventeenthShulker bc3bde4cf8 Forgot about blackstone 2023-10-22 02:14:17 +00:00
seventeenthShulker 8099a4bd17 Walls use `source` parameter for default hardness and blast resistance
If no `source` given, fallbacks are 2 and 6 respectively
2023-10-22 02:14:17 +00:00
seventeenthShulker e2ed1ab4a6 Fix prismarine bricks and dark variant blast res.
Should be 6 like regular prismarine
2023-10-22 02:14:17 +00:00
seventeenthShulker e43a8e267d Un-hardcode blast resistance, hardness for walls,
now only based on their material
2023-10-22 02:14:17 +00:00
seventeenthShulker 570caf47eb All wood-type and nether-type fences now match material's blast resistance 2023-10-22 02:14:17 +00:00
the-real-herowl 59f3b53a51 Merge pull request 'Use MC 1.18+ light levels to control mob spawning' (#3946) from spawn_lighting into master
Reviewed-on: MineClone2/MineClone2#3946
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-10-22 01:35:00 +00:00
chmodsayshello ec7e99019e add trim advancements 2023-10-21 22:25:30 +02:00
Dehydrate6684 b320d008ca
Unhardcoded nil 2023-10-18 08:04:54 +08:00
the-real-herowl 3d7155c1b9 Merge pull request 'Raise player eye height to 1.6 blocks.' (#3967) from Dark/MineClone2:master into master
Reviewed-on: MineClone2/MineClone2#3967
Reviewed-by: chmodsayshello <chmodsayshello@hotmail.com>
2023-10-16 16:41:18 +00:00
chmodsayshello e3ab94809e Merge pull request 'Fixed a crash in minetest vector code that isn't propogated to lua.' (#3966) from fix_rotate_around_axis_crash into master
Reviewed-on: MineClone2/MineClone2#3966
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Reviewed-by: chmodsayshello <chmodsayshello@hotmail.com>
2023-10-16 12:21:56 +00:00
Dark a66be39d9b Raise player eye height to 1.6 blocks.
This is the same as in Minecraft. The previous value of 1.5 can feel very strange for those coming from that game.
2023-10-16 00:15:12 +00:00
ancientmarinerdev 3564f6ebde Fixed a crash in minetest vector code that isn't propogated to lua. Create util for ease of use. 2023-10-15 22:03:48 +01:00
chmodsayshello f99ae93bf6 Merge pull request 'fix crash when opening a chest that has an unknow node on it' (#3964) from pepebotella/MineClone2:chest-under-unknow into master
Reviewed-on: MineClone2/MineClone2#3964
Reviewed-by: chmodsayshello <chmodsayshello@hotmail.com>
2023-10-15 19:21:10 +00:00
Freedom 8d440252a4 fix crash when opening a chest that has an unknow node on it
fix #3961
2023-10-13 21:07:00 +02:00
the-real-herowl d706833f21 Merge pull request 'Wither finishing & effect fixes' (#3957) from the-real-herowl/MineClone2:wither into master
Reviewed-on: MineClone2/MineClone2#3957
2023-10-11 20:46:24 +00:00
the-real-herowl c874e01cf9 Wither falling when no target found and small fixes 2023-10-11 00:54:31 +00:00
the-real-herowl 7ce82b9dcb Peaceful crash fixed 2023-10-11 00:54:31 +00:00
the-real-herowl 645072507f Wither melee attack and bug fixes 2023-10-11 00:54:31 +00:00
the-real-herowl 924a6c1c47 Settings-related fixes
-moved to the cleaner way of obtaining settings values
-disabled the anti-troll measures by default
-made the wither per-dimension limit dependent on the settings
-(anti-troll measures enabled required for wither counting and limit)
2023-10-11 00:54:31 +00:00
the-real-herowl 20b0f0748d Added some comments to the code 2023-10-11 00:54:31 +00:00
the-real-herowl d7c76e33d8 Tiny adjustments
- wither initial explosion radius moved from a magic value into a local variable
- wither initial explosion radius reduced
- wither attack_exception improved to better handle unlikely edge cases
2023-10-11 00:54:31 +00:00
the-real-herowl 966712f4ff Optimisation and cleanup
-optimised and cleaned up wither rose withering effect code
-removed unused code
2023-10-11 00:54:31 +00:00
the-real-herowl e4102e6124 Implemented wither defensive measures
Added block breaking when hit, or a safe_boom when hit and mobs_griefing
is disabled. Removed dubious anti-troll measures.
2023-10-11 00:54:31 +00:00
the-real-herowl 17c8f220e6 A few more wither fixes 2023-10-11 00:54:31 +00:00
the-real-herowl df17688b7d Great batch of improvements 2023-10-11 00:54:31 +00:00
the-real-herowl 729d8ec9e0 Another batch of wither adjustments 2023-10-11 00:54:31 +00:00
the-real-herowl c9dc12b081 Further wither adjustments 2023-10-11 00:54:31 +00:00
Nauta Turbidus a1b6819756 Withering effect and effect immunities
Added withering effect and immunities to effects.

Signed-off-by: Nauta Turbidus <88062389+nauta-turbidus@users.noreply.github.com>
2023-10-11 00:54:31 +00:00
the-real-herowl f1568483b3 Merge pull request 'Keep axolotls from attacking sheep' (#3963) from ThePython10110/MineClone2:axolotl-sheep into master
Reviewed-on: MineClone2/MineClone2#3963
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-10-11 00:50:12 +00:00
ThePython10110 d7fa24ebf8 Keep axolotls from attacking sheep 2023-10-10 23:50:46 +00:00
Dehydrate6684 23468cc2dd
Used vector.offset instead of add/subtract 2023-10-10 09:39:16 +08:00
Dehydrate6684 0c48a46f7c
Updated code based on reviews 2023-10-09 13:55:08 +08:00
chmodsayshello 712a6d6c66 Merge pull request 'add 1.20 armor trims' (#3784) from armor_trims into master
Reviewed-on: MineClone2/MineClone2#3784
Reviewed-by: AFCMS <afcm.contact@gmail.com>
2023-10-03 21:46:00 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 a620d24ec8 Fix a number of crashes involving unknown nodes, also fix fishbuckets on_place (#3914)
Fixes: #3913 #3915

~~You can reproduce the crash by placing a fish bucket on top snow above an unknown node.

I also noticed that the code always uses pointed_thing.above so I fixed that and also added a function to mcl_utils to figure out where a node should be placed (either above or below). Looks like the rest of the code could also use improvement but at least it does not crash now.~~

Cora fixed a bunch of related crashes in Mineclona so I am replacing my commit and cherry picking all her commits here.
https://codeberg.org/mineclonia/mineclonia/pulls/549

Here is the list of fixes from that PR:
- Crash when placing snow layer on unknown nodes
- Crash when snow layers on unknown nodes are flooded
- Crash when placing fishbucket on snow on top of unknown nodes
- Crash when placing chorus flower and stem on unknown
- Crash when placing mob spawners on unknown
- The fishbucket on place to actually replace buildable_to

Co-authored-by: cora <coradelamouche@gmx.ch>
Reviewed-on: MineClone2/MineClone2#3914
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
Co-authored-by: 𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 <mrrar@noreply.git.minetest.land>
Co-committed-by: 𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 <mrrar@noreply.git.minetest.land>
2023-09-29 18:47:07 +00:00
ancientmarinerdev 178b24886f Merge pull request 'mcl_oxidation: typo in README.' (#3910) from mdk/MineClone2:typo into master
Reviewed-on: MineClone2/MineClone2#3910
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2023-09-29 18:41:27 +00:00
ancientmarinerdev 8333281b4f Merge pull request 'Halved the creeper explosion timer reset radius' (#3808) from reduce-explosiontimer_reset_radius into master
Reviewed-on: MineClone2/MineClone2#3808
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2023-09-29 18:36:28 +00:00
Nicu 6d3e55ce12 Reduced the creeper explosion timer reset radius from 6 to 3
This gives the player just enough time to get out of the creeper's range, to reset their explosion timer and avoid unnecessary destruction.
2023-09-29 18:35:21 +00:00
ancientmarinerdev 2c2f5595f3 Merge pull request 'Add Setting to keep respawn location set if bed is destroyed.' (#3933) from Eliy21/MineClone2:no_bed_respawn_setting into master
Reviewed-on: MineClone2/MineClone2#3933
Reviewed-by: chmodsayshello <chmodsayshello@hotmail.com>
2023-09-29 18:29:31 +00:00
chmodsayshello 8936313fb3 proper itemslot background
redo of 904cd78d3f ; caused some issues after cherry pick, same texture
2023-09-29 16:59:45 +02:00
ancientmarinerdev c51442704c Merge pull request 'mcl_skins: link to official mcl_custom_skins' (#3954) from skins into master
Reviewed-on: MineClone2/MineClone2#3954
Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
2023-09-28 19:43:24 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 2bd6678b08 mcl_skins: link to official mcl_custom_skins 2023-09-28 13:09:45 -05:00
Codiac e0c44244f9 Merge pull request 'Point mcl_custom_skins link to a working URL' (#3949) from Montandalar/MineClone2:fix_url_mcl_custom_skins into master
Reviewed-on: MineClone2/MineClone2#3949
Reviewed-by: Codiac <codiac@noreply.git.minetest.land>
2023-09-28 10:40:03 +00:00
Codiac 5b7352a23a Merge pull request 'Fix Server crash (Issue #3939)' (#3947) from Michieal/MineClone2_For_PRs:Bamboo_Fix_PointedThing into master
Reviewed-on: MineClone2/MineClone2#3947
Reviewed-by: Codiac <codiac@noreply.git.minetest.land>
2023-09-28 10:39:23 +00:00
Michieal e8c658658d Update Credits. 2023-09-26 18:59:51 +00:00
Michieal e9d994b74d Fix Campifires API to not crash the server.
Fixed the error in Campfires' On_RightClick() to not error out when called with a non-existent pointed_thing.
2023-09-26 18:57:17 +00:00
Michieal eafe6627d8 Extra checks placed in. 2023-09-26 18:35:12 +00:00
chmodsayshello 4046a68fbf Add trim snippet 2023-09-26 20:24:54 +02:00
Blockhead 882c3ef339 Point mcl_custom_skins link to a working URL 2023-09-25 19:55:36 +10:00
codiac 95db118361 Add rules for blaze, wither skeleton, silverfish 2023-09-22 09:09:35 +10:00
codiac d2d7887e0f Handle bat and slime light checks 2023-09-21 14:53:32 +10:00
Michieal b2ebcf5d4f Readme Change
Putting my name back into the credits in the mod.
2023-09-20 06:07:13 +00:00
Michieal f57220f784 Fix Server crash (Issue ##3939)
Fixes the error of pointed_thing being nil (null) by first checking to see if it exists, and if not, exit the on_place call back.
2023-09-20 05:57:49 +00:00
codiac 7577d37b38 Clarify MC version for lighting 2023-09-20 15:56:27 +10:00
codiac bf4c7e1913 Allow non monsters spawns too 2023-09-20 09:24:51 +10:00
codiac 11e3674926 Use MC 1.18 light levels to control mob spawning 2023-09-19 11:18:40 +10:00
Dehydrate6684 cc217d0089
Removed unnessary node definitions 2023-09-17 17:13:50 +08:00
Dehydrate6684 e6653b78ee
Added directional checks 2023-09-17 17:04:24 +08:00
Dehydrate6684 a960bf2e8e
Update trapdoor climbable behavior 2023-09-16 13:16:49 +08:00
Eliy21 2d9bffaa43 Update settingtypes.txt
Add the no bed respawn in settings
2023-09-11 19:42:04 +00:00
Eliy21 eb658a4996 Update mods/PLAYER/mcl_spawn/init.lua
Add if then condition for no bed/anchor respawn settings
2023-09-11 19:38:33 +00:00
Julien Palard 878480d010
mcl_oxidation: typo in README. 2023-09-02 15:18:30 +02:00
chmodsayshello 49bd28e109 add/remove comments 2023-08-31 18:16:34 +02:00
chmodsayshello 6c107ce990 fix for enchanted items 2023-08-31 17:59:46 +02:00
chmodsayshello 7c43c15fda update loottables 2023-08-31 17:17:38 +02:00
chmodsayshello 291cbaf434 move armor trim license info to LEGAL.md 2023-08-28 18:48:37 +02:00
chmodsayshello fb74689f3d resolve merge conflicts 2023-08-28 16:47:31 +02:00
chmodsayshello da024bb4b8 move mcl_armor_trims to mcl_armor 2023-08-28 15:09:48 +02:00
chmodsayshello 2f8bb9726b meta based: proof of concept 2023-08-27 21:44:43 +02:00
chmodsayshello 8176e7319f update 'armor trim credits' 2023-08-27 19:42:40 +02:00
chmodsayshello 64bc57c6a4 replace trim textures with CC ones 2023-08-18 16:47:17 +02:00
chmodsayshello d346aa07ee reduce filesize for a FINAL time 2023-06-29 20:46:39 +02:00
chmodsayshello 9d1840f4ca fix crash (no longer allow blacklisted items) 2023-06-21 12:15:41 +02:00
chmodsayshello 5cc9038169 reduce texture filesize (again) 2023-06-21 11:51:03 +02:00
chmodsayshello 460ef23b50 make upgrade_trimmed global 2023-06-21 11:49:21 +02:00
chmodsayshello 1e16647fe9 various codestyle fixes 2023-06-21 11:21:39 +02:00
chmodsayshello 16415ae577 bring back old global function 2023-06-21 10:57:50 +02:00
chmodsayshello 2665980007 add ':' to modname once 2023-06-21 10:53:41 +02:00
chmodsayshello bb2ce9ef92 pare down a few bytes from textures 2023-06-17 20:16:36 +02:00
chmodsayshello bc29e4dd95 fix texture filename 2023-06-08 10:41:49 +02:00
chmodsayshello b76ed92aba add missing rib_boots texture 2023-06-08 10:38:30 +02:00
chmodsayshello 703f1f46fc make slot names fit 2023-06-08 10:06:26 +02:00
chmodsayshello 0b118c170e armor trims: support smithing table 2023-06-08 10:02:00 +02:00
chmodsayshello 8431ac34d0 add armor trim templates 2023-06-08 00:16:57 +02:00
chmodsayshello 049128972f armor trim: more color transparency & creative inventory removal 2023-06-07 22:49:04 +02:00
chmodsayshello 0c65d9d11a add mcl_enchanting as hard dependency 2023-06-07 22:29:59 +02:00
chmodsayshello 311beeb31c fix enchanting of trimmed armor 2023-06-07 22:27:52 +02:00
chmodsayshello bc3da8dab8 add armor trim color support 2023-06-07 21:01:55 +02:00
chmodsayshello ed5232411b remove raw trim textures 2023-06-07 20:31:54 +02:00
chmodsayshello 6c6a27320d add trim boot textures 2023-06-07 20:30:10 +02:00
chmodsayshello 82f2f4784e add helm trim textures 2023-06-07 20:13:18 +02:00
chmodsayshello 8476865ea7 add chestplate trim texture 2023-06-07 19:47:51 +02:00
chmodsayshello b4273af245 fix color overlay 2023-06-07 17:22:57 +02:00
chmodsayshello 483285a612 loop through tools instead of items 2023-06-07 17:12:02 +02:00
chmodsayshello b154f2def1 armor trims: inventory overlay 2023-06-07 17:06:53 +02:00
chmodsayshello c62195662c trims: blacklist certain iems 2023-06-07 16:42:34 +02:00
chmodsayshello 4dc5ad3bdb add mcl_armor dependency 2023-06-07 16:11:07 +02:00
chmodsayshello cc186cc588 add durability back 2023-06-07 15:58:28 +02:00
chmodsayshello df8c9625e4 armor trims: proof of concept 2023-06-07 15:41:53 +02:00
469 changed files with 6595 additions and 1421 deletions

View File

@ -8,30 +8,32 @@
## Maintainers ## Maintainers
* AncientMariner * AncientMariner
* Nicu * Herowl
## Previous Maintainers ## Previous Maintainers
* Fleckenstein * Fleckenstein
* cora * cora
* Nicu
## Developers ## Developers
* AFCMS * AFCMS
* epCode * epCode
* chmodsayshello * chmodsayshello
* PrairieWind
* MrRar * MrRar
* FossFanatic * FossFanatic
* SmokeyDope * SmokeyDope
* Faerraven / Michieal
* Codiac
## Past Developers ## Past Developers
* jordan4ibanez * jordan4ibanez
* iliekprogrammar * iliekprogrammar
* kabou * kabou
* kay27 * kay27
* Faerraven / Michieal
* MysticTempest * MysticTempest
* NO11 * NO11
* SumianVoice * SumianVoice
* PrairieWind
## Contributors ## Contributors
* RandomLegoBrick * RandomLegoBrick
@ -112,6 +114,21 @@
* Niterux * Niterux
* appgurueu * appgurueu
* seventeenthShulker * seventeenthShulker
* DinoNuggies4665
* basxto
* Morik666
* Eliy21
* mdk
* Alessandra Lozoya
* VanicGame
* ThePython10110
* Araca
* Montandalar
* mim
* Dark
* Bakawun
* JoseDouglas26
* Zasco
## Music ## Music
* Jordach for the jukebox music compilation from Big Freaking Dig * Jordach for the jukebox music compilation from Big Freaking Dig
@ -155,6 +172,7 @@
* cora * cora
* Faerraven / Michieal * Faerraven / Michieal
* PrairieWind * PrairieWind
* ChrisPHP
## 3D Models ## 3D Models
* 22i * 22i
@ -162,6 +180,7 @@
* epCode * epCode
* Faerraven / Michieal * Faerraven / Michieal
* SumianVoice * SumianVoice
* thunder1035
## Textures ## Textures
* XSSheep * XSSheep
@ -178,8 +197,11 @@
* Faerraven / Michieal * Faerraven / Michieal
* Nicu * Nicu
* Exhale * Exhale
* Aeonix_Aeon
* Wbjitscool * Wbjitscool
* SmokeyDope * SmokeyDope
* thunder1035
* Herowl
## Translations ## Translations
* Wuzzy * Wuzzy
@ -199,6 +221,10 @@
* Temak * Temak
* megustanlosfrijoles * megustanlosfrijoles
* kbundg * kbundg
* Isaac Dennis
* ADLON
* Sab Pyrope
* JoseDouglas26
## Funders ## Funders
* 40W * 40W

View File

@ -170,16 +170,8 @@ These groups are used mostly for informational purposes
* `ammo_bow=1`: Item is used as ammo for bows * `ammo_bow=1`: Item is used as ammo for bows
* `non_combat_armor=1`: Item can be equipped as armor, but is not made for combat (e.g. zombie head, pumpkin) * `non_combat_armor=1`: Item can be equipped as armor, but is not made for combat (e.g. zombie head, pumpkin)
* `container`: Node is a container which physically stores items within and has at least 1 inventory * `container`: Node is a container which physically stores items within and has at least 1 inventory
* `container=2`: Has one inventory with list name `"main"`. Items can be placed and taken freely * `container=1`: Container type, which does not allow hoppers to transfer items
* `container=3`: Same as `container=2`, but shulker boxes can not be inserted * `container=2`: Items can be placed and taken freely. Can have inventory with list name `"main"` or define `_mcl_hoppers_on_try_pull`, `_mcl_hoppers_on_try_push`, `_mcl_hoppers_on_after_pull`, `_mcl_hoppers_on_after_push` to play along hoppers nicely.
* `container=4`: Furnace-like, has lists `"src"`, `"fuel"` and `"dst"`.
It is expected that this also reacts on `on_timer`;
the node timer must be started from other mods when they add into `"src"` or `"fuel"`
* `container=5`: Left part of a 2-part horizontal connected container. Both parts have a `"main"` inventory
list. Both inventories are considered to belong together. This is used for large chests.
* `container=6`: Same as above, but for the right part.
* `container=7`: Has inventory list "`main`", no movement allowed
* `container=1`: Other/unspecified container type
* `spawn_egg=1`: Spawn egg * `spawn_egg=1`: Spawn egg
* `pressure_plate=1`: Pressure plate (off) * `pressure_plate=1`: Pressure plate (off)

View File

@ -42,6 +42,10 @@ The glazed terracotta textures have been created by [MysticTempest](https://gith
Source: <https://www.planetminecraft.com/texture_pack/131pixel-perfection/> Source: <https://www.planetminecraft.com/texture_pack/131pixel-perfection/>
License: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/) License: [CC BY-SA 4.0](http://creativecommons.org/licenses/by-sa/4.0/)
Armor trim models were created by Aeonix_Aeon
Source: <https://www.curseforge.com/minecraft/texture-packs/ozocraft-remix>
License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
The main menu images are released under: [CC0](https://creativecommons.org/publicdomain/zero/1.0/) The main menu images are released under: [CC0](https://creativecommons.org/publicdomain/zero/1.0/)
All other files, unless mentioned otherwise, fall under: All other files, unless mentioned otherwise, fall under:

View File

@ -27,7 +27,7 @@ Or you can play in “creative mode” in which you can build almost anything in
## How to play (quick start) ## How to play (quick start)
### Getting started ### Getting started
* **Punch a tree** trunk until it breaks and collect wood * **Punch a tree** trunk until it breaks and collect wood
* Place the **wood into the 2×2 grid** (your “crafting grid” in your inventory menu and craft 4 wood planks * Place the **wood into the 2×2 grid** (your “crafting grid” in your inventory menu) and craft 4 wood planks
* Place the 4 wood planks in a 2×2 shape in the crafting grid to **make a crafting table** * Place the 4 wood planks in a 2×2 shape in the crafting grid to **make a crafting table**
* **Rightclick the crafting table** for a 3×3 crafting grid to craft more complex things * **Rightclick the crafting table** for a 3×3 crafting grid to craft more complex things
* Use the **crafting guide** (book icon) to learn all the possible crafting recipes * Use the **crafting guide** (book icon) to learn all the possible crafting recipes
@ -37,15 +37,15 @@ Or you can play in “creative mode” in which you can build almost anything in
### Farming ### Farming
* Find seeds * Find seeds
* Craft hoe * Craft a hoe
* Rightclick dirt or similar block with hoe to create farmland * Rightclick dirt or a similar block with a hoe to create farmland
* Place seeds on farmland and watch them grow * Place seeds on farmland and watch them grow
* Collect plant when fully grown * Collect plants when fully grown
* If near water, farmland becomes wet and speeds up growth * If near water, farmland becomes wet and speeds up growth
### Furnace ### Furnace
* Craft furnace * Craft a furnace
* Furnace allows you to obtain more items * The furnace allows you to obtain more items
* Upper slot must contain a smeltable item (example: iron ore) * Upper slot must contain a smeltable item (example: iron ore)
* Lower slot must contain a fuel item (example: coal) * Lower slot must contain a fuel item (example: coal)
* See tooltips in crafting guide to learn about fuels and smeltable items * See tooltips in crafting guide to learn about fuels and smeltable items
@ -162,7 +162,7 @@ Bonus features (not found in Minecraft):
* Built-in crafting guide which shows you crafting and smelting recipes * Built-in crafting guide which shows you crafting and smelting recipes
* In-game help system containing extensive help about gameplay basics, blocks, items and more * In-game help system containing extensive help about gameplay basics, blocks, items and more
* Temporary crafting recipes. They only exist to make some otherwise unaccessible items available when you're not in creative mode. These recipes will be removed as development goes on an more features become available * Temporary crafting recipes. They only exist to make some otherwise unaccessible items available when you're not in creative mode. These recipes will be removed as development goes on an more features become available
* Saplings in chests in mapgen v6 * Saplings in chests in [mapgen v6](https://wiki.minetest.net/Map_generator#v6)
* Fully moddable (thanks to Minetest's powerful Lua API) * Fully moddable (thanks to Minetest's powerful Lua API)
* New blocks and items: * New blocks and items:
* Lookup tool, shows you the help for whatever it touches * Lookup tool, shows you the help for whatever it touches

View File

@ -137,7 +137,7 @@ Fonctionnalités bonus (absentes de Minecraft) :
* Guide d'artisanat intégré au jeu qui montre les recettes d'artisanat et de cuisson * Guide d'artisanat intégré au jeu qui montre les recettes d'artisanat et de cuisson
* Système d'aide intégré au jeu contenant des informations à propos des techniques de base, blocs, objets et plus * Système d'aide intégré au jeu contenant des informations à propos des techniques de base, blocs, objets et plus
* Recettes d'artisanat temporaires. Elles existent uniquement pour rendre des objets accessibles qui ne le seraient pas autrement sauf en mode créatif. Elles seront retirées au cours de l'avancement du développement et de l'ajout de nouvelles fonctionnalités. * Recettes d'artisanat temporaires. Elles existent uniquement pour rendre des objets accessibles qui ne le seraient pas autrement sauf en mode créatif. Elles seront retirées au cours de l'avancement du développement et de l'ajout de nouvelles fonctionnalités.
* Pousses dans les coffres en mapgen v6 * Pousses dans les coffres en [mapgen v6](https://wiki.minetest.net/Map_generator#v6)
* Entièrement moddable (grâce la puissante API Lua de Minetest) * Entièrement moddable (grâce la puissante API Lua de Minetest)
* Nouveaux blocs et objets : * Nouveaux blocs et objets :
* Outil de recherche, montre l'aide de ce qu'il touche * Outil de recherche, montre l'aide de ce qu'il touche

View File

@ -154,12 +154,12 @@ Mineclone2, то ветка master обычно относительно ста
* Некоторые вагонетки (с сундуком и с воронкой уже работают) * Некоторые вагонетки (с сундуком и с воронкой уже работают)
* Пара нетривиальных блоков и предметов * Пара нетривиальных блоков и предметов
Бонусные воронкой (нет в Minecraft-е): Бонусные возможности (нет в Minecraft-е):
* Встроенный гайд для крафта покажет вам рецепты крафта и переплавки * Встроенный гайд для крафта покажет вам рецепты крафта и переплавки
* Внутриигровая справка содержит всестороннюю информацию об основах игры, блоках, предметах и прочее * Внутриигровая справка содержит всестороннюю информацию об основах игры, блоках, предметах и прочее
* Временные рецепты крафта. Они существуют, чтобы получить доступ к ранее недоступным предметам вне творческого режима. Они будут удалены как только разработка позволит им стать доступными * Временные рецепты крафта. Они существуют, чтобы получить доступ к ранее недоступным предметам вне творческого режима. Они будут удалены как только разработка позволит им стать доступными
* Саженцы в сундуках мапгена v6 * Саженцы в сундуках в [mapgen v6](https://wiki.minetest.net/Map_generator#v6)
* Полностью модифицируема (благодаря мощному Lua API в Minetest) * Полностью модифицируема (благодаря мощному Lua API в Minetest)
* Новые блоки и предметы: * Новые блоки и предметы:
* Инструмент просмотра покажет справку о том чего коснется * Инструмент просмотра покажет справку о том чего коснется
@ -177,7 +177,7 @@ Mineclone2, то ветка master обычно относительно ста
* Недостающие блоки, предметы, мобы * Недостающие блоки, предметы, мобы
* Некоторые предметы с другими названиями, чтобы лучше их различать * Некоторые предметы с другими названиями, чтобы лучше их различать
* Другая музыка для проигрывателей * Другая музыка для проигрывателей
* Другие текступы (Pixel Perfection) * Другие текстуры (Pixel Perfection)
* Другие звуки (разные источники) * Другие звуки (разные источники)
* Другой движок (Minetest) * Другой движок (Minetest)
* Другие пасхалки * Другие пасхалки

View File

@ -1,4 +1,4 @@
title = MineClone 2 title = MineClone 2
description = A survival sandbox game. Survive, gather, hunt, build, explore, and do much more. description = A survival sandbox game. Survive, gather, hunt, build, explore, and do much more.
disallowed_mapgens = v6 disallowed_mapgens = v6
version=0.85.0-SNAPSHOT version=0.87.0-SNAPSHOT

Binary file not shown.

View File

@ -31,6 +31,7 @@ local known_controls = {
aux1 = true, aux1 = true,
down = true, down = true,
up = true, up = true,
zoom = true,
} }
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)

View File

@ -0,0 +1,2 @@
# textdomain:mcl_explosions
@1 was caught in an explosion.=@1 foi pego(a) em uma explosão.

View File

@ -11,4 +11,4 @@ For example, Copper Blocks have the definition arguement of `_mcl_waxed_variant
For waxed nodes, scraping is easy. Start by putting `waxed = 1` into the list of groups of the waxed node. For waxed nodes, scraping is easy. Start by putting `waxed = 1` into the list of groups of the waxed node.
Next put `_mcl_stripped_variant = item string of the unwaxed variant of the node` into the defintion table. Next put `_mcl_stripped_variant = item string of the unwaxed variant of the node` into the defintion table.
Wxaed Copper Blocks can be scrapped into normal Copper Blocks because of the definition `_mcl_stripped_variant = "mcl_copper:block"`. Waxed Copper Blocks can be scrapped into normal Copper Blocks because of the definition `_mcl_stripped_variant = "mcl_copper:block"`.

View File

@ -22,6 +22,30 @@ function table.update_nil(t, ...)
return t return t
end end
---Works the same as `pairs`, but order returned by keys
---
---Taken from https://www.lua.org/pil/19.3.html
---@generic T: table, K, V, C
---@param t T
---@param f? fun(a: C, b: C):boolean
---@return fun():K, V
function table.pairs_by_keys(t, f)
local a = {}
for n in pairs(t) do table.insert(a, n) end
table.sort(a, f)
local i = 0 -- iterator variable
local function iter() -- iterator function
i = i + 1
if a[i] == nil then
return nil
else
return a[i], t[a[i]]
end
end
return iter
end
local LOGGING_ON = minetest.settings:get_bool("mcl_logging_default", false) local LOGGING_ON = minetest.settings:get_bool("mcl_logging_default", false)
local LOG_MODULE = "[MCL2]" local LOG_MODULE = "[MCL2]"
function mcl_util.mcl_log(message, module, bypass_default_logger) function mcl_util.mcl_log(message, module, bypass_default_logger)
@ -74,6 +98,18 @@ function mcl_util.check_dtime_timer(self, dtime, timer_name, threshold)
return false return false
end end
-- While we should always favour the new minetest vector functions such as vector.new or vector.offset which validate on
-- creation. There may be cases where state gets corrupted and we may have to check the vector is valid if created the
-- old way. This allows us to do this as a tactical solution until old style vectors are completely removed.
function mcl_util.validate_vector (vect)
if vect then
if tonumber(vect.x) and tonumber(vect.y) and tonumber(vect.z) then
return true
end
end
return false
end
-- Minetest 5.3.0 or less can only measure the light level. This came in at 5.4 -- Minetest 5.3.0 or less can only measure the light level. This came in at 5.4
-- This function has been known to fail in multiple places so the error handling is added increase safety and improve -- This function has been known to fail in multiple places so the error handling is added increase safety and improve
-- debugging. See: -- debugging. See:
@ -124,7 +160,7 @@ function mcl_util.rotate_axis_and_place(itemstack, placer, pointed_thing, infini
return return
end end
local undef = minetest.registered_nodes[unode.name] local undef = minetest.registered_nodes[unode.name]
if undef and undef.on_rightclick then if undef and undef.on_rightclick and not invert_wall then
undef.on_rightclick(pointed_thing.under, unode, placer, undef.on_rightclick(pointed_thing.under, unode, placer,
itemstack, pointed_thing) itemstack, pointed_thing)
return return
@ -162,25 +198,11 @@ function mcl_util.rotate_axis_and_place(itemstack, placer, pointed_thing, infini
local p2 local p2
if is_y then if is_y then
if invert_wall then p2 = 0
if fdir == 3 or fdir == 1 then
p2 = 12
else
p2 = 6
end
end
elseif is_x then elseif is_x then
if invert_wall then p2 = 12
p2 = 0
else
p2 = 12
end
elseif is_z then elseif is_z then
if invert_wall then p2 = 6
p2 = 0
else
p2 = 6
end
end end
minetest.set_node(pos, {name = wield_name, param2 = p2}) minetest.set_node(pos, {name = wield_name, param2 = p2})
@ -229,34 +251,25 @@ function mcl_util.get_double_container_neighbor_pos(pos, param2, side)
end end
end end
-- Iterates through all items in the given inventory and --- Selects item stack to transfer from
-- returns the slot of the first item which matches a condition. ---@param src_inventory InvRef Source innentory to pull from
-- Returns nil if no item was found. ---@param src_list string Name of source inventory list to pull from
--- source_inventory: Inventory to take the item from ---@param dst_inventory InvRef Destination inventory to push to
--- source_list: List name of the source inventory from which to take the item ---@param dst_list string Name of destination inventory list to push to
--- destination_inventory: Put item into this inventory ---@param condition? fun(stack: ItemStack) Condition which items are allowed to be transfered.
--- destination_list: List name of the destination inventory to which to put the item into ---@return integer Item stack number to be transfered
--- condition: Function which takes an itemstack and returns true if it matches the desired item condition. function mcl_util.select_stack(src_inventory, src_list, dst_inventory, dst_list, condition)
--- If set to nil, the slot of the first item stack will be taken unconditionally. local src_size = src_inventory:get_size(src_list)
-- dst_inventory and dst_list can also be nil if condition is nil.
function mcl_util.get_eligible_transfer_item_slot(src_inventory, src_list, dst_inventory, dst_list, condition)
local size = src_inventory:get_size(src_list)
local stack local stack
for i = 1, size do for i = 1, src_size do
stack = src_inventory:get_stack(src_list, i) stack = src_inventory:get_stack(src_list, i)
if not stack:is_empty() and (condition == nil or condition(stack, src_inventory, src_list, dst_inventory, dst_list)) then if not stack:is_empty() and dst_inventory:room_for_item(dst_list, stack) and ((condition == nil or condition(stack))) then
return i return i
end end
end end
return nil return nil
end 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")
return g == 0 or g == nil
end
-- Moves a single item from one inventory to another. -- Moves a single item from one inventory to another.
--- source_inventory: Inventory to take the item from --- source_inventory: Inventory to take the item from
--- source_list: List name of the source inventory from which to take the item --- source_list: List name of the source inventory from which to take the item
@ -267,13 +280,6 @@ end
-- Returns true on success and false on failure -- Returns true on success and false on failure
-- Possible failures: No item in source slot, destination inventory full -- Possible failures: No item in source slot, destination inventory full
function mcl_util.move_item(source_inventory, source_list, source_stack_id, destination_inventory, destination_list) function mcl_util.move_item(source_inventory, source_list, source_stack_id, destination_inventory, destination_list)
if source_stack_id == -1 then
source_stack_id = mcl_util.get_first_occupied_inventory_slot(source_inventory, source_list)
if source_stack_id == nil then
return false
end
end
if not source_inventory:is_empty(source_list) then if not source_inventory:is_empty(source_list) then
local stack = source_inventory:get_stack(source_list, source_stack_id) local stack = source_inventory:get_stack(source_list, source_stack_id)
if not stack:is_empty() then if not stack:is_empty() then
@ -291,150 +297,75 @@ function mcl_util.move_item(source_inventory, source_list, source_stack_id, dest
return false return false
end end
-- Moves a single item from one container node into another. Performs a variety of high-level --- Try pushing item from hopper inventory to destination inventory
-- checks to prevent invalid transfers such as shulker boxes into shulker boxes ---@param pos Vector
--- source_pos: Position ({x,y,z}) of the node to take the item from ---@param dst_pos Vector
--- destination_pos: Position ({x,y,z}) of the node to put the item into function mcl_util.hopper_push(pos, dst_pos)
--- source_list (optional): List name of the source inventory from which to take the item. Default is normally "main"; "dst" for furnace local hop_inv = minetest.get_meta(pos):get_inventory()
--- 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) local hop_list = 'main'
--- destination_list (optional): List name of the destination inventory. Default is normally "main"; "src" for furnace
-- Returns true on success and false on failure.
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") -- Get node pos' for item transfer
local sctype = minetest.get_item_group(snode.name, "container") local dst = minetest.get_node(dst_pos)
if not minetest.registered_nodes[dst.name] then return end
local dst_type = minetest.get_item_group(dst.name, "container")
if dst_type ~= 2 then return end
local dst_def = minetest.registered_nodes[dst.name]
-- Container type 7 does not allow any movement local dst_list = 'main'
if sctype == 7 then local dst_inv, stack_id
return false
if dst_def._mcl_hoppers_on_try_push then
dst_inv, dst_list, stack_id = dst_def._mcl_hoppers_on_try_push(dst_pos, pos, hop_inv, hop_list)
else
local dst_meta = minetest.get_meta(dst_pos)
dst_inv = dst_meta:get_inventory()
stack_id = mcl_util.select_stack(hop_inv, hop_list, dst_inv, dst_list)
end end
-- Normalize double container by forcing to always use the left segment first if stack_id ~= nil then
local function normalize_double_container(pos, node, ctype) local ok = mcl_util.move_item(hop_inv, hop_list, stack_id, dst_inv, dst_list)
if ctype == 6 then if dst_def._mcl_hoppers_on_after_push then
pos = mcl_util.get_double_container_neighbor_pos(pos, node.param2, "right") dst_def._mcl_hoppers_on_after_push(dst_pos)
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
end end
return pos, node, ctype if ok then
end return true
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 sinv = smeta:get_inventory()
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
end end
-- Automatically select stack slot ID if set to automatic
if not source_stack_id then
source_stack_id = -1
end
if source_stack_id == -1 then
local cond = nil
-- Prevent shulker box inception
if dctype == 3 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
end
else
return false
end
end
end
-- Abort transfer if shulker box wants to go into shulker box
if dctype == 3 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
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"
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
end
end
return false return false
end end
-- Returns the ID of the first non-empty slot in the given inventory list -- Try pulling from source inventory to hopper inventory
-- or nil, if inventory is empty. ---@param pos Vector
function mcl_util.get_first_occupied_inventory_slot(inventory, listname) ---@param src_pos Vector
return mcl_util.get_eligible_transfer_item_slot(inventory, listname) function mcl_util.hopper_pull(pos, src_pos)
local hop_inv = minetest.get_meta(pos):get_inventory()
local hop_list = 'main'
-- Get node pos' for item transfer
local src = minetest.get_node(src_pos)
if not minetest.registered_nodes[src.name] then return end
local src_type = minetest.get_item_group(src.name, "container")
if src_type ~= 2 then return end
local src_def = minetest.registered_nodes[src.name]
local src_list = 'main'
local src_inv, stack_id
if src_def._mcl_hoppers_on_try_pull then
src_inv, src_list, stack_id = src_def._mcl_hoppers_on_try_pull(src_pos, pos, hop_inv, hop_list)
else
local src_meta = minetest.get_meta(src_pos)
src_inv = src_meta:get_inventory()
stack_id = mcl_util.select_stack(src_inv, src_list, hop_inv, hop_list)
end
if stack_id ~= nil then
local ok = mcl_util.move_item(src_inv, src_list, stack_id, hop_inv, hop_list)
if src_def._mcl_hoppers_on_after_pull then
src_def._mcl_hoppers_on_after_pull(src_pos)
end
end
end end
local function drop_item_stack(pos, stack) local function drop_item_stack(pos, stack)
@ -612,7 +543,7 @@ function mcl_util.deal_damage(target, damage, mcl_reason)
end end
return return
end end
end elseif not target:is_player() then return end
local is_immortal = target:get_armor_groups().immortal or 0 local is_immortal = target:get_armor_groups().immortal or 0
if is_immortal>0 then if is_immortal>0 then
@ -1101,3 +1032,62 @@ function mcl_util.get_colorwallmounted_rotation(pos)
end end
end end
end end
---Move items from one inventory list to another, drop items that do not fit in provided pos and direction.
---@param src_inv mt.InvRef
---@param src_listname string
---@param out_inv mt.InvRef
---@param out_listname string
---@param pos mt.Vector Position to throw items at
---@param dir? mt.Vector Direction to throw items in
---@param insta_collect? boolean Enable instant collection, let players collect dropped items instantly. Default `false`
function mcl_util.move_list(src_inv, src_listname, out_inv, out_listname, pos, dir, insta_collect)
local src_list = src_inv:get_list(src_listname)
if not src_list then return end
for i, stack in ipairs(src_list) do
if out_inv:room_for_item(out_listname, stack) then
out_inv:add_item(out_listname, stack)
else
local p = vector.copy(pos)
p.x = p.x + (math.random(1, 3) * 0.2)
p.z = p.z + (math.random(1, 3) * 0.2)
local obj = minetest.add_item(p, stack)
if obj then
if dir then
local v = vector.copy(dir)
v.x = v.x * 4
v.y = v.y * 4 + 2
v.z = v.z * 4
obj:set_velocity(v)
mcl_util.mcl_log("item velocity calculated "..vector.to_string(v), "[mcl_util]")
end
if not insta_collect then
obj:get_luaentity()._insta_collect = false
end
end
end
stack:clear()
src_inv:set_stack(src_listname, i, stack)
end
end
---Move items from a player's inventory list to its main inventory list, drop items that do not fit in front of him.
---@param player mt.PlayerObjectRef
---@param src_listname string
function mcl_util.move_player_list(player, src_listname)
mcl_util.move_list(player:get_inventory(), src_listname, player:get_inventory(), "main",
vector.offset(player:get_pos(), 0, 1.2, 0),
player:get_look_dir(), false)
end
function mcl_util.is_it_christmas()
local date = os.date("*t")
if date.month == 12 and date.day >= 24 or date.month == 1 and date.day <= 7 then
return true
else
return false
end
end

View File

@ -62,8 +62,13 @@ end
local function set_double_attach(boat) local function set_double_attach(boat)
boat._driver:set_attach(boat.object, "", boat._driver:set_attach(boat.object, "",
{x = 0, y = 0.42, z = 0.8}, {x = 0, y = 0, z = 0}) {x = 0, y = 0.42, z = 0.8}, {x = 0, y = 0, z = 0})
boat._passenger:set_attach(boat.object, "", if boat._passenger:is_player() then
{x = 0, y = 0.42, z = -2.2}, {x = 0, y = 0, z = 0}) boat._passenger:set_attach(boat.object, "",
{x = 0, y = 0.42, z = -6.2}, {x = 0, y = 0, z = 0})
else
boat._passenger:set_attach(boat.object, "",
{x = 0, y = 0.42, z = -4.5}, {x = 0, y = 270, z = 0})
end
end end
local function set_choat_attach(boat) local function set_choat_attach(boat)
boat._driver:set_attach(boat.object, "", boat._driver:set_attach(boat.object, "",
@ -155,7 +160,7 @@ local boat = {
minetest.register_on_respawnplayer(detach_object) minetest.register_on_respawnplayer(detach_object)
function boat.on_rightclick(self, clicker) function boat.on_rightclick(self, clicker)
if self._passenger or not clicker or clicker:get_attach() then if self._passenger or not clicker or clicker:get_attach() or (self.name == "mcl_boats:chest_boat" and self._driver) then
return return
end end
attach_object(self, clicker) attach_object(self, clicker)

View File

@ -12,6 +12,7 @@ Water vehicle=Véhicule aquatique
Sneak to dismount=Se baisser pour descendre Sneak to dismount=Se baisser pour descendre
Obsidian Boat=Bateau en obsidienne Obsidian Boat=Bateau en obsidienne
Mangrove Boat=Bateau en palétuvier Mangrove Boat=Bateau en palétuvier
Cherry Boat=Bateau en cerisier
Oak Chest Boat=Bateau en chêne avec coffre Oak Chest Boat=Bateau en chêne avec coffre
Spruce Chest Boat=Bateau en sapin avec coffre Spruce Chest Boat=Bateau en sapin avec coffre
Birch Chest Boat=Bateau en bouleau avec coffre Birch Chest Boat=Bateau en bouleau avec coffre
@ -19,3 +20,4 @@ Jungle Chest Boat=Bateau en acajou avec coffre
Acacia Chest Boat=Bateau en acacia avec coffre Acacia Chest Boat=Bateau en acacia avec coffre
Dark Oak Chest Boat=Bateau en chêne noir avec coffre Dark Oak Chest Boat=Bateau en chêne noir avec coffre
Mangrove Chest Boat=Bateau en palétuvier avec coffre Mangrove Chest Boat=Bateau en palétuvier avec coffre
Cherry Chest Boat=Bateau en cerisier avec coffre

View File

@ -0,0 +1,23 @@
# textdomain: mcl_boats
Acacia Boat=Barco de Acácia
Birch Boat=Barco de Bétula
Boat=Barco
Boats are used to travel on the surface of water.=Barcos são usados para viajar na superfície da água
Dark Oak Boat=Barco de Carvalho Escuro
Jungle Boat=Barco de Selva
Oak Boat=Barco de Carvalho
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.=Clique com o botão direito em uma fonte de água para posicionar o barco. Clique com o botão direito no barco para entrar nele. Use [Esquerda] e [Direita] para fazer curva, [Frente] para acelerar e [Trás] para frear e ir para trás. Use [Agachar] para deixar o barco, soque-o para fazê-lo dropar como um item.
Spruce Boat=Barco de Pinheiro
Water vehicle=Veículo aquático
Sneak to dismount=Agache para desmontar
Obsidian Boat=Barco de Obsidiana
Mangrove Boat=Barco de Mangue
Cherry Boat=Barco de Cerejeira
Oak Chest Boat=Barco de Carvalho com Baú
Spruce Chest Boat=Barco de Pinheiro com Baú
Birch Chest Boat=Barco de Bétula com Baú
Jungle Chest Boat=Barco de Selva com Baú
Acacia Chest Boat=Barco de Acácia com Baú
Dark Oak Chest Boat=Barco de Carvalho Escuro com Baú
Mangrove Chest Boat=Barco de Mangue com Baú
Cherry Chest Boat=Barco de Cerejeira com Baú

View File

@ -21,7 +21,7 @@ mcl_dripping.register_drop({
-- The group the liquid's nodes belong to -- The group the liquid's nodes belong to
liquid = "water", liquid = "water",
-- The texture used (particles will take a random 2x2 area of it) -- The texture used (particles will take a random 2x2 area of it)
texture = "default_water_source_animated.png", texture = "mcl_core_water_source_animation.png",
-- Define particle glow, ranges from `0` to `minetest.LIGHT_MAX` -- Define particle glow, ranges from `0` to `minetest.LIGHT_MAX`
light = 1, light = 1,
-- The nodes (or node group) the particles will spawn under -- The nodes (or node group) the particles will spawn under

View File

@ -82,7 +82,7 @@ end
mcl_dripping.register_drop({ mcl_dripping.register_drop({
liquid = "water", liquid = "water",
texture = "default_water_source_animated.png", texture = "mcl_core_water_source_animation.png",
light = 1, light = 1,
nodes = { "group:opaque", "group:leaves" }, nodes = { "group:opaque", "group:leaves" },
sound = "drippingwater_drip", sound = "drippingwater_drip",
@ -92,7 +92,7 @@ mcl_dripping.register_drop({
mcl_dripping.register_drop({ mcl_dripping.register_drop({
liquid = "lava", liquid = "lava",
texture = "default_lava_source_animated.png", texture = "mcl_core_lava_source_animation.png",
light = math.max(7, minetest.registered_nodes["mcl_core:lava_source"].light_source - 3), light = math.max(7, minetest.registered_nodes["mcl_core:lava_source"].light_source - 3),
nodes = { "group:opaque" }, nodes = { "group:opaque" },
sound = "drippingwater_lavadrip", sound = "drippingwater_lavadrip",

View File

@ -0,0 +1,3 @@
# textdomain: mcl_falling_nodes
@1 was smashed by a falling anvil.=@1 foi esmagado(a) por uma bigorna em queda.
@1 was smashed by a falling block.=@1 foi esmagado(a) por um bloco em queda.

View File

@ -362,6 +362,121 @@ function minetest.handle_node_drops(pos, drops, digger)
end end
end end
-- the following code is pulled from Minetest builtin without changes except for the call order being changed,
-- until a comment saying explicitly it's the end of such code
-- TODO if this gets a fix in the engine, remove the block of code
local function user_name(user)
return user and user:get_player_name() or ""
end
-- Returns a logging function. For empty names, does not log.
local function make_log(name)
return name ~= "" and minetest.log or function() end
end
function minetest.node_dig(pos, node, digger)
local diggername = user_name(digger)
local log = make_log(diggername)
local def = minetest.registered_nodes[node.name]
-- Copy pos because the callback could modify it
if def and (not def.diggable or
(def.can_dig and not def.can_dig(vector.copy(pos), digger))) then
log("info", diggername .. " tried to dig "
.. node.name .. " which is not diggable "
.. minetest.pos_to_string(pos))
return false
end
if minetest.is_protected(pos, diggername) then
log("action", diggername
.. " tried to dig " .. node.name
.. " at protected position "
.. minetest.pos_to_string(pos))
minetest.record_protection_violation(pos, diggername)
return false
end
log('action', diggername .. " digs "
.. node.name .. " at " .. minetest.pos_to_string(pos))
local wielded = digger and digger:get_wielded_item()
local drops = minetest.get_node_drops(node, wielded and wielded:get_name())
-- Check to see if metadata should be preserved.
if def and def.preserve_metadata then
local oldmeta = minetest.get_meta(pos):to_table().fields
-- Copy pos and node because the callback can modify them.
local pos_copy = vector.copy(pos)
local node_copy = {name=node.name, param1=node.param1, param2=node.param2}
local drop_stacks = {}
for k, v in pairs(drops) do
drop_stacks[k] = ItemStack(v)
end
drops = drop_stacks
def.preserve_metadata(pos_copy, node_copy, oldmeta, drops)
end
-- Handle drops
minetest.handle_node_drops(pos, drops, digger)
if wielded then
local wdef = wielded:get_definition()
local tp = wielded:get_tool_capabilities()
local dp = minetest.get_dig_params(def and def.groups, tp, wielded:get_wear())
if wdef and wdef.after_use then
wielded = wdef.after_use(wielded, digger, node, dp) or wielded
else
-- Wear out tool
if not minetest.is_creative_enabled(diggername) then
wielded:add_wear(dp.wear)
if wielded:get_count() == 0 and wdef.sound and wdef.sound.breaks then
minetest.sound_play(wdef.sound.breaks, {
pos = pos,
gain = 0.5
}, true)
end
end
end
digger:set_wielded_item(wielded)
end
local oldmetadata = nil
if def and def.after_dig_node then
oldmetadata = minetest.get_meta(pos):to_table()
end
-- Remove node and update
minetest.remove_node(pos)
-- Play sound if it was done by a player
if diggername ~= "" and def and def.sounds and def.sounds.dug then
minetest.sound_play(def.sounds.dug, {
pos = pos,
exclude_player = diggername,
}, true)
end
-- Run callback
if def and def.after_dig_node then
-- Copy pos and node because callback can modify them
local pos_copy = vector.copy(pos)
local node_copy = {name=node.name, param1=node.param1, param2=node.param2}
def.after_dig_node(pos_copy, node_copy, oldmetadata, digger)
end
-- Run script hook
for _, callback in ipairs(minetest.registered_on_dignodes) do
local origin = minetest.callback_origins[callback]
minetest.set_last_run_mod(origin.mod)
-- Copy pos and node because callback can modify them
local pos_copy = vector.copy(pos)
local node_copy = {name=node.name, param1=node.param1, param2=node.param2}
callback(pos_copy, node_copy, digger)
end
return true
end
-- end of code pulled from Minetest
-- Drop single items by default -- Drop single items by default
function minetest.item_drop(itemstack, dropper, pos) function minetest.item_drop(itemstack, dropper, pos)
if dropper and dropper:is_player() then if dropper and dropper:is_player() then

View File

@ -0,0 +1,36 @@
# textdomain: mcl_minecarts
Minecart=Carrinho
Minecarts can be used for a quick transportion on rails.=Carrinhos podem ser usados para transporte rápido em trilhos.
Minecarts only ride on rails and always follow the tracks. At a T-junction with no straight way ahead, they turn left. The speed is affected by the rail type.=Carrinhos viajam somente em trilhos e sempre seguem os traçados. Em uma junção em T sem linha reta à frente, eles viram à esquerda. A velocidade é afetada pelo tipo do trilho.
You can place the minecart on rails. Right-click it to enter it. Punch it to get it moving.=Você pode posicionar o carrinho em trilhos. Clique com o botão direito para entrar nele. Soque-o para fazê-lo mover.
To obtain the minecart, punch it while holding down the sneak key.=Para obter o carrinho, soque-o enquanto segura pressionada a tecla de agachar.
A minecart with TNT is an explosive vehicle that travels on rail.=Um carrinho com TNT é um veículo explosivo que viaja nos trilhos.
Place it on rails. Punch it to move it. The TNT is ignited with a flint and steel or when the minecart is on an powered activator rail.=Posicione-o nos trilhos. Soque-o para movê-lo. A TNT é acesa com um isqueiro ou quando o carrinho está sobre um trilho ativador energizado.
To obtain the minecart and TNT, punch them while holding down the sneak key. You can't do this if the TNT was ignited.=Para obter o carrinho e a TNT, soque-os enquanto segura pressionada a tecla de agachar. Você não consegue fazer isso se a TNT foi acesa.
A minecart with furnace is a vehicle that travels on rails. It can propel itself with fuel.=Um carrinho com fornalha é um veículo que viaja nos trilhos. Se move por conta própria com combustível.
Place it on rails. If you give it some coal, the furnace will start burning for a long time and the minecart will be able to move itself. Punch it to get it moving.=Posicione-o nos trilhos. Se você o der um pouco de carvão, a fornalha vai começar a queimar por um longo tempo e o carrinho será capaz de se mover por conta própria. Soque-o para fazê-lo mover.
To obtain the minecart and furnace, punch them while holding down the sneak key.=Para obter o carrinho e a fornalha, soque-os enquanto segura pressionada a tecla de agachar.
Minecart with Chest=Carrinho com Baú
Minecart with Furnace=Carrinho com Fornalha
Minecart with Command Block=Carrinho com Bloco de Comandos
Minecart with Hopper=Carrinho com Funil
Minecart with TNT=Carrinho com TNT
Place them on the ground to build your railway, the rails will automatically connect to each other and will turn into curves, T-junctions, crossings and slopes as needed.=Posicione-os no chão para construir suas linhas férreas, os trilhos vão conectar-se automaticamente uns nos outros e vão se transformar em curvas, junções em T, cruzamentos e rampas quando necessário.
Rail=Trilho
Rails can be used to build transport tracks for minecarts. Normal rails slightly slow down minecarts due to friction.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Trilhos normais freiam carrinhos gradativamente devido ao atrito.
Powered Rail=Trilho Energizador
Rails can be used to build transport tracks for minecarts. Powered rails are able to accelerate and brake minecarts.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Trilhos energizados são capazes de acelerar e frear carrinhos.
Without redstone power, the rail will brake minecarts. To make this rail accelerate minecarts, power it with redstone power.=Sem carga de redstone, o trilho vai frear os carrinhos. Para fazer o trilho acelerar os carrinhos, energize-o com uma carga de redstone.
Activator Rail=Trilho Ativador
Rails can be used to build transport tracks for minecarts. Activator rails are used to activate special minecarts.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Trilhos ativadores são usados para ativar carrinhos especiais.
To make this rail activate minecarts, power it with redstone power and send a minecart over this piece of rail.=Para fazer esse trilho ativar os carrinhos, energize-o com uma carga de redstone e envie um carrinho sobre esse pedaço de trilho.
Detector Rail=Trilho Detector
Rails can be used to build transport tracks for minecarts. A detector rail is able to detect a minecart above it and powers redstone mechanisms.=Trilhos podem ser usados para construir traçados de transporte para carrinhos. Um trilho detector é capaz de detectar um carrinho sobre ele e energizar mecanismos de redstone.
To detect a minecart and provide redstone power, connect it to redstone trails or redstone mechanisms and send any minecart over the rail.=Para detectar um carrinho e providenciar carga de redstone, conecte-o em trilhas de redstone ou mecanismos de redstone e envie qualquer carrinho sobre esse trilho.
Track for minecarts=Traçado para carrinhos
Speed up when powered, slow down when not powered=Acelera quando energizado, desacelera quando não energizado
Activates minecarts when powered=Ativa carrinhos quando energizado
Emits redstone power when a minecart is detected=Emite carga de redstone quando um carrinho é detectado
Vehicle for fast travel on rails=Veículo para viajar rápido em trilhos
Can be ignited by tools or powered activator rail=Pode ser aceso por ferramentas ou trilho ativador energizado
Sneak to dismount=Agache para desmontar

View File

@ -32,6 +32,9 @@ function mob_class:feed_tame(clicker, feed_count, breed, tame, notake)
if not self.follow then if not self.follow then
return false return false
end end
if clicker:get_wielded_item():get_definition()._mcl_not_consumable then
return false
end
-- can eat/tame with item in hand -- can eat/tame with item in hand
if self.nofollow or self:follow_holding(clicker) then if self.nofollow or self:follow_holding(clicker) then
local consume_food = false local consume_food = false

View File

@ -21,6 +21,8 @@ local function atan(x)
end end
end end
mcl_mobs.effect_functions = {}
-- check if daytime and also if mob is docile during daylight hours -- check if daytime and also if mob is docile during daylight hours
function mob_class:day_docile() function mob_class:day_docile()
@ -382,7 +384,8 @@ function mob_class:monster_attack()
-- find specific mob to attack, failing that attack player/npc/animal -- find specific mob to attack, failing that attack player/npc/animal
if specific_attack(self.specific_attack, name) if specific_attack(self.specific_attack, name)
and (type == "player" or ( type == "npc" and self.attack_npcs ) and (type == "player" or ( type == "npc" and self.attack_npcs )
or (type == "animal" and self.attack_animals == true)) then or (type == "animal" and self.attack_animals == true)
or (self.extra_hostile and not self.attack_exception(player))) then
p = player:get_pos() p = player:get_pos()
sp = s sp = s
@ -513,6 +516,28 @@ end
-- deal damage and effects when mob punched -- deal damage and effects when mob punched
function mob_class:on_punch(hitter, tflp, tool_capabilities, dir) function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
local is_player = hitter:is_player()
local mob_pos = self.object:get_pos()
local player_pos = hitter:get_pos()
if is_player then
-- is mob out of reach?
if vector.distance(mob_pos, player_pos) > 3 then
return
end
-- is mob protected?
if self.protected and minetest.is_protected(mob_pos, hitter:get_player_name()) then
return
end
end
local time_now = minetest.get_us_time()
local time_diff = time_now - self.invul_timestamp
-- check for invulnerability time in microseconds (0.5 second)
if time_diff <= 500000 and time_diff >= 0 then
return
end
-- custom punch function -- custom punch function
if self.do_punch then if self.do_punch then
@ -529,20 +554,15 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
return return
end end
local is_player = hitter:is_player() local time_now = minetest.get_us_time()
if is_player then if is_player then
-- is mob protected?
if self.protected and minetest.is_protected(self.object:get_pos(), hitter:get_player_name()) then
return
end
if minetest.is_creative_enabled(hitter:get_player_name()) then if minetest.is_creative_enabled(hitter:get_player_name()) then
self.health = 0 self.health = 0
end end
-- set/update 'drop xp' timestamp if hitted by player -- set/update 'drop xp' timestamp if hitted by player
self.xp_timestamp = minetest.get_us_time() self.xp_timestamp = time_now
end end
@ -654,6 +674,9 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
-- do damage -- do damage
self.health = self.health - damage self.health = self.health - damage
-- give invulnerability
self.invul_timestamp = time_now
-- skip future functions if dead, except alerting others -- skip future functions if dead, except alerting others
if self:check_for_death( "hit", {type = "punch", puncher = hitter}) then if self:check_for_death( "hit", {type = "punch", puncher = hitter}) then
die = true die = true
@ -669,10 +692,10 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
if not v then return end if not v then return end
local r = 1.4 - math.min(punch_interval, 1.4) local r = 1.4 - math.min(punch_interval, 1.4)
local kb = r * (math.abs(v.x)+math.abs(v.z)) local kb = r * (math.abs(v.x)+math.abs(v.z))
local up = 2 local up = 2.625
if die==true then if die==true then
kb=kb*2 kb=kb*1.25
end end
-- if already in air then dont go up anymore when hit -- if already in air then dont go up anymore when hit
@ -686,7 +709,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
if tool_capabilities.damage_groups["knockback"] then if tool_capabilities.damage_groups["knockback"] then
kb = tool_capabilities.damage_groups["knockback"] kb = tool_capabilities.damage_groups["knockback"]
else else
kb = kb * 1.5 kb = kb * 1.25
end end
@ -696,9 +719,19 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
end end
if hitter and is_player then if hitter and is_player then
local wielditem = hitter:get_wielded_item() local wielditem = hitter:get_wielded_item()
kb = kb + 3 * mcl_enchanting.get_enchantment(wielditem, "knockback") kb = kb + 9 * mcl_enchanting.get_enchantment(wielditem, "knockback")
elseif luaentity and luaentity._knockback then -- add player velocity to mob knockback
local hv = hitter:get_velocity()
local dir_dot = (hv.x * dir.x) + (hv.z * dir.z)
local player_mag = math.sqrt((hv.x * hv.x) + (hv.z * hv.z))
local mob_mag = math.sqrt((v.x * v.x) + (v.z * v.z))
if dir_dot > 0 and mob_mag <= player_mag * 0.625 then
kb = kb + ((math.abs(hv.x) + math.abs(hv.z)) * r)
end
elseif luaentity and luaentity._knockback and die == false then
kb = kb + luaentity._knockback kb = kb + luaentity._knockback
elseif luaentity and luaentity._knockback and die == true then
kb = kb + luaentity._knockback * 0.25
end end
self._kb_turn = true self._kb_turn = true
self._turn_to=self.object:get_yaw()-1.57 self._turn_to=self.object:get_yaw()-1.57
@ -1103,6 +1136,11 @@ function mob_class:do_states_attack (dtime)
full_punch_interval = 1.0, full_punch_interval = 1.0,
damage_groups = {fleshy = self.damage} damage_groups = {fleshy = self.damage}
}, nil) }, nil)
if self.dealt_effect then
mcl_mobs.effect_functions[self.dealt_effect.name](
self.attack, self.dealt_effect.factor, self.dealt_effect.dur
)
end
end end
else else
self.custom_attack(self, p) self.custom_attack(self, p)
@ -1193,6 +1231,9 @@ function mob_class:do_states_attack (dtime)
-- important for mcl_shields -- important for mcl_shields
ent._shooter = self.object ent._shooter = self.object
ent._saved_shooter_pos = self.object:get_pos() ent._saved_shooter_pos = self.object:get_pos()
if ent.homing then
ent._target = self.attack
end
end end
local amount = (vec.x * vec.x + vec.y * vec.y + vec.z * vec.z) ^ 0.5 local amount = (vec.x * vec.x + vec.y * vec.y + vec.z * vec.z) ^ 0.5
@ -1209,7 +1250,13 @@ function mob_class:do_states_attack (dtime)
end end
end end
end end
else
elseif self.attack_type == "custom" and self.attack_state then
self.attack_state(self, dtime)
end end
if self.on_attack then
self.on_attack(self, dtime)
end
end end

View File

@ -1,5 +1,7 @@
local math, tonumber, vector, minetest, mcl_mobs = math, tonumber, vector, minetest, mcl_mobs local math, tonumber, vector, minetest, mcl_mobs = math, tonumber, vector, minetest, mcl_mobs
local mob_class = mcl_mobs.mob_class local mob_class = mcl_mobs.mob_class
local validate_vector = mcl_util.validate_vector
local active_particlespawners = {} local active_particlespawners = {}
local disable_blood = minetest.settings:get_bool("mobs_disable_blood") local disable_blood = minetest.settings:get_bool("mobs_disable_blood")
local DEFAULT_FALL_SPEED = -9.81*1.5 local DEFAULT_FALL_SPEED = -9.81*1.5
@ -9,16 +11,6 @@ local PATHFINDING = "gowp"
local player_transfer_distance = tonumber(minetest.settings:get("player_transfer_distance")) or 128 local player_transfer_distance = tonumber(minetest.settings:get("player_transfer_distance")) or 128
if player_transfer_distance == 0 then player_transfer_distance = math.huge end if player_transfer_distance == 0 then player_transfer_distance = math.huge end
local function validate_vector (vect)
if vect then
if tonumber(vect.x) and tonumber(vect.y) and tonumber(vect.z) then
return true
end
end
return false
end
-- custom particle effects -- custom particle effects
function mcl_mobs.effect(pos, amount, texture, min_size, max_size, radius, gravity, glow, go_down) function mcl_mobs.effect(pos, amount, texture, min_size, max_size, radius, gravity, glow, go_down)
@ -418,7 +410,7 @@ function mob_class:check_head_swivel(dtime)
--final_rotation = vector.new(0,0,0) --final_rotation = vector.new(0,0,0)
end end
mcl_util.set_bone_position(self.object,self.head_swivel, vector.new(0,self.bone_eye_height,self.horrizonatal_head_height), final_rotation) mcl_util.set_bone_position(self.object,self.head_swivel, vector.new(0,self.bone_eye_height,self.horizontal_head_height), final_rotation)
end end

View File

@ -147,7 +147,7 @@ function mcl_mobs.register_mob(name, def)
head_eye_height = def.head_eye_height or def.bone_eye_height or 0, -- how hight aproximatly the mobs head is fromm the ground to tell the mob how high to look up at the player head_eye_height = def.head_eye_height or def.bone_eye_height or 0, -- how hight aproximatly the mobs head is fromm the ground to tell the mob how high to look up at the player
curiosity = def.curiosity or 1, -- how often mob will look at player on idle curiosity = def.curiosity or 1, -- how often mob will look at player on idle
head_yaw = def.head_yaw or "y", -- axis to rotate head on head_yaw = def.head_yaw or "y", -- axis to rotate head on
horrizonatal_head_height = def.horrizonatal_head_height or 0, horizontal_head_height = def.horizontal_head_height or 0,
wears_armor = def.wears_armor, -- a number value used to index texture slot for armor wears_armor = def.wears_armor, -- a number value used to index texture slot for armor
stepheight = def.stepheight or 0.6, stepheight = def.stepheight or 0.6,
name = name, name = name,
@ -171,6 +171,7 @@ function mcl_mobs.register_mob(name, def)
xp_min = def.xp_min or 0, xp_min = def.xp_min or 0,
xp_max = def.xp_max or 0, xp_max = def.xp_max or 0,
xp_timestamp = 0, xp_timestamp = 0,
invul_timestamp = 0,
breath_max = def.breath_max or 15, breath_max = def.breath_max or 15,
breathes_in_water = def.breathes_in_water or false, breathes_in_water = def.breathes_in_water or false,
physical = true, physical = true,
@ -287,6 +288,7 @@ function mcl_mobs.register_mob(name, def)
spawn_in_group_min = def.spawn_in_group_min, spawn_in_group_min = def.spawn_in_group_min,
noyaw = def.noyaw or false, noyaw = def.noyaw or false,
particlespawners = def.particlespawners, particlespawners = def.particlespawners,
spawn_check = def.spawn_check,
-- End of MCL2 extensions -- End of MCL2 extensions
on_spawn = def.on_spawn, on_spawn = def.on_spawn,
on_blast = def.on_blast or function(self,damage) on_blast = def.on_blast or function(self,damage)
@ -297,6 +299,7 @@ function mcl_mobs.register_mob(name, def)
return false, true, {} return false, true, {}
end, end,
do_punch = def.do_punch, do_punch = def.do_punch,
deal_damage = def.deal_damage,
on_breed = def.on_breed, on_breed = def.on_breed,
on_grown = def.on_grown, on_grown = def.on_grown,
on_pick_up = def.on_pick_up, on_pick_up = def.on_pick_up,
@ -311,8 +314,16 @@ function mcl_mobs.register_mob(name, def)
return self:mob_activate(staticdata, def, dtime) return self:mob_activate(staticdata, def, dtime)
end, end,
attack_state = def.attack_state, -- custom attack state
on_attack = def.on_attack, -- called after attack, useful with otherwise predefined attack states (not custom)
harmed_by_heal = def.harmed_by_heal, harmed_by_heal = def.harmed_by_heal,
on_lightning_strike = def.on_lightning_strike is_boss = def.is_boss,
dealt_effect = def.dealt_effect,
on_lightning_strike = def.on_lightning_strike,
extra_hostile = def.extra_hostile,
attack_exception = def.attack_exception or function(p) return false end,
_spawner = def._spawner,
} }
minetest.register_entity(name, setmetatable(final_def,mcl_mobs.mob_class_meta)) minetest.register_entity(name, setmetatable(final_def,mcl_mobs.mob_class_meta))
@ -323,6 +334,13 @@ function mcl_mobs.register_mob(name, def)
end -- END mcl_mobs.register_mob function end -- END mcl_mobs.register_mob function
function mcl_mobs.get_arrow_damage_func(damage, typ)
local typ = mcl_damage.types[typ] and typ or "arrow"
return function(projectile, object)
return mcl_util.deal_damage(object, damage, {type = typ})
end
end
-- register arrow for shoot attack -- register arrow for shoot attack
function mcl_mobs.register_arrow(name, def) function mcl_mobs.register_arrow(name, def)
@ -339,13 +357,15 @@ function mcl_mobs.register_arrow(name, def)
hit_node = def.hit_node, hit_node = def.hit_node,
hit_mob = def.hit_mob, hit_mob = def.hit_mob,
hit_object = def.hit_object, hit_object = def.hit_object,
homing = def.homing,
drop = def.drop or false, -- drops arrow as registered item when true drop = def.drop or false, -- drops arrow as registered item when true
collisionbox = {0, 0, 0, 0, 0, 0}, -- remove box around arrows collisionbox = {0, 0, 0, 0, 0, 0}, -- remove box around arrows
timer = 0, timer = 0,
switch = 0, switch = 0,
_lifetime = def._lifetime or 150,
owner_id = def.owner_id, owner_id = def.owner_id,
rotate = def.rotate, rotate = def.rotate,
on_punch = function(self) on_punch = def.on_punch or function(self)
local vel = self.object:get_velocity() local vel = self.object:get_velocity()
self.object:set_velocity({x=vel.x * -1, y=vel.y * -1, z=vel.z * -1}) self.object:set_velocity({x=vel.x * -1, y=vel.y * -1, z=vel.z * -1})
end, end,
@ -362,7 +382,7 @@ function mcl_mobs.register_arrow(name, def)
local pos = self.object:get_pos() local pos = self.object:get_pos()
if self.switch == 0 if self.switch == 0
or self.timer > 150 or self.timer > self._lifetime
or not within_limits(pos, 0) then or not within_limits(pos, 0) then
mcl_burning.extinguish(self.object) mcl_burning.extinguish(self.object)
self.object:remove(); self.object:remove();
@ -410,6 +430,17 @@ function mcl_mobs.register_arrow(name, def)
end end
end end
if self.homing and self._target then
local p = self._target:get_pos()
if p then
if minetest.line_of_sight(self.object:get_pos(), p) then
self.object:set_velocity(vector.direction(self.object:get_pos(), p) * self.velocity)
end
else
self._target = nil
end
end
if self.hit_player or self.hit_mob or self.hit_object then if self.hit_player or self.hit_mob or self.hit_object then
for _,player in pairs(minetest.get_objects_inside_radius(pos, 1.5)) do for _,player in pairs(minetest.get_objects_inside_radius(pos, 1.5)) do

View File

@ -0,0 +1,13 @@
# textdomain: mcl_mobs
Peaceful mode active! No monsters will spawn.=Modo pacífico ativado! Nenhum monstro será gerado.
This allows you to place a single mob.=Isso permite você posicionar um único 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.=Posicione-o onde você deseja que o mob apareça. Animais serão gerados domesticados, a menos que você segure pressionada a tecla de agachar enquanto posiciona. Se você posicionar em um gerador de mobs, você muda o mob que será gerado.
You need the “maphack” privilege to change the mob spawner.=Você precisa do privilégio "maphack" para mudar o gerador de mobs.
Name Tag=Etiqueta
A name tag is an item to name a mob.=Uma etiqueta é um item para nomear um 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.=Antes de você usar a etiqueta, você precisa determinar um nome em uma bigorna. Assim você pode usar a etiqueta para nomear um mob. Isso consumirá a etiqueta.
Only peaceful mobs allowed!=Apenas mobs pacíficos permitidos!
Give names to mobs=Dá nome aos mobs
Set name at anvil=Determine um nome em uma bigorna
Removes specified mobs except nametagged and tamed ones. For the second parameter, use nametagged/tamed to select only nametagged/tamed mobs, or a range to specify a maximum distance from the player.=Remove mobs especifícos exceto os mobs nomeados ou domesticados. Como segundo parâmetro, use nametagged/tamed para selecionar apenas mobs nomeados/domesticados, ou um alcançe para especificar uma distância máxima em relação ao jogador.
Default usage. Clearing hostile mobs. For more options please type: /help clearmobs=Uso padrão. Eliminando mobs hostis. Para mais opções por favor digite: /help clearmobs

View File

@ -1,5 +1,6 @@
local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs
local mob_class = mcl_mobs.mob_class local mob_class = mcl_mobs.mob_class
local validate_vector = mcl_util.validate_vector
local ENTITY_CRAMMING_MAX = 24 local ENTITY_CRAMMING_MAX = 24
local CRAMMING_DAMAGE = 3 local CRAMMING_DAMAGE = 3
@ -355,7 +356,7 @@ function mob_class:set_yaw(yaw, delay, dtime)
if math.abs(target_shortest_path_nums) > 10 then if math.abs(target_shortest_path_nums) > 10 then
self.object:set_yaw(self.object:get_yaw()+(target_shortest_path*(3.6*ddtime))) self.object:set_yaw(self.object:get_yaw()+(target_shortest_path*(3.6*ddtime)))
if self.acc then if validate_vector(self.acc) then
self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), target_shortest_path*(3.6*ddtime)) self.acc=vector.rotate_around_axis(self.acc,vector.new(0,1,0), target_shortest_path*(3.6*ddtime))
end end
end end
@ -681,6 +682,9 @@ function mob_class:do_env_damage()
-- don't fall when on ignore, just stand still -- don't fall when on ignore, just stand still
if self.standing_in == "ignore" then if self.standing_in == "ignore" then
self.object:set_velocity({x = 0, y = 0, z = 0}) self.object:set_velocity({x = 0, y = 0, z = 0})
-- wither rose effect
elseif self.standing_in == "mcl_flowers:wither_rose" then
mcl_potions.withering_func(self.object, 1, 2)
end end
local nodef = minetest.registered_nodes[self.standing_in] local nodef = minetest.registered_nodes[self.standing_in]

View File

@ -2,6 +2,13 @@
local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs local math, vector, minetest, mcl_mobs = math, vector, minetest, mcl_mobs
local mob_class = mcl_mobs.mob_class local mob_class = mcl_mobs.mob_class
local modern_lighting = minetest.settings:get_bool("mcl_mobs_modern_lighting", true)
local nether_threshold = tonumber(minetest.settings:get("mcl_mobs_nether_threshold")) or 11
local end_threshold = tonumber(minetest.settings:get("mcl_mobs_end_threshold")) or 0
local overworld_threshold = tonumber(minetest.settings:get("mcl_mobs_overworld_threshold")) or 0
local overworld_sky_threshold = tonumber(minetest.settings:get("mcl_mobs_overworld_sky_threshold")) or 7
local overworld_passive_threshold = tonumber(minetest.settings:get("mcl_mobs_overworld_passive_threshold")) or 7
local get_node = minetest.get_node local get_node = minetest.get_node
local get_item_group = minetest.get_item_group local get_item_group = minetest.get_item_group
local get_node_light = minetest.get_node_light local get_node_light = minetest.get_node_light
@ -709,9 +716,6 @@ local function spawn_check(pos, spawn_def)
and spawn_def.dimension == dimension and spawn_def.dimension == dimension
and biome_check(spawn_def.biomes, gotten_biome) then and biome_check(spawn_def.biomes, gotten_biome) then
--mcl_log("Level 1 spawn check passed")
--minetest.log("Mob: " .. mob_def.name)
if (is_ground or spawn_def.type_of_spawning ~= "ground") if (is_ground or spawn_def.type_of_spawning ~= "ground")
and (spawn_def.type_of_spawning ~= "ground" or not is_leaf) and (spawn_def.type_of_spawning ~= "ground" or not is_leaf)
and (not is_farm_animal(spawn_def.name) or is_grass) and (not is_farm_animal(spawn_def.name) or is_grass)
@ -721,20 +725,41 @@ local function spawn_check(pos, spawn_def)
and (spawn_def.check_position and spawn_def.check_position(pos) or spawn_def.check_position == nil) and (spawn_def.check_position and spawn_def.check_position(pos) or spawn_def.check_position == nil)
and ( not spawn_protected or not minetest.is_protected(pos, "") ) then and ( not spawn_protected or not minetest.is_protected(pos, "") ) then
--mcl_log("Level 2 spawn check passed")
local gotten_light = get_node_light(pos) local gotten_light = get_node_light(pos)
if gotten_light >= spawn_def.min_light and gotten_light <= spawn_def.max_light then
--mcl_log("Level 3 spawn check passed") if modern_lighting then
return true local my_node = get_node(pos)
local sky_light = minetest.get_natural_light(pos)
local art_light = minetest.get_artificial_light(my_node.param1)
if mob_def.spawn_check then
return mob_def.spawn_check(pos, gotten_light, art_light, sky_light)
elseif mob_type == "monster" then
if dimension == "nether" then
if art_light <= nether_threshold then
return true
end
elseif dimension == "end" then
if art_light <= end_threshold then
return true
end
elseif dimension == "overworld" then
if art_light <= overworld_threshold and sky_light <= overworld_sky_threshold then
return true
end
end
else
-- passive threshold is apparently the same in all dimensions ...
if gotten_light > overworld_passive_threshold then
return true
end
end
else else
--mcl_log("Spawn check level 3 failed") if gotten_light >= spawn_def.min_light and gotten_light <= spawn_def.max_light then
return true
end
end end
else
--mcl_log("Spawn check level 2 failed")
end end
else
--mcl_log("Spawn check level 1 failed")
end end
return false return false
end end

View File

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

View File

@ -2,6 +2,9 @@ local dim = {"x", "z"}
local modpath = minetest.get_modpath(minetest.get_current_modname()) local modpath = minetest.get_modpath(minetest.get_current_modname())
local anti_troll = minetest.settings:get_bool("wither_anti_troll_measures", false)
local peaceful = minetest.settings:get_bool("only_peaceful_mobs", false)
local function load_schem(filename) local function load_schem(filename)
local file = io.open(modpath .. "/schems/" .. filename, "r") local file = io.open(modpath .. "/schems/" .. filename, "r")
local data = minetest.deserialize(file:read()) local data = minetest.deserialize(file:read())
@ -9,6 +12,14 @@ local function load_schem(filename)
return data return data
end end
local wboss_overworld = 0
local wboss_nether = 0
local wboss_end = 0
local LIM_OVERWORLD = tonumber(minetest.settings:get("wither_cap_overworld")) or 3
local LIM_NETHER = tonumber(minetest.settings:get("wither_cap_nether")) or 10
local LIM_END = tonumber(minetest.settings:get("wither_cap_end")) or 5
local wither_spawn_schems = {} local wither_spawn_schems = {}
for _, d in pairs(dim) do for _, d in pairs(dim) do
@ -16,8 +27,13 @@ for _, d in pairs(dim) do
end end
local function check_schem(pos, schem) local function check_schem(pos, schem)
local cn_name
for _, n in pairs(schem) do for _, n in pairs(schem) do
if minetest.get_node(vector.add(pos, n)).name ~= n.name then cn_name = minetest.get_node(vector.add(pos, n)).name
if string.find(cn_name, "mcl_heads:wither_skeleton") then
cn_name = "mcl_heads:wither_skeleton"
end
if cn_name ~= n.name then
return false return false
end end
end end
@ -30,14 +46,32 @@ local function remove_schem(pos, schem)
end end
end end
local function wither_spawn(pos) local function check_limit(pos)
local dim = mcl_worlds.pos_to_dimension(pos)
if dim == "overworld" and wboss_overworld >= LIM_OVERWORLD then return false
elseif dim == "end" and wboss_end >= LIM_END then return false
elseif wboss_nether >= LIM_NETHER then return false
else return true end
end
local function wither_spawn(pos, player)
if peaceful then return end
for _, d in pairs(dim) do for _, d in pairs(dim) do
for i = 0, 2 do for i = 0, 2 do
local p = vector.add(pos, {x = 0, y = -2, z = 0, [d] = -i}) local p = vector.add(pos, {x = 0, y = -2, z = 0, [d] = -i})
local schem = wither_spawn_schems[d] local schem = wither_spawn_schems[d]
if check_schem(p, schem) then if check_schem(p, schem) and (not anti_troll or check_limit(pos)) then
remove_schem(p, schem) remove_schem(p, schem)
minetest.add_entity(vector.add(p, {x = 0, y = 1, z = 0, [d] = 1}), "mobs_mc:wither") local wither = minetest.add_entity(vector.add(p, {x = 0, y = 1, z = 0, [d] = 1}), "mobs_mc:wither")
if not wither then return end
local wither_ent = wither:get_luaentity()
wither_ent._spawner = player:get_player_name()
local dim = mcl_worlds.pos_to_dimension(pos)
if dim == "overworld" then
wboss_overworld = wboss_overworld + 1
elseif dim == "end" then
wboss_end = wboss_end + 1
else wboss_nether = wboss_nether + 1 end
local objects = minetest.get_objects_inside_radius(pos, 20) local objects = minetest.get_objects_inside_radius(pos, 20)
for _, players in ipairs(objects) do for _, players in ipairs(objects) do
if players:is_player() then if players:is_player() then
@ -54,7 +88,19 @@ local old_on_place = wither_head.on_place
function wither_head.on_place(itemstack, placer, pointed) function wither_head.on_place(itemstack, placer, pointed)
local n = minetest.get_node(vector.offset(pointed.above,0,-1,0)) local n = minetest.get_node(vector.offset(pointed.above,0,-1,0))
if n and n.name == "mcl_nether:soul_sand" then if n and n.name == "mcl_nether:soul_sand" then
minetest.after(0, wither_spawn, pointed.above) minetest.after(0, wither_spawn, pointed.above, placer)
end end
return old_on_place(itemstack, placer, pointed) return old_on_place(itemstack, placer, pointed)
end end
if anti_troll then
-- pull wither counts per dimension
minetest.register_globalstep(function(dtime)
wboss_overworld = mobs_mc.wither_count_overworld
wboss_nether = mobs_mc.wither_count_nether
wboss_end = mobs_mc.wither_count_end
mobs_mc.wither_count_overworld = 0
mobs_mc.wither_count_nether = 0
mobs_mc.wither_count_end = 0
end)
end

View File

@ -305,6 +305,9 @@ Origin of those models:
* `mobs_mc_rabbit_random.*.ogg` (CC0) * `mobs_mc_rabbit_random.*.ogg` (CC0)
* Changes were made. * Changes were made.
* Source: <https://freesound.org/people/Alshred/> * Source: <https://freesound.org/people/Alshred/>
* [epCode]
* `extra_mobs_hoglin*.ogg` (LGPL 3.0)
* Source: <https://git.minetest.land/epCode/extra_mobs/src/branch/master/sounds>
Note: Many of these sounds have been more or less modified to fit the game. Note: Many of these sounds have been more or less modified to fit the game.

View File

@ -13,7 +13,7 @@ local axolotl = {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = -1, bone_eye_height = -1,
head_eye_height = -0.5, head_eye_height = -0.5,
horrizonatal_head_height = 0, horizontal_head_height = 0,
curiosity = 10, curiosity = 10,
head_yaw="z", head_yaw="z",
@ -78,7 +78,6 @@ local axolotl = {
attack_animals = true, attack_animals = true,
specific_attack = { specific_attack = {
"extra_mobs_cod", "extra_mobs_cod",
"mobs_mc:sheep",
"extra_mobs_glow_squid", "extra_mobs_glow_squid",
"extra_mobs_salmon", "extra_mobs_salmon",
"extra_mobs_tropical_fish", "extra_mobs_tropical_fish",

View File

@ -2,6 +2,18 @@
local S = minetest.get_translator("mobs_mc") local S = minetest.get_translator("mobs_mc")
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
local date = os.date("*t")
local maxlight
if (date.month == 10 and date.day >= 20) or (date.month == 11 and date.day <= 3) then
maxlight = 6
else
maxlight = 3
end
return artificial_light <= maxlight
end
mcl_mobs.register_mob("mobs_mc:bat", { mcl_mobs.register_mob("mobs_mc:bat", {
description = S("Bat"), description = S("Bat"),
type = "animal", type = "animal",
@ -50,6 +62,7 @@ mcl_mobs.register_mob("mobs_mc:bat", {
jump = false, jump = false,
fly = true, fly = true,
makes_footstep_sound = false, makes_footstep_sound = false,
spawn_check = spawn_check,
}) })

View File

@ -11,6 +11,9 @@ local mod_target = minetest.get_modpath("mcl_target")
--################### BLAZE --################### BLAZE
--################### --###################
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
return artificial_light <= 11
end
mcl_mobs.register_mob("mobs_mc:blaze", { mcl_mobs.register_mob("mobs_mc:blaze", {
description = S("Blaze"), description = S("Blaze"),
@ -137,6 +140,7 @@ mcl_mobs.register_mob("mobs_mc:blaze", {
}, },
}) })
end, end,
spawn_check = spawn_check,
}) })
mcl_mobs:spawn_specific( mcl_mobs:spawn_specific(

View File

@ -23,7 +23,7 @@ mcl_mobs.register_mob("mobs_mc:chicken", {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 4, bone_eye_height = 4,
head_eye_height = 1.5, head_eye_height = 1.5,
horrizonatal_head_height = -.3, horizontal_head_height = -.3,
curiosity = 10, curiosity = 10,
head_yaw="z", head_yaw="z",
visual_size = {x=1,y=1}, visual_size = {x=1,y=1},

View File

@ -24,7 +24,7 @@ local cow_def = {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 10, bone_eye_height = 10,
head_eye_height = 1.1, head_eye_height = 1.1,
horrizonatal_head_height=-1.8, horizontal_head_height=-1.8,
curiosity = 2, curiosity = 2,
head_yaw="z", head_yaw="z",
makes_footstep_sound = true, makes_footstep_sound = true,

View File

@ -50,7 +50,7 @@ mcl_mobs.register_mob("mobs_mc:creeper", {
explosion_strength = 3, explosion_strength = 3,
explosion_radius = 3.5, explosion_radius = 3.5,
explosion_damage_radius = 3.5, explosion_damage_radius = 3.5,
explosiontimer_reset_radius = 6, explosiontimer_reset_radius = 3,
reach = 3, reach = 3,
explosion_timer = 1.5, explosion_timer = 1.5,
allow_fuse_reset = true, allow_fuse_reset = true,
@ -172,7 +172,7 @@ mcl_mobs.register_mob("mobs_mc:creeper_charged", {
explosion_strength = 6, explosion_strength = 6,
explosion_radius = 8, explosion_radius = 8,
explosion_damage_radius = 8, explosion_damage_radius = 8,
explosiontimer_reset_radius = 6, explosiontimer_reset_radius = 3,
reach = 3, reach = 3,
explosion_timer = 1.5, explosion_timer = 1.5,
allow_fuse_reset = true, allow_fuse_reset = true,

View File

@ -136,6 +136,7 @@ mcl_mobs.register_mob("mobs_mc:enderdragon", {
end end
end, end,
fire_resistant = true, fire_resistant = true,
is_boss = true,
}) })

View File

@ -31,8 +31,9 @@ local hoglin = {
} }, } },
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
sounds = { sounds = {
random = "extra_mobs_hoglin", random = "extra_mobs_hoglin.1",
damage = "extra_mobs_hoglin_hurt", damage = "extra_mobs_hoglin_hurt",
death = "extra_mobs_hoglin_hurt",
distance = 16, distance = 16,
}, },
jump = true, jump = true,
@ -92,6 +93,12 @@ local zoglin = table.copy(hoglin)
zoglin.description = S("Zoglin") zoglin.description = S("Zoglin")
zoglin.fire_resistant = 1 zoglin.fire_resistant = 1
zoglin.textures = {"extra_mobs_zoglin.png"} zoglin.textures = {"extra_mobs_zoglin.png"}
sounds = {
random = "extra_mobs_hoglin.2",
damage = "extra_mobs_hoglin_hurt",
death = "extra_mobs_hoglin_hurt",
distance = 16,
}
zoglin.do_custom = function() zoglin.do_custom = function()
return return
end end

View File

@ -44,18 +44,6 @@ local function get_drops(self)
max = 2, max = 2,
looting = "common", looting = "common",
}) })
if self._saddle then
table.insert(self.drops,{name = "mcl_mobitems:saddle",
chance = 1,
min = 1,
max = 1,})
end
if self._chest then
table.insert(self.drops,{name = "mcl_chests:chest",
chance = 1,
min = 1,
max = 1,})
end
end end
-- Helper functions to determine equipment rules -- Helper functions to determine equipment rules
@ -245,10 +233,18 @@ local horse = {
on_die = function(self, pos) on_die = function(self, pos)
-- drop saddle when horse is killed while riding -- drop saddle when horse is killed
if self._saddle then if self._saddle then
minetest.add_item(pos, "mcl_mobitems:saddle") minetest.add_item(pos, "mcl_mobitems:saddle")
end end
-- drop chest when mule/donkey is killed
if self._chest then
minetest.add_item(pos, "mcl_chests:chest")
end
-- drop armor when horse is killed
if self._wearing_armor then
minetest.add_item(pos, self._horse_armor)
end
-- also detach from horse properly -- also detach from horse properly
if self.driver then if self.driver then
mcl_mobs.detach(self.driver, {x = 1, y = 0, z = 1}) mcl_mobs.detach(self.driver, {x = 1, y = 0, z = 1})
@ -401,6 +397,7 @@ local horse = {
-- Put on armor and take armor from player's inventory -- Put on armor and take armor from player's inventory
local armor = minetest.get_item_group(iname, "horse_armor") local armor = minetest.get_item_group(iname, "horse_armor")
self._horse_armor = iname self._horse_armor = iname
self._wearing_armor = true
local w = clicker:get_wielded_item() local w = clicker:get_wielded_item()
if not minetest.is_creative_enabled(clicker:get_player_name()) then if not minetest.is_creative_enabled(clicker:get_player_name()) then
w:take_item() w:take_item()

View File

@ -4,12 +4,14 @@
--License for code WTFPL and otherwise stated in readmes --License for code WTFPL and otherwise stated in readmes
local S = minetest.get_translator("mobs_mc") local S = minetest.get_translator("mobs_mc")
local allow_nav_hacks = minetest.settings:get_bool("mcl_mob_allow_nav_hacks ",false)
--################### --###################
--################### IRON GOLEM --################### IRON GOLEM
--################### --###################
local etime = 0 local walk_dist = 40
local tele_dist = 80
mcl_mobs.register_mob("mobs_mc:iron_golem", { mcl_mobs.register_mob("mobs_mc:iron_golem", {
description = S("Iron Golem"), description = S("Iron Golem"),
@ -85,11 +87,23 @@ mcl_mobs.register_mob("mobs_mc:iron_golem", {
punch_start = 40, punch_end = 50, punch_start = 40, punch_end = 50,
}, },
jump = true, jump = true,
on_step = function(self,dtime) do_custom = function(self, dtime)
etime = etime + dtime self.home_timer = (self.home_timer or 0) + dtime
if etime > 10 then
if self._home and vector.distance(self._home,self.object:get_pos()) > 50 then if self.home_timer > 10 then
self:gopath(self._home) self.home_timer = 0
if self._home and self.state ~= "attack" then
local dist = vector.distance(self._home,self.object:get_pos())
if allow_nav_hacks and dist >= tele_dist then
self.object:set_pos(self._home)
self.state = "stand"
self.order = "follow"
elseif dist >= walk_dist then
self:gopath(self._home, function(self)
self.state = "stand"
self.order = "follow"
end)
end
end end
end end
end, end,

View File

@ -62,7 +62,7 @@ mcl_mobs.register_mob("mobs_mc:llama", {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 11, bone_eye_height = 11,
head_eye_height = 3, head_eye_height = 3,
horrizonatal_head_height=0, horizontal_head_height=0,
curiosity = 60, curiosity = 60,
head_yaw = "z", head_yaw = "z",

View File

@ -21,6 +21,7 @@ Mule=Mule
Iron Golem=Golem de fer Iron Golem=Golem de fer
Llama=Lama Llama=Lama
Ocelot=Ocelot Ocelot=Ocelot
Cat=Chat
Parrot=Perroquet Parrot=Perroquet
Pig=Cochon Pig=Cochon
Polar Bear=Ours blanc Polar Bear=Ours blanc
@ -48,8 +49,15 @@ Witch=Sorcière
Wither=Wither Wither=Wither
Wolf=Loup Wolf=Loup
Husk=Zombie Momifié Husk=Zombie Momifié
Baby Husk=Bébé Zombie Momifié
Zombie=Zombie Zombie=Zombie
Zombie Piglin=Zombie Cochon Baby Zombie=Bébé Zombie
Piglin=Piglin
Baby Piglin=Bébé Piglin
Zombie Piglin=Piglin Zombie
Baby Zombie Piglin=Bébé Piglin Zombie
Sword Piglin=Piglin avec une épée
Piglin Brute=Piglin Barbare
Farmer=Fermier Farmer=Fermier
Fisherman=Pêcheur Fisherman=Pêcheur
Fletcher=Archer Fletcher=Archer
@ -69,5 +77,7 @@ Dolphin=Dauphin
Pillager=Pilleur Pillager=Pilleur
Tropical fish=Poisson tropical Tropical fish=Poisson tropical
Hoglin=Hoglin Hoglin=Hoglin
Baby hoglin=Bébé Hoglin
Zoglin=Zoglin
Strider=Arpenteur Strider=Arpenteur
Glow Squid=Poulpe Brillant Glow Squid=Poulpe Brillant

View File

@ -0,0 +1,83 @@
# textdomain: mobs_mc
Agent=Agente
Axolotl=Axolote
Bat=Morcego
Blaze=Blaze
Chicken=Galinha
Cow=Vaca
Mooshroom=Coguvaca
Creeper=Creeper
Ender Dragon=Dragão do Fim
Enderman=Enderman
Endermite=Endermite
Ghast=Ghast
Elder Guardian=Guardião Ancião
Guardian=Guardião
Horse=Cavalo
Skeleton Horse=Cavalo Esqueleto
Zombie Horse=Cavalo Zumbi
Donkey=Burro
Mule=Mula
Iron Golem=Golem de Ferro
Llama=Lhama
Ocelot=Jaguatirica
Cat=Gato
Parrot=Papagaio
Pig=Porco
Polar Bear=Urso Polar
Rabbit=Coelho
Killer Bunny=Coelho Assassino
Sheep=Ovelha
Shulker=Shulker
Silverfish=Traça
Skeleton=Esqueleto
Stray=Esqueleto Errante
Wither Skeleton=Esqueleto Wither
Magma Cube=Cubo de Magma
Slime=Slime
Snow Golem=Golem de Neve
Spider=Aranha
Cave Spider=Aranha de Caverna
Squid=Lula
Vex=Vex
Evoker=Invocador
Illusioner=Ilusionista
Villager=Aldeão
Vindicator=Vingador
Zombie Villager=Aldeão Zumbi
Witch=Bruxa
Wither=Wither
Wolf=Lobo
Husk=Zumbi-Múmia
Baby Husk=Zumbi-Múmia Bebê
Zombie=Zumbi
Baby Zombie=Zumbi Bebê
Piglin=Piglin
Baby Piglin=Piglin Bebê
Zombie Piglin=Piglin Zumbi
Baby Zombie Piglin=Piglin Zumbi Bebê
Sword Piglin=Piglin Espadachim
Piglin Brute=Piglin Barbáro
Farmer=Fazendeiro
Fisherman=Pescador
Fletcher=Flecheiro
Shepherd=Pastor
Librarian=Bibliotecário
Cartographer=Cartógrafo
Armorer=Armoreiro
Leatherworker=Coureiro
Butcher=Açougueiro
Weapon Smith=Armeiro
Tool Smith=Ferramenteiro
Cleric=Clérigo
Nitwit=Palerma
Cod=Bacalhau
Salmon=Salmão
Dolphin=Golfinho
Pillager=Saqueador
Tropical fish=Peixe Tropical
Hoglin=Hoglin
Baby hoglin=Hoglin Bebê
Zoglin=Zoglin
Strider=Lavagante
Glow Squid=Lula Brilhante

View File

@ -2,4 +2,4 @@ name = mobs_mc
author = maikerumine author = maikerumine
description = Adds Minecraft-like monsters and animals. description = Adds Minecraft-like monsters and animals.
depends = mcl_init, mcl_particles, mcl_mobs, mcl_wip, mcl_core, mcl_util depends = mcl_init, mcl_particles, mcl_mobs, mcl_wip, mcl_core, mcl_util
optional_depends = default, mcl_tnt, mcl_bows, mcl_throwing, mcl_fishing, bones, mesecons_materials, doc_items optional_depends = default, mcl_tnt, mcl_bows, mcl_throwing, mcl_fishing, bones, mesecons_materials, doc_items, mcl_worlds

View File

@ -39,7 +39,7 @@ local ocelot = {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 6.2, bone_eye_height = 6.2,
head_eye_height = 0.4, head_eye_height = 0.4,
horrizonatal_head_height=-0, horizontal_head_height=-0,
head_yaw="z", head_yaw="z",
curiosity = 4, curiosity = 4,
collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.69, 0.3}, collisionbox = {-0.3, -0.01, -0.3, 0.3, 0.69, 0.3},

View File

@ -137,7 +137,7 @@ mcl_mobs.register_mob("mobs_mc:parrot", {
xp_max = 3, xp_max = 3,
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 1.1, bone_eye_height = 1.1,
horrizonatal_head_height=0, horizontal_head_height=0,
curiosity = 10, curiosity = 10,
collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.89, 0.25}, collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.89, 0.25},
visual = "mesh", visual = "mesh",

View File

@ -22,7 +22,7 @@ mcl_mobs.register_mob("mobs_mc:pig", {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 7.5, bone_eye_height = 7.5,
head_eye_height = 0.8, head_eye_height = 0.8,
horrizonatal_head_height=-1, horizontal_head_height=-1,
curiosity = 3, curiosity = 3,
head_yaw="z", head_yaw="z",
makes_footstep_sound = true, makes_footstep_sound = true,

View File

@ -61,8 +61,10 @@ local piglin = {
} }, } },
visual_size = {x=1, y=1}, visual_size = {x=1, y=1},
sounds = { sounds = {
random = "extra_mobs_piglin", random = "mobs_mc_zombiepig_random",
damage = "extra_mobs_piglin_hurt", war_cry = "mobs_mc_zombiepig_war_cry", death = "mobs_mc_zombiepig_death",
damage = "mobs_mc_zombiepig_hurt.2",
death = "mobs_mc_zombiepig_death.2",
distance = 16, distance = 16,
}, },
jump = true, jump = true,
@ -219,6 +221,10 @@ mcl_mobs.register_mob("mobs_mc:sword_piglin", sword_piglin)
-- Zombified Piglin -- -- Zombified Piglin --
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
return artificial_light <= 11
end
local zombified_piglin = { local zombified_piglin = {
description = S("Zombie Piglin"), description = S("Zombie Piglin"),
-- type="animal", passive=false: This combination is needed for a neutral mob which becomes hostile, if attacked -- type="animal", passive=false: This combination is needed for a neutral mob which becomes hostile, if attacked
@ -256,6 +262,7 @@ local zombified_piglin = {
}, },
jump = true, jump = true,
makes_footstep_sound = true, makes_footstep_sound = true,
spawn_check = spawn_check,
walk_velocity = .8, walk_velocity = .8,
run_velocity = 2.6, run_velocity = 2.6,
pathfinding = 1, pathfinding = 1,

View File

@ -27,7 +27,7 @@ mcl_mobs.register_mob("mobs_mc:polar_bear", {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 2.6, bone_eye_height = 2.6,
head_eye_height = 1, head_eye_height = 1,
horrizonatal_head_height = 0, horizontal_head_height = 0,
curiosity = 20, curiosity = 20,
head_yaw="z", head_yaw="z",
visual_size = {x=3.0, y=3.0}, visual_size = {x=3.0, y=3.0},

View File

@ -18,7 +18,7 @@ local rabbit = {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 2, bone_eye_height = 2,
head_eye_height = 0.5, head_eye_height = 0.5,
horrizonatal_head_height = -.3, horizontal_head_height = -.3,
curiosity = 20, curiosity = 20,
head_yaw="z", head_yaw="z",
visual = "mesh", visual = "mesh",

View File

@ -67,7 +67,7 @@ mcl_mobs.register_mob("mobs_mc:sheep", {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 3.3, bone_eye_height = 3.3,
head_eye_height = 1.1, head_eye_height = 1.1,
horrizonatal_head_height=-.7, horizontal_head_height=-.7,
curiosity = 6, curiosity = 6,
head_yaw="z", head_yaw="z",
visual = "mesh", visual = "mesh",
@ -111,7 +111,7 @@ mcl_mobs.register_mob("mobs_mc:sheep", {
run_start = 81, run_end = 121, run_speed = 60, run_start = 81, run_end = 121, run_speed = 60,
eat_start = 121, eat_start = 161, eat_loop = false, eat_start = 121, eat_start = 161, eat_loop = false,
}, },
follow = { "mcl_farming:wheat_item" }, follow = { "mcl_farming:wheat_item", "mcl_shepherd:shepherd_staff" },
view_range = 12, view_range = 12,
-- Eat grass -- Eat grass

View File

@ -35,7 +35,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
type = "monster", type = "monster",
spawn_class = "hostile", spawn_class = "hostile",
attack_type = "shoot", attack_type = "shoot",
shoot_interval = 0.5, shoot_interval = 6,
arrow = "mobs_mc:shulkerbullet", arrow = "mobs_mc:shulkerbullet",
shoot_offset = 0.5, shoot_offset = 0.5,
passive = false, passive = false,
@ -43,7 +43,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
hp_max = 30, hp_max = 30,
xp_min = 5, xp_min = 5,
xp_max = 5, xp_max = 5,
armor = 150, armor = 20,
collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.99, 0.5}, collisionbox = {-0.5, -0.01, -0.5, 0.5, 0.99, 0.5},
visual = "mesh", visual = "mesh",
mesh = "mobs_mc_shulker.b3d", mesh = "mobs_mc_shulker.b3d",
@ -51,7 +51,7 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
-- TODO: sounds -- TODO: sounds
-- TODO: Make shulker dye-able -- TODO: Make shulker dye-able
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
walk_chance = 0, walk_chance = 10,
knock_back = false, knock_back = false,
jump = false, jump = false,
can_despawn = false, can_despawn = false,
@ -65,15 +65,19 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
looting_factor = 0.0625}, looting_factor = 0.0625},
}, },
animation = { animation = {
stand_speed = 25, walk_speed = 0, run_speed = 50, punch_speed = 25, stand_speed = 25, walk_speed = 25, run_speed = 50, punch_speed = 25,
speed_normal = 25, speed_run = 50, speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 25, stand_start = 0, stand_end = 25,
walk_start = 25, walk_end = 45, walk_start = 45, walk_end = 65,
run_start = 45, run_end = 85, walk_loop = false,
run_start = 65, run_end = 85,
run_loop = false,
punch_start = 80, punch_end = 100, punch_start = 80, punch_end = 100,
}, },
view_range = 16, view_range = 16,
fear_height = 0, fear_height = 0,
walk_velocity = 0,
run_velocity = 0,
noyaw = true, noyaw = true,
do_custom = function(self,dtime) do_custom = function(self,dtime)
local pos = self.object:get_pos() local pos = self.object:get_pos()
@ -81,12 +85,13 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
self.object:set_yaw(0) self.object:set_yaw(0)
mcl_mobs:yaw(self, 0, 0, dtime) mcl_mobs:yaw(self, 0, 0, dtime)
end end
if self.state == "walk" or self.state == "stand" then
self.state = "stand"
self:set_animation("stand")
end
if self.state == "attack" then if self.state == "attack" then
self:set_animation("punch") self:set_animation("run")
self.armor = 0
elseif self.state == "stand" then
self.armor = 20
elseif self.state == "walk" or self.state == "run" then
self.armor = 0
end end
self.path.way = false self.path.way = false
self.look_at_players = false self.look_at_players = false
@ -149,6 +154,9 @@ mcl_mobs.register_mob("mobs_mc:shulker", {
end end
end end
end, end,
on_attack = function(self, dtime)
self.shoot_interval = math.random(1, 6)
end,
}) })
-- bullet arrow (weapon) -- bullet arrow (weapon)
@ -156,27 +164,12 @@ mcl_mobs.register_arrow("mobs_mc:shulkerbullet", {
visual = "sprite", visual = "sprite",
visual_size = {x = 0.25, y = 0.25}, visual_size = {x = 0.25, y = 0.25},
textures = {"mobs_mc_shulkerbullet.png"}, textures = {"mobs_mc_shulkerbullet.png"},
velocity = 6, velocity = 5,
homing = true,
hit_player = function(self, player) hit_player = mcl_mobs.get_arrow_damage_func(4),
player:punch(self.object, 1.0, { hit_mob = mcl_mobs.get_arrow_damage_func(4),
full_punch_interval = 1.0,
damage_groups = {fleshy = 4},
}, nil)
end,
hit_mob = function(self, mob)
mob:punch(self.object, 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 4},
}, nil)
end,
hit_node = function(self, pos, node)
end
}) })
mcl_mobs.register_egg("mobs_mc:shulker", S("Shulker"), "#946694", "#4d3852", 0) mcl_mobs.register_egg("mobs_mc:shulker", S("Shulker"), "#946694", "#4d3852", 0)
mcl_mobs:non_spawn_specific("mobs_mc:shulker","overworld",0,minetest.LIGHT_MAX+1) mcl_mobs:non_spawn_specific("mobs_mc:shulker","overworld",0,minetest.LIGHT_MAX+1)
--[[ --[[

View File

@ -4,6 +4,10 @@
local S = minetest.get_translator("mobs_mc") local S = minetest.get_translator("mobs_mc")
local function spawn_check(pos, environmental_light, artificial_light, sky_light)
return artificial_light <= 11
end
mcl_mobs.register_mob("mobs_mc:silverfish", { mcl_mobs.register_mob("mobs_mc:silverfish", {
description = S("Silverfish"), description = S("Silverfish"),
type = "monster", type = "monster",
@ -53,6 +57,7 @@ mcl_mobs.register_mob("mobs_mc:silverfish", {
view_range = 16, view_range = 16,
attack_type = "dogfight", attack_type = "dogfight",
damage = 1, damage = 1,
spawn_check = spawn_check,
}) })
mcl_mobs.register_egg("mobs_mc:silverfish", S("Silverfish"), "#6d6d6d", "#313131", 0) mcl_mobs.register_egg("mobs_mc:silverfish", S("Silverfish"), "#6d6d6d", "#313131", 0)

View File

@ -96,6 +96,11 @@ mcl_mobs.register_mob("mobs_mc:witherskeleton", {
fear_height = 4, fear_height = 4,
harmed_by_heal = true, harmed_by_heal = true,
fire_resistant = true, fire_resistant = true,
dealt_effect = {
name = "withering",
factor = 1,
dur = 10,
},
}) })
--spawn --spawn

View File

@ -161,6 +161,18 @@ local spawn_children_on_die = function(child_mob, spawn_distance, eject_speed)
end end
end end
local swamp_light_max = 7
local function slime_spawn_check(pos, environmental_light, artificial_light, sky_light)
local maxlight = swamp_light_max
if is_slime_chunk(pos) then
maxlight = minetest.LIGHT_MAX + 1
end
return artificial_light <= maxlight
end
-- Slime -- Slime
local slime_big = { local slime_big = {
description = S("Slime"), description = S("Slime"),
@ -171,7 +183,7 @@ local slime_big = {
hp_max = 16, hp_max = 16,
xp_min = 4, xp_min = 4,
xp_max = 4, xp_max = 4,
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02}, collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02, rotate = true},
visual_size = {x=12.5, y=12.5}, visual_size = {x=12.5, y=12.5},
textures = {{"mobs_mc_slime.png", "mobs_mc_slime.png"}}, textures = {{"mobs_mc_slime.png", "mobs_mc_slime.png"}},
visual = "mesh", visual = "mesh",
@ -185,7 +197,7 @@ local slime_big = {
distance = 16, distance = 16,
}, },
damage = 4, damage = 4,
reach = 3, reach = 2.5,
armor = 100, armor = 100,
drops = {}, drops = {},
-- TODO: Fix animations -- TODO: Fix animations
@ -213,6 +225,7 @@ local slime_big = {
spawn_small_alternative = "mobs_mc:slime_small", spawn_small_alternative = "mobs_mc:slime_small",
on_die = spawn_children_on_die("mobs_mc:slime_small", 1.0, 1.5), on_die = spawn_children_on_die("mobs_mc:slime_small", 1.0, 1.5),
use_texture_alpha = true, use_texture_alpha = true,
spawn_check = slime_spawn_check,
} }
mcl_mobs.register_mob("mobs_mc:slime_big", slime_big) mcl_mobs.register_mob("mobs_mc:slime_big", slime_big)
@ -222,10 +235,10 @@ slime_small.hp_min = 4
slime_small.hp_max = 4 slime_small.hp_max = 4
slime_small.xp_min = 2 slime_small.xp_min = 2
slime_small.xp_max = 2 slime_small.xp_max = 2
slime_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51} slime_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51, rotate = true}
slime_small.visual_size = {x=6.25, y=6.25} slime_small.visual_size = {x=6.25, y=6.25}
slime_small.damage = 3 slime_small.damage = 3
slime_small.reach = 2.75 slime_small.reach = 2.25
slime_small.walk_velocity = 1.8 slime_small.walk_velocity = 1.8
slime_small.run_velocity = 1.8 slime_small.run_velocity = 1.8
slime_small.jump_height = 4.3 slime_small.jump_height = 4.3
@ -239,10 +252,10 @@ slime_tiny.hp_min = 1
slime_tiny.hp_max = 1 slime_tiny.hp_max = 1
slime_tiny.xp_min = 1 slime_tiny.xp_min = 1
slime_tiny.xp_max = 1 slime_tiny.xp_max = 1
slime_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505} slime_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505, rotate = true}
slime_tiny.visual_size = {x=3.125, y=3.125} slime_tiny.visual_size = {x=3.125, y=3.125}
slime_tiny.damage = 0 slime_tiny.damage = 1
slime_tiny.reach = 2.5 slime_tiny.reach = 2
slime_tiny.drops = { slime_tiny.drops = {
-- slimeball -- slimeball
{name = "mcl_mobitems:slimeball", {name = "mcl_mobitems:slimeball",
@ -297,7 +310,6 @@ local cave_min = mcl_vars.mg_overworld_min
local cave_max = water_level - 23 local cave_max = water_level - 23
local swampy_biomes = {"Swampland", "MangroveSwamp"} local swampy_biomes = {"Swampland", "MangroveSwamp"}
local swamp_light_max = 7
local swamp_min = water_level local swamp_min = water_level
local swamp_max = water_level + 27 local swamp_max = water_level + 27
@ -391,7 +403,7 @@ local magma_cube_big = {
hp_max = 16, hp_max = 16,
xp_min = 4, xp_min = 4,
xp_max = 4, xp_max = 4,
collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02}, collisionbox = {-1.02, -0.01, -1.02, 1.02, 2.03, 1.02, rotate = true},
visual_size = {x=12.5, y=12.5}, visual_size = {x=12.5, y=12.5},
textures = {{ "mobs_mc_magmacube.png", "mobs_mc_magmacube.png" }}, textures = {{ "mobs_mc_magmacube.png", "mobs_mc_magmacube.png" }},
visual = "mesh", visual = "mesh",
@ -406,7 +418,7 @@ local magma_cube_big = {
walk_velocity = 2.5, walk_velocity = 2.5,
run_velocity = 2.5, run_velocity = 2.5,
damage = 6, damage = 6,
reach = 3, reach = 2.35,
armor = 53, armor = 53,
drops = { drops = {
{name = "mcl_mobitems:magma_cream", {name = "mcl_mobitems:magma_cream",
@ -451,10 +463,10 @@ magma_cube_small.hp_min = 4
magma_cube_small.hp_max = 4 magma_cube_small.hp_max = 4
magma_cube_small.xp_min = 2 magma_cube_small.xp_min = 2
magma_cube_small.xp_max = 2 magma_cube_small.xp_max = 2
magma_cube_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51} magma_cube_small.collisionbox = {-0.51, -0.01, -0.51, 0.51, 1.00, 0.51, rotate = true}
magma_cube_small.visual_size = {x=6.25, y=6.25} magma_cube_small.visual_size = {x=6.25, y=6.25}
magma_cube_small.damage = 3 magma_cube_small.damage = 3
magma_cube_small.reach = 2.75 magma_cube_small.reach = 2.1
magma_cube_small.walk_velocity = .8 magma_cube_small.walk_velocity = .8
magma_cube_small.run_velocity = 2.0 magma_cube_small.run_velocity = 2.0
magma_cube_small.jump_height = 6 magma_cube_small.jump_height = 6
@ -473,13 +485,13 @@ magma_cube_tiny.hp_min = 1
magma_cube_tiny.hp_max = 1 magma_cube_tiny.hp_max = 1
magma_cube_tiny.xp_min = 1 magma_cube_tiny.xp_min = 1
magma_cube_tiny.xp_max = 1 magma_cube_tiny.xp_max = 1
magma_cube_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505} magma_cube_tiny.collisionbox = {-0.2505, -0.01, -0.2505, 0.2505, 0.50, 0.2505, rotate = true}
magma_cube_tiny.visual_size = {x=3.125, y=3.125} magma_cube_tiny.visual_size = {x=3.125, y=3.125}
magma_cube_tiny.walk_velocity = 1.02 magma_cube_tiny.walk_velocity = 1.02
magma_cube_tiny.run_velocity = 1.02 magma_cube_tiny.run_velocity = 1.02
magma_cube_tiny.jump_height = 4 magma_cube_tiny.jump_height = 4
magma_cube_tiny.damage = 3 magma_cube_tiny.damage = 3
magma_cube_tiny.reach = 2.5 magma_cube_tiny.reach = 2
magma_cube_tiny.armor = 50 magma_cube_tiny.armor = 50
magma_cube_tiny.drops = {} magma_cube_tiny.drops = {}
magma_cube_tiny.spawn_small_alternative = nil magma_cube_tiny.spawn_small_alternative = nil

Binary file not shown.

Binary file not shown.

View File

@ -114,9 +114,7 @@ mcl_mobs.register_mob("mobs_mc:spider", spider)
local cave_spider = table.copy(spider) local cave_spider = table.copy(spider)
cave_spider.description = S("Cave Spider") cave_spider.description = S("Cave Spider")
cave_spider.textures = { {"mobs_mc_cave_spider.png^(mobs_mc_spider_eyes.png^[makealpha:0,0,0)"} } cave_spider.textures = { {"mobs_mc_cave_spider.png^(mobs_mc_spider_eyes.png^[makealpha:0,0,0)"} }
-- TODO: Poison damage cave_spider.damage = 2
-- TODO: Revert damage to 2
cave_spider.damage = 3 -- damage increased to undo non-existing poison
cave_spider.hp_min = 1 cave_spider.hp_min = 1
cave_spider.hp_max = 12 cave_spider.hp_max = 12
cave_spider.collisionbox = {-0.35, -0.01, -0.35, 0.35, 0.46, 0.35} cave_spider.collisionbox = {-0.35, -0.01, -0.35, 0.35, 0.46, 0.35}
@ -138,6 +136,11 @@ cave_spider.walk_velocity = 1.3
cave_spider.run_velocity = 3.2 cave_spider.run_velocity = 3.2
cave_spider.sounds = table.copy(spider.sounds) cave_spider.sounds = table.copy(spider.sounds)
cave_spider.sounds.base_pitch = 1.25 cave_spider.sounds.base_pitch = 1.25
cave_spider.dealt_effect = {
name = "poison",
factor = 2.5,
dur = 7,
}
mcl_mobs.register_mob("mobs_mc:cave_spider", cave_spider) mcl_mobs.register_mob("mobs_mc:cave_spider", cave_spider)

View File

@ -37,6 +37,7 @@ mcl_mobs.register_mob("mobs_mc:vex", {
walk_velocity = 3.2, walk_velocity = 3.2,
run_velocity = 5.9, run_velocity = 5.9,
attack_type = "dogfight", attack_type = "dogfight",
attack_frequency = 2,
sounds = { sounds = {
-- TODO: random -- TODO: random
death = "mobs_mc_vex_death", death = "mobs_mc_vex_death",
@ -63,10 +64,13 @@ mcl_mobs.register_mob("mobs_mc:vex", {
self.object:set_properties({textures=self.base_texture}) self.object:set_properties({textures=self.base_texture})
end end
else else
if self.base_texture[2] == "mobs_mc_vex_charging.png" then
self.base_texture[2] = "mobs_mc_vex.png"
end
if self.base_texture[1] ~= "default_tool_steelsword.png" then if self.base_texture[1] ~= "default_tool_steelsword.png" then
self.base_texture[1] = "default_tool_steelsword.png" self.base_texture[1] = "default_tool_steelsword.png"
self.object:set_properties({textures=self.base_texture})
end end
self.object:set_properties({textures=self.base_texture})
end end
-- Take constant damage if the vex' life clock ran out -- Take constant damage if the vex' life clock ran out

View File

@ -1941,6 +1941,7 @@ local trade_inventory = {
if not wanted2:is_empty() then if not wanted2:is_empty() then
inv:remove_item("input", inv:get_stack("wanted", 2)) inv:remove_item("input", inv:get_stack("wanted", 2))
end end
local name = player:get_player_name()
local trader = player_trading_with[name] local trader = player_trading_with[name]
minetest.sound_play("mobs_mc_villager_accept", {to_player = player:get_player_name(),object=trader.object}, true) minetest.sound_play("mobs_mc_villager_accept", {to_player = player:get_player_name(),object=trader.object}, true)
end end

View File

@ -42,6 +42,7 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
run_velocity = 1.4, run_velocity = 1.4,
group_attack = true, group_attack = true,
attack_type = "dogfight", attack_type = "dogfight",
attack_frequency = 15,
-- Summon vexes -- Summon vexes
custom_attack = function(self, to_attack) custom_attack = function(self, to_attack)
if not spawned_vexes[self] then spawned_vexes[self] = {} end if not spawned_vexes[self] then spawned_vexes[self] = {} end
@ -64,7 +65,6 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
table.insert(spawned_vexes[self],ent) table.insert(spawned_vexes[self],ent)
end end
end, end,
shoot_interval = 15,
passive = false, passive = false,
drops = { drops = {
{name = "mcl_core:emerald", {name = "mcl_core:emerald",
@ -86,6 +86,11 @@ mcl_mobs.register_mob("mobs_mc:evoker", {
}, },
view_range = 16, view_range = 16,
fear_height = 4, fear_height = 4,
on_spawn = function(self)
self.timer = 15
return true
end,
}) })
-- spawn eggs -- spawn eggs

View File

@ -70,6 +70,11 @@ mcl_mobs.register_mob("mobs_mc:witch", {
}, },
view_range = 16, view_range = 16,
fear_height = 4, fear_height = 4,
deal_damage = function(self, damage, mcl_reason)
local factor = 1
if mcl_reason.type == "magic" then factor = 0.15 end
self.health = self.health - factor*damage
end,
}) })
-- potion projectile (EXPERIMENTAL) -- potion projectile (EXPERIMENTAL)

View File

@ -1,14 +1,72 @@
--MCmobs v0.4 --MCmobs v0.4
--maikerumine --maikerumine
--updated by Herowl
--made for MC like Survival game --made for MC like Survival game
--License for code WTFPL and otherwise stated in readmes --License for code WTFPL and otherwise stated in readmes
local S = minetest.get_translator("mobs_mc") local S = minetest.get_translator("mobs_mc")
local mobs_griefing = minetest.settings:get_bool("mobs_griefing", true)
local follow_spawner = minetest.settings:get_bool("wither_follow_spawner", false)
local w_strafes = minetest.settings:get_bool("wither_strafes", true)
local anti_troll = minetest.settings:get_bool("wither_anti_troll_measures", false)
local WITHER_INIT_BOOM = 7
local WITHER_MELEE_COOLDOWN = 3
local function atan(x)
if not x or x ~= x then
return 0
else
return math.atan(x)
end
end
--################### --###################
--################### WITHER --################### WITHER
--################### --###################
local function wither_unstuck(self)
local pos = self.object:get_pos()
if mobs_griefing then -- destroy blocks very nearby (basically, colliding with)
local col = self.collisionbox
local pos1 = vector.offset(pos, col[1], col[2], col[3])
local pos2 = vector.offset(pos, col[4], col[5], col[6])
for z = pos1.z, pos2.z do for y = pos1.y, pos2.y do for x = pos1.x, pos2.x do
local npos = vector.new(x,y,z)
local name = minetest.get_node(npos).name
if name ~= "air" then
local ndef = minetest.registered_nodes[name]
if ndef and ndef._mcl_hardness and ndef._mcl_hardness >= 0 then
local drops = minetest.get_node_drops(name, "")
if minetest.dig_node(npos) then
for _, item in ipairs(drops) do
if type(item) ~= "string" then
item = item:get_name() .. item:get_count()
end
minetest.add_item(npos, item)
end
end
end
end
end end end
end
mcl_mobs.mob_class.safe_boom(self, pos, 2)
end
local function get_dim_relative_y(pos)
if (pos.y >= mcl_vars.mg_realm_barrier_overworld_end_max) then
return pos.y
elseif (pos.y <= mcl_vars.mg_nether_max + 200) then
return (pos.y - mcl_vars.mg_nether_min - 20)
else
return (pos.y - mcl_vars.mg_end_min - 50)
end
end
mobs_mc.wither_count_overworld = 0
mobs_mc.wither_count_nether = 0
mobs_mc.wither_count_end = 0
mcl_mobs.register_mob("mobs_mc:wither", { mcl_mobs.register_mob("mobs_mc:wither", {
description = S("Wither"), description = S("Wither"),
type = "monster", type = "monster",
@ -26,11 +84,11 @@ mcl_mobs.register_mob("mobs_mc:wither", {
{"mobs_mc_wither.png"}, {"mobs_mc_wither.png"},
}, },
visual_size = {x=4, y=4}, visual_size = {x=4, y=4},
makes_footstep_sound = true, view_range = 50,
view_range = 16,
fear_height = 4, fear_height = 4,
walk_velocity = 2, walk_velocity = 2,
run_velocity = 4, run_velocity = 4,
strafes = w_strafes,
sounds = { sounds = {
shoot_attack = "mobs_mc_ender_dragon_shoot", shoot_attack = "mobs_mc_ender_dragon_shoot",
attack = "mobs_mc_ender_dragon_attack", attack = "mobs_mc_ender_dragon_attack",
@ -41,9 +99,8 @@ mcl_mobs.register_mob("mobs_mc:wither", {
jump_height = 10, jump_height = 10,
fly = true, fly = true,
makes_footstep_sound = false, makes_footstep_sound = false,
dogshoot_switch = 1, dogshoot_switch = 1, -- unused
dogshoot_count_max = 1, dogshoot_count_max = 1, -- unused
attack_animals = true,
can_despawn = false, can_despawn = false,
drops = { drops = {
{name = "mcl_mobitems:nether_star", {name = "mcl_mobitems:nether_star",
@ -53,13 +110,13 @@ mcl_mobs.register_mob("mobs_mc:wither", {
}, },
lava_damage = 0, lava_damage = 0,
fire_damage = 0, fire_damage = 0,
attack_type = "dogshoot", attack_type = "custom",
explosion_strength = 8, explosion_strength = 8,
dogshoot_stop = true, dogshoot_stop = true,
arrow = "mobs_mc:wither_skull", arrow = "mobs_mc:wither_skull",
reach = 5, reach = 5,
shoot_interval = 0.5, shoot_interval = 1,
shoot_offset = -1, shoot_offset = -0.5,
animation = { animation = {
walk_speed = 12, run_speed = 12, stand_speed = 12, walk_speed = 12, run_speed = 12, stand_speed = 12,
stand_start = 0, stand_end = 20, stand_start = 0, stand_end = 20,
@ -67,57 +124,377 @@ mcl_mobs.register_mob("mobs_mc:wither", {
run_start = 0, run_end = 20, run_start = 0, run_end = 20,
}, },
harmed_by_heal = true, harmed_by_heal = true,
do_custom = function(self) is_boss = true,
extra_hostile = true,
attack_exception = function(p)
local ent = p:get_luaentity()
if p:is_player() then return false end
if not ent or not ent.is_mob or ent.harmed_by_heal or string.find(ent.name, "ghast") then return true
else return false end
end,
do_custom = function(self, dtime)
if self._spawning then
-- "loading" bar while spawning
if not self._spw_max then self._spw_max = self._spawning end
self._spawning = self._spawning - dtime
local bardef = {
color = "dark_purple",
text = "Wither spawning",
percentage = math.floor((self._spw_max - self._spawning) / self._spw_max * 100),
}
local pos = self.object:get_pos()
for _, player in pairs(minetest.get_connected_players()) do
local d = vector.distance(pos, player:get_pos())
if d <= 80 then
mcl_bossbars.add_bar(player, bardef, true, d)
end
end
-- turn around and flash while spawning
self.object:set_yaw(self._spawning*10)
local factor = math.floor((math.sin(self._spawning*10)+1.5) * 85)
local str = minetest.colorspec_to_colorstring({r=factor, g=factor, b=factor})
self.object:set_texture_mod("^[brighten^[multiply:"..str)
-- when fully spawned, explode
if self._spawning <= 0 then
if mobs_griefing and not minetest.is_protected(pos, "") then
mcl_explosions.explode(pos, WITHER_INIT_BOOM, { drop_chance = 1.0 }, self.object)
else
mcl_mobs.mob_class.safe_boom(self, pos, WITHER_INIT_BOOM)
end
self.object:set_texture_mod("")
self._spawning = nil
self._spw_max = nil
else
return false
end
end
-- passive regeneration
self._custom_timer = self._custom_timer + dtime
if self._custom_timer > 1 then
self.health = math.min(self.health + 1, self.hp_max)
self._custom_timer = self._custom_timer - 1
end
-- anti-troll measures
if anti_troll then
if self._spawner then
local spawner = minetest.get_player_by_name(self._spawner)
if follow_spawner and spawner then
self._death_timer = 0
local pos = self.object:get_pos()
local spw = spawner:get_pos()
local dist = vector.distance(pos, spw)
if dist > 60 then -- teleport to the player who spawned the wither
local R = 10
pos.x = spw.x + math.random(-R, R)
pos.y = spw.y + math.random(-R, R)
pos.z = spw.z + math.random(-R, R)
self.object:set_pos(pos)
end
else -- despawn automatically after set time
-- HP changes impact timer: taking damage sets it back
self._death_timer = self._death_timer + self.health - self._health_old
if self.health == self._health_old then self._death_timer = self._death_timer + dtime end
if self._death_timer > 100 then
self.object:remove()
return false
end
self._health_old = self.health
end
end
-- count withers per dimension
local dim = mcl_worlds.pos_to_dimension(self.object:get_pos())
if dim == "overworld" then mobs_mc.wither_count_overworld = mobs_mc.wither_count_overworld + 1
elseif dim == "nether" then mobs_mc.wither_count_nether = mobs_mc.wither_count_nether + 1
elseif dim == "end" then mobs_mc.wither_count_end = mobs_mc.wither_count_end + 1 end
end
-- update things dependent on HP
local rand_factor
if self.health < (self.hp_max / 2) then if self.health < (self.hp_max / 2) then
self.base_texture = "mobs_mc_wither_half_health.png" self.base_texture = "mobs_mc_wither_half_health.png"
self.fly = false self.fly = false
self.object:set_properties({textures={self.base_texture}}) self._arrow_resistant = true
self.armor = {undead = 80, fleshy = 80} rand_factor = 3
else
self.base_texture = "mobs_mc_wither.png"
self.fly = true
self._arrow_resistant = false
rand_factor = 10
end end
if not self.attack then
local y = get_dim_relative_y(self.object:get_pos())
if y > 0 then
self.fly = false
else
self.fly = true
local vel = self.object:get_velocity()
self.object:set_velocity(vector.new(vel.x, self.walk_velocity, vel.z))
end
end
self.object:set_properties({textures={self.base_texture}})
mcl_bossbars.update_boss(self.object, "Wither", "dark_purple") mcl_bossbars.update_boss(self.object, "Wither", "dark_purple")
if math.random(1, rand_factor) < 2 then
self.arrow = "mobs_mc:wither_skull_strong"
else
self.arrow = "mobs_mc:wither_skull"
end
end, end,
attack_state = function(self, dtime)
local s = self.object:get_pos()
local p = self.attack:get_pos() or s
p.y = p.y - .5
s.y = s.y + .5
local dist = vector.distance(p, s)
local vec = {
x = p.x - s.x,
y = p.y - s.y,
z = p.z - s.z
}
local yaw = (atan(vec.z / vec.x) +math.pi/ 2) - self.rotate
if p.x > s.x then yaw = yaw +math.pi end
yaw = self:set_yaw( yaw, 0, dtime)
local stay_away_from_player = vector.zero()
--strafe back and fourth
--stay away from player so as to shoot them
if dist < self.avoid_distance and self.shooter_avoid_enemy then
self:set_animation( "shoot")
stay_away_from_player=vector.multiply(vector.direction(p, s), 0.33)
end
if self.fly then
local vel = self.object:get_velocity()
local diff = s.y - p.y
local FLY_FACTOR = self.walk_velocity
if diff < 10 then
self.object:set_velocity({x=vel.x, y= FLY_FACTOR, z=vel.z})
elseif diff > 15 then
self.object:set_velocity({x=vel.x, y=-FLY_FACTOR, z=vel.z})
end
for i=1, 15 do
if minetest.get_node(vector.offset(s, 0, -i, 0)).name ~= "air" then
self.object:set_velocity({x=vel.x, y= FLY_FACTOR, z=vel.z})
break
elseif minetest.get_node(vector.offset(s, 0, i, 0)).name ~= "air" then
self.object:set_velocity({x=vel.x, y=-FLY_FACTOR/i, z=vel.z})
break
end
end
end
if self.strafes then
if not self.strafe_direction then
self.strafe_direction = 1.57
end
if math.random(40) == 1 then
self.strafe_direction = self.strafe_direction*-1
end
local dir = vector.rotate_around_axis(vector.direction(s, p), vector.new(0,1,0), self.strafe_direction)
local dir2 = vector.multiply(dir, 0.3 * self.walk_velocity)
if dir2 and stay_away_from_player then
self.acc = vector.add(dir2, stay_away_from_player)
end
else
self:set_velocity(0)
end
if dist > 30 then self.acc = vector.add(self.acc, vector.direction(s, p)*0.01) end
local side_cor = vector.new(0.7*math.cos(yaw), 0, 0.7*math.sin(yaw))
local m = self.object:get_pos() -- position of the middle head
local sr = self.object:get_pos() + side_cor -- position of side right head
local sl = self.object:get_pos() - side_cor -- position of side left head
-- height corrections
m.y = m.y + self.collisionbox[5]
sr.y = sr.y + self.collisionbox[5] - 0.3
sl.y = sl.y + self.collisionbox[5] - 0.3
local rand_pos = math.random(1,3)
if rand_pos == 1 then m = sr
elseif rand_pos == 2 then m = sl end
-- melee attack
if not self._melee_timer then
self._melee_timer = 0
end
if self._melee_timer < WITHER_MELEE_COOLDOWN then
self._melee_timer = self._melee_timer + dtime
else
self._melee_timer = 0
local pos = table.copy(s)
pos.y = pos.y + 2
local objs = minetest.get_objects_inside_radius(pos, self.reach)
local obj_pos, dist
local hit_some = false
for n = 1, #objs do
objs[n]:punch(objs[n], 1.0, {
full_punch_interval = 1.0,
damage_groups = {fleshy = 4},
}, pos)
local ent = objs[n]:get_luaentity()
if objs[n]:is_player() or (ent and ent ~= self and (not ent._shooter or ent._shooter ~= self)) then
mcl_util.deal_damage(objs[n], 8, {type = "magic"})
hit_some = true
end
mcl_mobs.effect_functions["withering"](objs[n], 0.5, 10)
end
if hit_some then
mcl_mobs.effect(pos, 32, "mcl_particles_soul_fire_flame.png", 5, 10, self.reach, 1, 0)
end
end
if dist < self.reach then
self.shoot_interval = 3
else
self.shoot_interval = 1
end
if self.shoot_interval
and self.timer > self.shoot_interval
and not minetest.raycast(vector.add(m, vector.new(0,self.shoot_offset,0)), vector.add(self.attack:get_pos(), vector.new(0,1.5,0)), false, false):next()
and math.random(1, 100) <= 60 then
self.timer = 0
self:set_animation( "shoot")
-- play shoot attack sound
self:mob_sound("shoot_attack")
-- Shoot arrow
if minetest.registered_entities[self.arrow] then
local arrow, ent
local v = 1
if not self.shoot_arrow then
self.firing = true
minetest.after(1, function()
self.firing = false
end)
arrow = minetest.add_entity(m, self.arrow)
ent = arrow:get_luaentity()
if ent.velocity then
v = ent.velocity
end
ent.switch = 1
ent.owner_id = tostring(self.object) -- add unique owner id to arrow
-- important for mcl_shields
ent._shooter = self.object
ent._saved_shooter_pos = self.object:get_pos()
end
local amount = (vec.x * vec.x + vec.y * vec.y + vec.z * vec.z) ^ 0.5
-- offset makes shoot aim accurate
vec.y = vec.y + self.shoot_offset
vec.x = vec.x * (v / amount)
vec.y = vec.y * (v / amount)
vec.z = vec.z * (v / amount)
if self.shoot_arrow then
vec = vector.normalize(vec)
self:shoot_arrow(m, vec)
else
arrow:set_velocity(vec)
end
end
end
end,
do_punch = function(self, hitter, tflp, tool_capabilities, dir)
if self._spawning or hitter == self.object then return false end
local ent = hitter:get_luaentity()
if ent and self._arrow_resistant and (string.find(ent.name, "arrow") or string.find(ent.name, "rocket")) then return false end
wither_unstuck(self)
return true
end,
deal_damage = function(self, damage, mcl_reason)
if self._spawning then return end
if self._arrow_resistant and mcl_reason.type == "magic" then return end
wither_unstuck(self)
self.health = self.health - damage
end,
on_spawn = function(self) on_spawn = function(self)
minetest.sound_play("mobs_mc_wither_spawn", {object=self.object, gain=1.0, max_hear_distance=64}) minetest.sound_play("mobs_mc_wither_spawn", {object=self.object, gain=1.0, max_hear_distance=64})
self._custom_timer = 0.0
self._death_timer = 0.0
self._health_old = self.hp_max
self._spawning = 10
return true
end, end,
}) })
local mobs_griefing = minetest.settings:get_bool("mobs_griefing") ~= false
local wither_rose_soil = { "group:grass_block", "mcl_core:dirt", "mcl_core:coarse_dirt", "mcl_nether:netherrack", "group:soul_block", "mcl_mud:mud", "mcl_moss:moss" } local wither_rose_soil = { "group:grass_block", "mcl_core:dirt", "mcl_core:coarse_dirt", "mcl_nether:netherrack", "group:soul_block", "mcl_mud:mud", "mcl_moss:moss" }
local function spawn_wither_rose(obj)
local n = minetest.find_node_near(obj:get_pos(),2,wither_rose_soil)
if n then
local p = vector.offset(n,0,1,0)
if minetest.get_node(p).name == "air" then
if not ( mobs_griefing and minetest.place_node(p,{name="mcl_flowers:wither_rose"}) ) then
minetest.add_item(p,"mcl_flowers:wither_rose")
end
end
end
end
mcl_mobs.register_arrow("mobs_mc:wither_skull", { mcl_mobs.register_arrow("mobs_mc:wither_skull", {
visual = "sprite", visual = "cube",
visual_size = {x = 0.75, y = 0.75}, visual_size = {x = 0.3, y = 0.3},
-- TODO: 3D projectile, replace tetxture textures = {
textures = {"mobs_mc_TEMP_wither_projectile.png"}, "mobs_mc_wither_projectile.png^[verticalframe:6:0", -- top
velocity = 6, "mobs_mc_wither_projectile.png^[verticalframe:6:1", -- bottom
"mobs_mc_wither_projectile.png^[verticalframe:6:2", -- left
"mobs_mc_wither_projectile.png^[verticalframe:6:3", -- right
"mobs_mc_wither_projectile.png^[verticalframe:6:4", -- back
"mobs_mc_wither_projectile.png^[verticalframe:6:5", -- front
},
velocity = 7,
rotate = 90,
_lifetime = 350,
on_punch = function(self) end,
-- direct hit -- direct hit
hit_player = function(self, player) hit_player = function(self, player)
local pos = vector.new(self.object:get_pos())
mcl_mobs.effect_functions["withering"](player, 0.5, 10)
player:punch(self.object, 1.0, { player:punch(self.object, 1.0, {
full_punch_interval = 0.5, full_punch_interval = 0.5,
damage_groups = {fleshy = 8}, damage_groups = {fleshy = 8},
}, nil) }, nil)
mcl_mobs.mob_class.boom(self,self.object:get_pos(), 1) mcl_mobs.mob_class.boom(self, pos, 1)
if player:get_hp() <= 0 then
local shooter = self._shooter:get_luaentity()
if shooter then shooter.health = shooter.health + 5 end
spawn_wither_rose(player)
end
end, end,
hit_mob = function(self, mob) hit_mob = function(self, mob)
local pos = vector.new(self.object:get_pos())
mcl_mobs.effect_functions["withering"](mob, 0.5, 10)
mob:punch(self.object, 1.0, { mob:punch(self.object, 1.0, {
full_punch_interval = 0.5, full_punch_interval = 0.5,
damage_groups = {fleshy = 8}, damage_groups = {fleshy = 8},
}, nil) }, nil)
mcl_mobs.mob_class.boom(self,self.object:get_pos(), 1) mcl_mobs.mob_class.boom(self, pos, 1)
local l = mob:get_luaentity() local l = mob:get_luaentity()
if l and l.health - 8 <= 0 then if l and l.health - 8 <= 0 then
local n = minetest.find_node_near(mob:get_pos(),2,wither_rose_soil) local shooter = self._shooter:get_luaentity()
if n then if shooter then shooter.health = shooter.health + 5 end
local p = vector.offset(n,0,1,0) spawn_wither_rose(mob)
if minetest.get_node(p).name == "air" then
if not ( mobs_griefing and minetest.place_node(p,{name="mcl_flowers:wither_rose"}) ) then
minetest.add_item(p,"mcl_flowers:wither_rose")
end
end
end
end end
end, end,
@ -126,10 +503,75 @@ mcl_mobs.register_arrow("mobs_mc:wither_skull", {
mcl_mobs.mob_class.boom(self,pos, 1) mcl_mobs.mob_class.boom(self,pos, 1)
end end
}) })
-- TODO: Add blue wither skull mcl_mobs.register_arrow("mobs_mc:wither_skull_strong", {
visual = "cube",
visual_size = {x = 0.35, y = 0.35},
textures = {
"mobs_mc_wither_projectile_strong.png^[verticalframe:6:0", -- top
"mobs_mc_wither_projectile_strong.png^[verticalframe:6:1", -- bottom
"mobs_mc_wither_projectile_strong.png^[verticalframe:6:2", -- left
"mobs_mc_wither_projectile_strong.png^[verticalframe:6:3", -- right
"mobs_mc_wither_projectile_strong.png^[verticalframe:6:4", -- back
"mobs_mc_wither_projectile_strong.png^[verticalframe:6:5", -- front
},
velocity = 4,
rotate = 90,
_lifetime = 500,
on_punch = function(self) end,
-- direct hit
hit_player = function(self, player)
local pos = vector.new(self.object:get_pos())
mcl_mobs.effect_functions["withering"](player, 0.5, 10)
player:punch(self.object, 1.0, {
full_punch_interval = 0.5,
damage_groups = {fleshy = 12},
}, nil)
if mobs_griefing and not minetest.is_protected(pos, "") then
mcl_explosions.explode(pos, 1, { drop_chance = 1.0, max_blast_resistance = 0, }, self.object)
else
mcl_mobs.mob_class.safe_boom(self, pos, 1) --need to call it this way bc self is the "arrow" object here
end
if player:get_hp() <= 0 then
local shooter = self._shooter:get_luaentity()
if shooter then shooter.health = shooter.health + 5 end
spawn_wither_rose(player)
end
end,
hit_mob = function(self, mob)
local pos = vector.new(self.object:get_pos())
mcl_mobs.effect_functions["withering"](mob, 0.5, 10)
mob:punch(self.object, 1.0, {
full_punch_interval = 0.5,
damage_groups = {fleshy = 12},
}, nil)
if mobs_griefing and not minetest.is_protected(pos, "") then
mcl_explosions.explode(pos, 1, { drop_chance = 1.0, max_blast_resistance = 0, }, self.object)
else
mcl_mobs.mob_class.safe_boom(self, pos, 1) --need to call it this way bc self is the "arrow" object here
end
local l = mob:get_luaentity()
if l and l.health - 8 <= 0 then
local shooter = self._shooter:get_luaentity()
if shooter then shooter.health = shooter.health + 5 end
spawn_wither_rose(mob)
end
end,
-- node hit, explode
hit_node = function(self, pos, node)
if mobs_griefing and not minetest.is_protected(pos, "") then
mcl_explosions.explode(pos, 1, { drop_chance = 1.0, max_blast_resistance = 0, }, self.object)
else
mcl_mobs.mob_class.safe_boom(self, pos, 1) --need to call it this way bc self is the "arrow" object here
end
end
})
--Spawn egg --Spawn egg
mcl_mobs.register_egg("mobs_mc:wither", S("Wither"), "#4f4f4f", "#4f4f4f", 0, true) mcl_mobs.register_egg("mobs_mc:wither", S("Wither"), "#4f4f4f", "#4f4f4f", 0, true)
mcl_wip.register_wip_item("mobs_mc:wither") mcl_wip.register_wip_item("mobs_mc:wither")
mcl_mobs:non_spawn_specific("mobs_mc:wither","overworld",0,minetest.LIGHT_MAX+1) mcl_mobs:non_spawn_specific("mobs_mc:wither","overworld",0,minetest.LIGHT_MAX+1)

View File

@ -29,7 +29,7 @@ local wolf = {
head_swivel = "head.control", head_swivel = "head.control",
bone_eye_height = 3.5, bone_eye_height = 3.5,
head_eye_height = 1.1, head_eye_height = 1.1,
horrizonatal_head_height=0, horizontal_head_height=0,
curiosity = 3, curiosity = 3,
head_yaw="z", head_yaw="z",
sounds = { sounds = {

View File

@ -1,4 +1,3 @@
# textdomain: lightning # textdomain: lightning
@1 was struck by lightning.=@ 1 fue alcanzado por un rayo. Let lightning strike at the specified position or player.No parameter will strike yourself.=Deje que un rayo golpee en la posición especificada o jugador.Ningún parámetro le golpeará a usted mismo.
Let lightning strike at the specified position or yourself=Deje que un rayo golpee en la posición especificada o sobre usted mismo.
No position specified and unknown player=Ninguna posición especificada y jugador desconocido No position specified and unknown player=Ninguna posición especificada y jugador desconocido

View File

@ -0,0 +1,3 @@
# textdomain: lightning
Let lightning strike at the specified position or player. No parameter will strike yourself.=Deixa o relâmpago acertar a posição ou jogador especificado. Nenhum parâmetro irá acertar você mesmo.
No position specified and unknown player=Nenhuma posição especificada e jogador desconhecido

View File

@ -0,0 +1,2 @@
# textdomain: mcl_raids
Ominous Banner=Bannière de mauvais augure

View File

@ -0,0 +1,2 @@
# textdomain: mcl_raids
Ominous Banner=Estandarte Ameaçador

View File

@ -0,0 +1,3 @@
# textdomain: mcl_void_damage
The void is off-limits to you!=O vazio está fora dos limites para você!
@1 fell into the endless void.=@1 caiu em um vazio sem fim.

View File

@ -0,0 +1,8 @@
# textdomain: mcl_weather
Gives ability to control weather=Dá a habilidade de controlar o clima
Changes the weather to the specified parameter.=Muda o clima para o parâmetro especificado.
Error: No weather specified.=Erro: Nenhum clima especificado.
Error: Invalid parameters.=Erro: Parâmetros inválidos.
Error: Duration can't be less than 1 second.=Erro: Duração não pode ser menor que 1 segundo.
Error: Invalid weather specified. Use “clear”, “rain”, “snow” or “thunder”.=Erro: Clima especificado é inválido. Use "clear", "rain", "snow" ou "thunder".
Toggles between clear weather and weather with downfall (randomly rain, thunderstorm or snow)=Alterna entre clima limpo e clima com quedas (aleatoriamente chuva, tempestade ou neve)

View File

@ -120,12 +120,13 @@ mcl_weather.skycolor = {
override_day_night_ratio = function(player, ratio) override_day_night_ratio = function(player, ratio)
local meta = player:get_meta() local meta = player:get_meta()
local has_night_vision = meta:get_int("night_vision") == 1 local has_night_vision = meta:get_int("night_vision") == 1
local is_visited_shepherd = meta:get_int("mcl_shepherd:special") == 1
local arg local arg
-- Apply night vision only for dark sky -- Apply night vision only for dark sky
local is_dark = minetest.get_timeofday() > 0.8 or minetest.get_timeofday() < 0.2 or mcl_weather.state ~= "none" local is_dark = minetest.get_timeofday() > 0.8 or minetest.get_timeofday() < 0.2 or mcl_weather.state ~= "none"
local pos = player:get_pos() local pos = player:get_pos()
local dim = mcl_worlds.pos_to_dimension(pos) local dim = mcl_worlds.pos_to_dimension(pos)
if has_night_vision and is_dark and dim ~= "nether" and dim ~= "end" then if (has_night_vision or is_visited_shepherd) and is_dark and dim ~= "nether" and dim ~= "end" then
if ratio == nil then if ratio == nil then
arg = NIGHT_VISION_RATIO arg = NIGHT_VISION_RATIO
else else

View File

@ -53,8 +53,8 @@ Range: 4=Range: 4
Rating @1=Classificação @1 Rating @1=Classificação @1
# @1 is minimal rating, @2 is maximum rating # @1 is minimal rating, @2 is maximum rating
Rating @1-@2=Classificação @1-@2 Rating @1-@2=Classificação @1-@2
The fall damage on this block is increased by @1%.=O dano por queda nesse bloco é aumentado em @ 1%. The fall damage on this block is increased by @1%.=O dano por queda nesse bloco é aumentado em @1%.
The fall damage on this block is reduced by @1%.=O dano por queda nesse bloco é reduzido em @ 1%. The fall damage on this block is reduced by @1%.=O dano por queda nesse bloco é reduzido em @1%.
This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.=Esse bloco permite que a luz se propague com uma pequena perda de brilho, e a luz solar pode até passar sem perdas. This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.=Esse bloco permite que a luz se propague com uma pequena perda de brilho, e a luz solar pode até passar sem perdas.
This block allows light to propagate with a small loss of brightness.=Esse bloco permite que a luz se propague com uma pequena perda de brilho. This block allows light to propagate with a small loss of brightness.=Esse bloco permite que a luz se propague com uma pequena perda de brilho.
This block allows sunlight to propagate without loss in brightness.=Esse bloco permite que a luz solar se propague sem perda de brilho. This block allows sunlight to propagate without loss in brightness.=Esse bloco permite que a luz solar se propague sem perda de brilho.
@ -78,7 +78,7 @@ This block connects to this block: @1.=Esse bloco se conecta a esse bloco: @1.
This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 ponto de vida a cada 2 segundos. This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 ponto de vida a cada 2 segundos.
This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 pontos de vida a cada 2 segundos. This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 pontos de vida a cada 2 segundos.
This block is a light source with a light level of @1.=Esse bloco é uma fonte de luz com um nível de luz de @1. This block is a light source with a light level of @1.=Esse bloco é uma fonte de luz com um nível de luz de @1.
This block glows faintly with a light level of @1.=Esse bloco tem um brilho fraco com um nível de luz de @ 1. This block glows faintly with a light level of @1.=Esse bloco tem um brilho fraco com um nível de luz de @1.
This block is a building block for creating various buildings.=Esse bloco é um bloco de construção para criar vários edifícios. This block is a building block for creating various buildings.=Esse bloco é um bloco de construção para criar vários edifícios.
This block is a liquid with these properties:=Esse bloco é um líquido com as seguintes propriedades: This block is a liquid with these properties:=Esse bloco é um líquido com as seguintes propriedades:
This block is affected by gravity and can fall.=Esse bloco é afetado pela gravidade e pode cair. This block is affected by gravity and can fall.=Esse bloco é afetado pela gravidade e pode cair.
@ -123,7 +123,7 @@ any level=qualquer nível
level 0=nível 0 level 0=nível 0
level 0-@1=nivel 0-@1 level 0-@1=nivel 0-@1
unknown=desconhecido unknown=desconhecido
Unknown item (@1)=Item desconhecido Unknown item (@1)=Item desconhecido (@1)
• @1: @2= • @1: @2=
• @1: @2 HP= • @1: @2 HP=
• @1: @2, @3= • @1: @2, @3=

View File

@ -15,7 +15,7 @@
and = e and = e
1 second=1 segundo 1 second=1 segundo
A transparent block, basically empty space. It is usually left behind after digging something.=Um bloco transparente, basicamente um vazio. Isso geralmente fica no lugar de um bloco removido. A transparent block, basically empty space. It is usually left behind after digging something.=Um bloco transparente, basicamente um vazio. Isso geralmente fica no lugar de um bloco removido.
Air=Ár Air=Ar
Blocks=Blocos Blocks=Blocos
Building another block at this block will place it inside and replace it.=Construir outro bloco nesse bloco vai subistitui-lo. Building another block at this block will place it inside and replace it.=Construir outro bloco nesse bloco vai subistitui-lo.
Building this block is completely silent.=Construir esse bloco é completamente silencioso. Building this block is completely silent.=Construir esse bloco é completamente silencioso.
@ -129,12 +129,12 @@ Unknown item (@1)=Item desconhecido (@1)
• @1: @2, @3= • @1: @2, @3=
• Flowing range: @1= • Flowing range: @1=
• No flowing= • No flowing=
• Not renewable= • Not renewable=• Não renovável
• Renewable= • Renewable=• Renovável
• Viscosity: @1= • Viscosity: @1=• Viscosidade: @1
Itemstring: "@1"= Itemstring: "@1"=
Durability: @1 uses= Durability: @1 uses=Durabilidade: @1 usos
Durability: @1= Durability: @1=Durabilidade: @1
Mining durability:= Mining durability:=
• @1, level @2: @3 uses= • @1, level @2: @3 uses=
• @1, level @2: Unlimited= • @1, level @2: Unlimited=

View File

@ -774,7 +774,7 @@ local function search(data)
for i = 1, #data.items_raw do for i = 1, #data.items_raw do
local item = data.items_raw[i] local item = data.items_raw[i]
local def = reg_items[item] local def = reg_items[item]
local desc = lower(def.description) local desc = string.lower(M.get_translated_string(data.lang_code, def.description))
local search_in = item .. desc local search_in = item .. desc
local to_add local to_add
@ -838,6 +838,7 @@ local function init_data(name)
iX = sfinv_only and 8 or DEFAULT_SIZE, iX = sfinv_only and 8 or DEFAULT_SIZE,
items = init_items, items = init_items,
items_raw = init_items, items_raw = init_items,
lang_code = M.get_player_information(name).lang_code or 'en',
} }
end end

View File

@ -0,0 +1,37 @@
# textdomain: craftguide
Any shulker box=Qualquer caixa shulker
Any wool=Qualquer lã
Any wood planks=Quaisquer tábuas de madeira
Any wood=Qualquer madeira
Any sand=Qualquer areia
Any normal sandstone=Qualquer arenito normal
Any red sandstone=Qualquer arenito vermelho
Any carpet=Qualquer carpete
Any dye=Qualquer tintura
Any water bucket=Qualquer balde de água
Any flower=Qualquer flor
Any mushroom=Qualquer cogumelo
Any wooden slab=Qualquer laje de madeira
Any wooden stairs=Quaisquer escadas de madeira
Any coal=Qualquer carvão
Any kind of quartz block=Qualquer tipo de bloco de quartzo
Any kind of purpur block=Qualquer tipo de bloco de purpúra
Any stone bricks=Quaisquer tijolos de pedra
Any stick=Qualquer graveto
Any item belonging to the @1 group=Qualquer item pertencente ao grupo @1
Any item belonging to the groups: @1=Qualquer item pertencente aos grupos: @1
Search=Pesquisar
Reset=Resetar
Previous page=Página anterior
Next page=Página posterior
Usage @1 of @2=Uso @1 de @2
Recipe @1 of @2=Receita @1 de @2
Burning time: @1=Tempo de queima: @1
Cooking time: @1=Tempo de cozimento: @1
Recipe is too big to be displayed (@1×@2)=Receita é muito grande para ser mostrada (@1x@2)
Shapeless=Sem forma
Cooking=Cozimento
Increase window size=Aumentar tamanho da janela
Decrease window size=Diminuir tamanho da janela
No item to show=Nenhum item para mostrar
Collect items to reveal more recipes=Colete itens para revelar mais receitas

View File

@ -2,6 +2,7 @@
Water can flow into this block and cause it to drop as an item.= Water can flow into this block and cause it to drop as an item.=
This block can be turned into dirt with a hoe.= This block can be turned into dirt with a hoe.=
This block can be turned into farmland with a hoe.= This block can be turned into farmland with a hoe.=
This block can be turned into grass path with a shovel.=
This block acts as a soil for all saplings.= This block acts as a soil for all saplings.=
This block acts as a soil for some saplings.= This block acts as a soil for some saplings.=
Sugar canes will grow on this block.= Sugar canes will grow on this block.=

View File

@ -25,7 +25,7 @@ Minetest is a free software game engine for games based on voxel gameplay, inspi
The player is thrown into a huge world made out of cubes or blocks. These cubes usually make the landscape they blocks can be removed and placed almost entirely freely. Using the collected items, new tools and other items can be crafted. Games in Minetest (also called “subgames”) can, however, be much more complex than this.=L'utente è gettat* in un enorme mondo fatto di cubi o blocchi. Questi cubi normalmente compongono il panorama e possono essere tolti o messi quasi completamente liberamente. Usando gli oggetti raccolti, si possono assemblare nuovi strumenti e altri oggetti. I giochi in Minetest (chiamati anche "subgame") possono, comunque, essere molto più complessi. The player is thrown into a huge world made out of cubes or blocks. These cubes usually make the landscape they blocks can be removed and placed almost entirely freely. Using the collected items, new tools and other items can be crafted. Games in Minetest (also called “subgames”) can, however, be much more complex than this.=L'utente è gettat* in un enorme mondo fatto di cubi o blocchi. Questi cubi normalmente compongono il panorama e possono essere tolti o messi quasi completamente liberamente. Usando gli oggetti raccolti, si possono assemblare nuovi strumenti e altri oggetti. I giochi in Minetest (chiamati anche "subgame") possono, comunque, essere molto più complessi.
A core feature of Minetest is the built-in modding capability. Mods modify existing gameplay. They can be as simple as adding a few decorational blocks or be very complex by e.g. introducing completely new gameplay concepts, generating a completely different kind of world, and many other things.=Una caratteristica centrale di Minetest è la capacità integrata di usare moduli. I moduli modificano l'esperienza di gioco esistente. Possono essere tanto semplici da aggiungere qualche blocco decorativo o essere molto complessi, per esempio introducendo concetti di gioco totalmente nuovi, generare un tipo di mondo completamente diverso, e molte altre cose. A core feature of Minetest is the built-in modding capability. Mods modify existing gameplay. They can be as simple as adding a few decorational blocks or be very complex by e.g. introducing completely new gameplay concepts, generating a completely different kind of world, and many other things.=Una caratteristica centrale di Minetest è la capacità integrata di usare moduli. I moduli modificano l'esperienza di gioco esistente. Possono essere tanto semplici da aggiungere qualche blocco decorativo o essere molto complessi, per esempio introducendo concetti di gioco totalmente nuovi, generare un tipo di mondo completamente diverso, e molte altre cose.
Minetest can be played alone or online together with multiple players. Online play will work out of the box with any mods, with no need for additional software as they are entirely provided by the server.=Minetest può essere giocato localmente o in rete assieme a più utenti. Il gioco in rete funzionerà immediatamente senza nessun modulo, senza bisogno di programmi aggiuntivi perché interamente forniti dal server. Minetest can be played alone or online together with multiple players. Online play will work out of the box with any mods, with no need for additional software as they are entirely provided by the server.=Minetest può essere giocato localmente o in rete assieme a più utenti. Il gioco in rete funzionerà immediatamente senza nessun modulo, senza bisogno di programmi aggiuntivi perché interamente forniti dal server.
Minetest is usually bundled with a simple default game, named “Minetest Game” (shown in images 1 and 2). You probably already have it. Other games for Minetest can be downloaded from the official Minetest forums <https://forum.minetest.net/viewforum.php?f=48>.=Minetest generalmente include un gioco predefinito semplice, chiamato "Minetest Game" (mostrato nelle immagini 1 e 2). Probabilmente lo avete già. Altri giochi per Minetest possono essere scaricati dai forum ufficiali di Minetest <https://forum.minetest.net/viewforum.php?f=48>. Minetest is usually bundled with a simple default game, named “Minetest Game” (shown in images 1 and 2). You probably already have it. Other games for Minetest can be downloaded from the official Minetest forums <https://forum.minetest.net/viewforum.php?f@=48>.=Minetest generalmente include un gioco predefinito semplice, chiamato "Minetest Game" (mostrato nelle immagini 1 e 2). Probabilmente lo avete già. Altri giochi per Minetest possono essere scaricati dai forum ufficiali di Minetest <https://forum.minetest.net/viewforum.php?f@=48>.
Sneaking=Strisciare Sneaking=Strisciare
Sneaking makes you walk slower and prevents you from falling off the edge of a block.=Strisciare vi fa camminare più lentamente e vi impedisce di cadere dal bordo di un blocco. Sneaking makes you walk slower and prevents you from falling off the edge of a block.=Strisciare vi fa camminare più lentamente e vi impedisce di cadere dal bordo di un blocco.
To sneak, hold down the sneak key (default: [Shift]). When you release it, you stop sneaking. Careful: When you release the sneak key at a ledge, you might fall!=Per strisciare, tenete premuto il tasto per strisciare (predefinito [Maiusc]). Quando lo rilasciate, smettete di strisciare. Fate attenzione: quando rilasciate il tasto per strisciare vicino a un orlo, potreste cadere! To sneak, hold down the sneak key (default: [Shift]). When you release it, you stop sneaking. Careful: When you release the sneak key at a ledge, you might fall!=Per strisciare, tenete premuto il tasto per strisciare (predefinito [Maiusc]). Quando lo rilasciate, smettete di strisciare. Fate attenzione: quando rilasciate il tasto per strisciare vicino a un orlo, potreste cadere!
@ -396,7 +396,7 @@ Note that “transparency” here only means that the block is able to carry bri
Coordinates=Coordinate Coordinates=Coordinate
The Minetest world is a large cube. And because of this, a position in the world can be easily expressed with Cartesian coordinates. That is, for each position in the world, there are 3 values X, Y and Z.=Il mondo di Minetest è un grande cubo. E per questo, una posizione nel mondo può essere facilmente espressa tramite coordinate Cartesiane. Cioè, per ogni posizione nel mondo, esistono tre valori: X, Y e Z. The Minetest world is a large cube. And because of this, a position in the world can be easily expressed with Cartesian coordinates. That is, for each position in the world, there are 3 values X, Y and Z.=Il mondo di Minetest è un grande cubo. E per questo, una posizione nel mondo può essere facilmente espressa tramite coordinate Cartesiane. Cioè, per ogni posizione nel mondo, esistono tre valori: X, Y e Z.
Like this: (5, 45, -12)=Come questi: (5, 45, -12) Like this: (5, 45, -12)=Come questi: (5, 45, -12)
This refers to the position where X=5, Y=45 and Z=-12. The 3 letters are called “axes”: Y is for the height. X and Z are for the horizontal position.=Ciò si riferisce alla posizione dove X=5 (si legga “X vale 5”, NdT), Y=45 e Z=-12. Le tre lettere sono chiamate “assi”: Y si riferisce all'altezza. X e Z si riferiscono alla posizione orizzontale. This refers to the position where X@=5, Y@=45 and Z@=-12. The 3 letters are called “axes”: Y is for the height. X and Z are for the horizontal position.=Ciò si riferisce alla posizione dove X@=5 (si legga “X vale 5”, NdT), Y@=45 e Z@=-12. Le tre lettere sono chiamate “assi”: Y si riferisce all'altezza. X e Z si riferiscono alla posizione orizzontale.
The values for X, Y and Z work like this:=I valori di X, Y e Z funzionano così: The values for X, Y and Z work like this:=I valori di X, Y e Z funzionano così:
• If you go up, Y increases=• Se salite, Y aumenta • If you go up, Y increases=• Se salite, Y aumenta
• If you go down, Y decreases=• Se scendete, Y diminuisce • If you go down, Y decreases=• Se scendete, Y diminuisce

View File

@ -0,0 +1,48 @@
# textdomain: mcl_tt
Head armor=Armadura para la cabeza
Torso armor=Armadura para el torso
Legs armor=Armadura para las piernas
Feet armor=Armadura para los pies
Armor points: @1=Puntos de armadura: @1
Armor durability: @1=Durabilidad de armadura: @1
Protection: @1%=Protección: @1%
Hunger points: +@1=Puntos de hambre: +@1
Saturation points: +@1=Puntos de saturación: +@1
Deals damage when falling=Causa daño al caer
Grows on grass blocks or dirt=Crece sobre bloques de pasto o tierra
Grows on grass blocks, podzol, dirt or coarse dirt=Crece sobre bloques de pasto, podsol, tierra o tierra estéril
Flammable=Inflamable
Zombie view range: -50%=Rango de visión zombie: -50%
Skeleton view range: -50%=Rango de visión de esqueleto: -50%
Creeper view range: -50%=Rango de visión de creeper: -50%
Damage: @1=Daño: @1
Damage (@1): @2=Daño (@1): @2
Healing: @1=Curación: @1
Healing (@1): @2=Curación (@1): @2
Full punch interval: @1s=Intervalo de golpe completo: @1s
Contact damage: @1 per second=Daño por contacto: @1 por segundo
Contact healing: @1 per second=Curación por contacto: @1 por segundo
Drowning damage: @1=Dañor por ahogamiento: @1
Bouncy (@1%)=Rebota (@1%)
Luminance: @1=Luminancia: @1
Slippery=Resbaladizo
Climbable=Escalable
Climbable (only downwards)=Escalable (solo hacia abajo)
No jumping=No saltar
No swimming upwards=No nadar hacia arriba
No rising=No levantar
Fall damage: @1%=Daño por caída: @1%
Fall damage: +@1%=Daño por caída: @1%
No fall damage=Sin daño por caída
Mining speed: @1=Velocidad de minado: @1
Very fast=Muy rápido
Extremely fast=Extremadamente rápido
Fast=Rápido
Slow=Lento
Very slow=Muy lento
Painfully slow=Dolorosamente lento
Mining durability: @1=Durabilidad de minería: @1
Block breaking strength: @1=Fuerza para romper bloques: @1
@1 uses=@1 usos
Unlimited uses=Usos ilimitados
Durability: @1=Durabilidad: @1

View File

@ -0,0 +1,48 @@
# textdomain: mcl_tt
Head armor=Armadura de cabeça
Torso armor=Armadura de torso
Legs armor=Armadura de pernas
Feet armor=Armadura de pés
Armor points: @1=Pontos de armadura: @1
Armor durability: @1=Durabilidade da armadura: @1
Protection: @1%=Proteção: @1%
Hunger points: +@1=Pontos de fome: +@1
Saturation points: +@1=Pontos de saturação: +@1
Deals damage when falling=Dá dano enquanto cai
Grows on grass blocks or dirt=Cresce em blocos de grama ou terra
Grows on grass blocks, podzol, dirt or coarse dirt=Cresce em blocos de grama, podzol, terra ou terra infértil
Flammable=Inflamável
Zombie view range: -50%=Alcançe de visão do zumbi: -50%
Skeleton view range: -50%=Alcançe de visão do esqueleto: -50%
Creeper view range: -50%=Alcançe de visão do creeper: -50%
Damage: @1= Dano: @1
Damage (@1): @2=Dano (@1): @2
Healing: @1=Cura: @1
Healing (@1): @2=Cura (@1): @2
Full punch interval: @1s=Intervalo completo de batida: @1s
Contact damage: @1 per second=Dano por contaro: @1 por segundo
Contact healing: @1 per second=Cura por contato: @1 por segundo
Drowning damage: @1=Dano de afogamento: @1
Bouncy (@1%)=Saltitante (@1%)
Luminance: @1=Bliho: @1
Slippery=Escorregadio
Climbable=Escalável
Climbable (only downwards)=Escalável (apenas em descida)
No jumping=Sem pulo
No swimming upwards=Sem natação em subida
No rising=Sem levantamento
Fall damage: @1%=Dano de queda: @1%
Fall damage: +@1%=Dano de queda: +@1%
No fall damage=Sem dano de queda
Mining speed: @1=Velocidade de mineração: @1
Very fast=Muito rápido
Extremely fast=Extremamente rápido
Fast=Rápido
Slow=Lento
Very slow=Muito lento
Painfully slow=Dolorosamente lento
Mining durability: @1=Durabilidade de mineração: @1
Block breaking strength: @1=Força de quebra do bloco: @1
@1 uses=@1 usos
Unlimited uses=Usos ilimitados
Durability: @1=Durabilidade: @1

View File

@ -217,7 +217,9 @@ function awards.unlock(name, award)
-- Get award -- Get award
minetest.log("action", name.." has gotten award "..award) minetest.log("action", name.." has gotten award "..award)
minetest.chat_send_all(S("@1 has made the advancement @2", name, minetest.colorize(mcl_colors.GREEN, "[" .. (awdef.title or award) .. "]"))) if minetest.settings:get_bool("mcl_showAdvancementMessages", true) then
minetest.chat_send_all(S("@1 has made the advancement @2", name, minetest.colorize(mcl_colors.GREEN, "[" .. (awdef.title or award) .. "]")))
end
data.unlocked[award] = award data.unlocked[award] = award
awards.save() awards.save()

View File

@ -1,7 +1,7 @@
# textdomain:awards # textdomain:awards
@1: @2=@1: @2 @1: @2=@1: @2
@1 (got)=@1 (erhalten) @1 (got)=@1 (erhalten)
@1s awards:=Auszeichnungen von @: @1s awards:=Auszeichnungen von @1:
(Secret Advancement)=(Geheime Auszeichnung) (Secret Advancement)=(Geheime Auszeichnung)
Achievement gotten!=Auszeichnung erhalten! Achievement gotten!=Auszeichnung erhalten!
Achievement gotten:=Auszeichnung erhalten: Achievement gotten:=Auszeichnung erhalten:

View File

@ -62,3 +62,9 @@ Advancement “@1” does not exist.=Le progrès «@1» n'existe pas.
Mine a block: @1=Miner un bloc : @1 Mine a block: @1=Miner un bloc : @1
Mine blocks: @1×@2=Miner des blocs : @1×@2 Mine blocks: @1×@2=Miner des blocs : @1×@2
Awards are disabled, enable them first by using /awards enable!=Les récompenses sont désactivées, activez les d'abord en utilisant /awards enable ! Awards are disabled, enable them first by using /awards enable!=Les récompenses sont désactivées, activez les d'abord en utilisant /awards enable !
Goal Completed:=Objectif atteint :
Goal Completed!=Objectif atteint !
Goal Completed: @1=Objectif atteint : @1
Challenge Completed:=Défi relevé :
Challenge Completed!=Défi relevé !
Challenge Completed: @1=Défi relevé : @1

View File

@ -0,0 +1,6 @@
# textdomain: hudbars
Health=Saúde
Breath=Respiração
# Default format string for progress bar-style HUD bars, e.g. “Health 5/20”
@1: @2/@3=@1: @2/@3

21
mods/HUD/mcl_achievements/init.lua Normal file → Executable file
View File

@ -431,6 +431,27 @@ awards.register_achievement("mcl:wax_off", {
group = "Husbandry", group = "Husbandry",
}) })
-- Triggered in mcl_smithing_table
awards.register_achievement("mcl:trim", {
title = S("Crafting a New Look"),
description = S("Craft a trimmed armor at a Smithing Table"),
icon = "dune_armor_trim_smithing_template.png",
type = "Advancement",
group = "Adventure",
})
awards.register_achievement("mcl:lots_of_trimming", {
title = S("Smithing with Style"),
description = S("Apply these smithing templates at least once: Spire, Snout, Rib, Ward, Silence, Vex, Tide, Wayfinder"),
icon = "silence_armor_trim_smithing_template.png",
type = "Advancement",
group = "Adventure",
on_unlock = function(name, awdef)
-- delete json that is no longer needed
minetest.get_player_by_name(name):get_meta():set_string("mcl_smithing_table:achievement_trims", "")
end,
})
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.) -- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
if non_pc_achievements then if non_pc_achievements then

View File

@ -51,3 +51,7 @@ Bring Home the Beacon=Den Nachbarn heimleuchten
Use a beacon.=Benutzen Sie ein Leuchtfeuer. Use a beacon.=Benutzen Sie ein Leuchtfeuer.
Beaconator=Leuchtturmwärter Beaconator=Leuchtturmwärter
Use a fully powered beacon.=Benutzen Sie ein vollständiges Leuchtfeuer. Use a fully powered beacon.=Benutzen Sie ein vollständiges Leuchtfeuer.
Crafting a New Look=Ein neues Aussehen
Craft a trimmed armor at a Smithing Table=Versieh ein Rüstungsteil an einem Schmiedetisch mit einem Rüstungsbesatz
Smithing with Style=Schmieden mit Stil
Apply these smithing templates at least once: Spire, Snout, Rib, Ward, Silence, Vex, Tide, Wayfinder=Wende jede dieser Schmiedevorlagen mindestens einmal an: Turmspitze, Schnauze, Rippe, Warthof, Stille, Plagegeist, Gezeiten und Wegfinder

View File

@ -108,7 +108,10 @@ Put lava in a bucket.=Pon lava en un cubo.
Hero of the Village=Héroe de la aldea Hero of the Village=Héroe de la aldea
Successfully defend a village from a raid=Defiende una aldea de una invasión Successfully defend a village from a raid=Defiende una aldea de una invasión
Voluntary Exile=Exilio voluntario Voluntary Exile=Exilio voluntario
Kill a raid captain. Maybe consider staying away from the local villages for the time being...=Mata al capitán de una invasión. Kill a raid captain. Maybe consider staying away from the local villages for the time being...=Mata al capitán de una invasión. Sería mejor alejarte de las aldeas por un tiempo...
Sería mejor alejarte de las aldeas por un tiempo...
Tactical Fishing=Pesca táctica Tactical Fishing=Pesca táctica
Catch a fish... without a fishing rod!=Atrapa a un pez... ¡sin una caña de pescar! Catch a fish... without a fishing rod!=Atrapa a un pez... ¡sin una caña de pescar!
Crafting a New Look=Forjando una nueva imagen
Craft a trimmed armor at a Smithing Table=Decora una armadura en una mesa de herrería
Smithing with Style=Forjando con estilo
Apply these smithing templates at least once: Spire, Snout, Rib, Ward, Silence, Vex, Tide, Wayfinder=Aplica estos moldes de herrería al menos una vez: agujas, hocico, costillas, guardián, silencio, vex, mareas, buscacaminos

View File

@ -111,3 +111,7 @@ Voluntary Exile=Exil volontaire
Kill a raid captain. Maybe consider staying away from the local villages for the time being...=Tuez un capitaine de pillards. Mieux vaut rester loin des villages pour l'instant... Kill a raid captain. Maybe consider staying away from the local villages for the time being...=Tuez un capitaine de pillards. Mieux vaut rester loin des villages pour l'instant...
Tactical Fishing=Pêche tactique Tactical Fishing=Pêche tactique
Catch a fish... without a fishing rod!=Attrapez un poisson... sans canne à pêche ! Catch a fish... without a fishing rod!=Attrapez un poisson... sans canne à pêche !
Crafting a New Look=Motif de Jalousie
Craft a trimmed armor at a Smithing Table=Fabriquez une pièce d'armure ornée sur la table de forge
Smithing with Style=La classe de la cuirasse
Apply these smithing templates at least once: Spire, Snout, Rib, Ward, Silence, Vex, Tide, Wayfinder=Appliquez ces modèles de forge au moins une fois : Tour, Groin, Côte, Abîme, Silence, Vex, Marée, Éclaireur

4
mods/HUD/mcl_achievements/locale/template.txt Normal file → Executable file
View File

@ -111,3 +111,7 @@ Voluntary Exile=
Kill a raid captain. Maybe consider staying away from the local villages for the time being...= Kill a raid captain. Maybe consider staying away from the local villages for the time being...=
Tactical Fishing= Tactical Fishing=
Catch a fish... without a fishing rod!= Catch a fish... without a fishing rod!=
Crafting a New Look=
Craft a trimmed armor at a Smithing Table=
Smithing with Style=
Apply these smithing templates at least once: Spire, Snout, Rib, Ward, Silence, Vex, Tide, Wayfinder=

View File

@ -5,10 +5,15 @@ Contributors=Contributeurs
Creator of MineClone=Créateur de MineClone Creator of MineClone=Créateur de MineClone
Creator of MineClone2=Créateur de MineClone2 Creator of MineClone2=Créateur de MineClone2
Developers=Développeurs Developers=Développeurs
Past Developers=Anciens Développeurs
Jump to speed up (additionally sprint)=Saut pour accélérer (peut être combiné avec sprint) Jump to speed up (additionally sprint)=Saut pour accélérer (peut être combiné avec sprint)
Maintainers=Mainteneurs Maintainers=Mainteneurs
Previous Maintainers=Anciens Mainteneurs
MineClone5=MineClone5 MineClone5=MineClone5
Original Mod Authors=Auteurs des mods originaux Original Mod Authors=Auteurs des mods originaux
Sneak to skip=Shift pour passer Sneak to skip=Shift pour passer
Textures=Textures Textures=Textures
Translations=Traductions Translations=Traductions
Music=Musique
Funders=Fondateurs
Special thanks=Remerciements spéciaux

View File

@ -0,0 +1,19 @@
# textdomain: mcl_credits
3D Models=Modelos 3D
A faithful Open Source clone of Minecraft=Um clone fiel Open Source do Minecraft
Contributors=Colaboradores
Creator of MineClone=Criador do MineClone
Creator of MineClone2=Criador do MineClone2
Developers=Desenvolvedores
Past Developers=Desenvolvedores Passados
Jump to speed up (additionally sprint)=Pule para acelerar (arrancada adicional)
Maintainers=Mantedores
Previous Maintainers=Mantedores Anteriores
MineClone5=MineClone5
Original Mod Authors=Autores Originais do Mod
Sneak to skip=Agache para pular
Textures=Texturas
Translations=Traduções
Music=Músicas
Funders=Financiadores
Special thanks=Agradecimentos especiais

View File

@ -10,30 +10,32 @@ return {
}}, }},
{S("Maintainers"), 0xFF51D5, { {S("Maintainers"), 0xFF51D5, {
"AncientMariner", "AncientMariner",
"Nicu", "Herowl",
}}, }},
{S("Previous Maintainers"), 0xFFFFFF, { {S("Previous Maintainers"), 0xFFFFFF, {
"Fleckenstein", "Fleckenstein",
"cora", "cora",
"Nicu",
}}, }},
{S("Developers"), 0xF84355, { {S("Developers"), 0xF84355, {
"AFCMS", "AFCMS",
"epCode", "epCode",
"chmodsayshello", "chmodsayshello",
"PrairieWind",
"MrRar", "MrRar",
"FossFanatic ", "FossFanatic ",
"SmokeyDope", "SmokeyDope",
"Faerraven / Michieal",
"Codiac",
}}, }},
{S("Past Developers"), 0xF84355, { {S("Past Developers"), 0xF84355, {
"jordan4ibanez", "jordan4ibanez",
"iliekprogrammar", "iliekprogrammar",
"kabou", "kabou",
"kay27", "kay27",
"Faerraven / Michieal",
"MysticTempest", "MysticTempest",
"NO11", "NO11",
"SumianVoice", "SumianVoice",
"PrairieWind",
}}, }},
{S("Contributors"), 0x52FF00, { {S("Contributors"), 0x52FF00, {
"RandomLegoBrick", "RandomLegoBrick",
@ -114,6 +116,21 @@ return {
"Niterux", "Niterux",
"appgurueu", "appgurueu",
"seventeenthShulker", "seventeenthShulker",
"DinoNuggies4665",
"basxto",
"Morik666",
"Eliy21",
"mdk",
"Alessandra Lozoya",
"VanicGame",
"ThePython10110",
"Araca",
"Montandalar",
"mim",
"Dark",
"Bakawun",
"JoseDouglas26",
"Zasco",
}}, }},
{S("Music"), 0xA60014, { {S("Music"), 0xA60014, {
"Jordach for the jukebox music compilation from Big Freaking Dig", "Jordach for the jukebox music compilation from Big Freaking Dig",
@ -157,6 +174,7 @@ return {
"cora", "cora",
"Faerraven / Michieal", "Faerraven / Michieal",
"PrairieWind", "PrairieWind",
"ChrisPHP",
}}, }},
{S("3D Models"), 0x0019FF, { {S("3D Models"), 0x0019FF, {
"22i", "22i",
@ -164,6 +182,7 @@ return {
"epCode", "epCode",
"Faerraven / Michieal", "Faerraven / Michieal",
"SumianVoice", "SumianVoice",
"thunder1035",
}}, }},
{S("Textures"), 0xFF9705, { {S("Textures"), 0xFF9705, {
"XSSheep", "XSSheep",
@ -180,8 +199,11 @@ return {
"Faerraven / Michieal", "Faerraven / Michieal",
"Nicu", "Nicu",
"Exhale", "Exhale",
"Aeonix_Aeon",
"Wbjitscool", "Wbjitscool",
"SmokeyDope", "SmokeyDope",
"thunder1035",
"Herowl",
}}, }},
{S("Translations"), 0x00FF60, { {S("Translations"), 0x00FF60, {
"Wuzzy", "Wuzzy",
@ -201,6 +223,10 @@ return {
"Temak", "Temak",
"megustanlosfrijoles", "megustanlosfrijoles",
"kbundg", "kbundg",
"Isaac Dennis",
"ADLON",
"Sab Pyrope",
"JoseDouglas26",
}}, }},
{S("Funders"), 0xF7FF00, { {S("Funders"), 0xF7FF00, {
"40W", "40W",

View File

@ -156,7 +156,6 @@ mcl_death_messages = {
plain = "@1 died a sweet death", plain = "@1 died a sweet death",
assist = "@1 was poked to death by a sweet berry bush whilst trying to escape @2", assist = "@1 was poked to death by a sweet berry bush whilst trying to escape @2",
}, },
-- Missing snowballs: The Minecraft wiki mentions them but the MC source code does not.
}, },
} }

View File

@ -0,0 +1,55 @@
# textdomain: mcl_death_messages
@1 went up in flames=@1 pegou fogo
@1 walked into fire whilst fighting @2=@1 caminhou no fogo enquanto lutava contra @2
@1 was struck by lightning=@1 foi atingido(a) por um raio
@1 was struck by lightning whilst fighting @2=@1 foi atingido(a) por um raio enquanto lutava contra @2
@1 burned to death=@1 queimou até a morte
@1 was burnt to a crisp whilst fighting @2=@1 foi queimado até a crocância enquanto lutava contra @2
@1 tried to swim in lava=@1 tentou nadar em lava
@1 tried to swim in lava to escape @2=@1 tentou nadar em lava para escapar de @2
@1 discovered the floor was lava=@1 descobriu que o chão era lava
@1 walked into danger zone due to @2=@1 caminhou numa zona perigosa por conta de @2
@1 suffocated in a wall=@1 sufocou em uma parede
@1 suffocated in a wall whilst fighting @2=@1 sufocou em uma parede enquanto lutava contra @2
@1 drowned=@1 se afogou
@1 drowned whilst trying to escape @2=@1 se afogou enquanto tentava escapar de @2
@1 starved to death=@1 morreu de fome
@1 starved to death whilst fighting @2=@1 morreu de fome enquanto lutava contra @2
@1 was pricked to death=@1 foi espetado até a morte
@1 walked into a cactus whilst trying to escape @2=@1 caminhou até um cacto enquanto tentava escapar de @2
@1 hit the ground too hard=@1 bateu muito forte no chão
@1 hit the ground too hard whilst trying to escape @2=@1 bateu muito forte no chão enquanto tentava escapar de @2
@1 experienced kinetic energy=@1 experienciou a energia cinética
@1 experienced kinetic energy whilst trying to escape @2=@1 experienciou a energia cinética enquanto tentava escapar de @2
@1 fell out of the world=@1 caiu do mundo
@1 didn't want to live in the same world as @2=@1 não queria viver no mesmo mundo que @2
@1 died=@1 morreu
@1 died because of @2=@1 morreu por conta de @2
@1 was killed by magic=@1 foi morto(a) por magia
@1 was killed by magic whilst trying to escape @2=@1 foi morto(a) por magia enquanto tentava escapar de @2
@1 was killed by @2 using magic=@1 foi morto(a) por @2 usando magia
@1 was killed by @2 using @3=@1 foi morto(a) por @2 usando @3
@1 was roasted in dragon breath=@1 foi assado(a) no bafo do dragão
@1 was roasted in dragon breath by @2=@1 foi assado(a) no bafo do dragão por @2
@1 withered away=@1 apodreceu
@1 withered away whilst fighting @2=@1 apodreceu enquanto lutava contra @2
@1 was shot by a skull from @2=@1 foi acertado(a) por um crânio vindo de @2
@1 was squashed by a falling anvil=@1 foi esmagado(a) por uma bigorna em queda
@1 was squashed by a falling anvil whilst fighting @2=@1 foi esmagado(a) por uma bigorna enquanto lutava contra @2
@1 was squashed by a falling block=@1 foi esmagado(a) por um bloco em queda
@1 was squashed by a falling block whilst fighting @2=@1 foi esmagado(a) por um bloco em queda enquanto lutava contra @2
@1 was slain by @2=@1 foi assassinado por @2
@1 was slain by @2 using @3=@1 foi assassinado por @2 usando @3
@1 was shot by @2=@1 foi acertado(a) por @2
@1 was shot by @2 using @3=@1 foi acertado(a) por @2 usando @3
@1 was fireballed by @2=@1 foi atingido(a) por uma bola de fogo de @2
@1 was fireballed by @2 using @3=@1 foi atingido(a) por uma bola de fogo de @2 usando @3
@1 was killed trying to hurt @2=@1 foi morto(a) tentando machucar @2
@1 tried to hurt @2 and died by @3=@1 tentou machucar @2 e morreu por conta de @3
@1 blew up=@1 explodiu
@1 was blown up by @2=@1 foi explodido por @2
@1 was blown up by @2 using @3=@1 foi explodido por @2 usando @3
@1 was squished too much=@1 foi esmagado(a) demais
@1 was squashed by @2=@1 foi esmagado(a) por @2
@1 went off with a bang=@1 saiu com um estrondo
@1 went off with a bang due to a firework fired by @2 from @3=@1 saiu com um estrondo por conta de um fogo de artifício disparado por @2 vindo de @3

View File

@ -0,0 +1,8 @@
# textdomain: mcl_experience
[[<player>] <xp>]=[[<jogador>] <xp>]
Gives a player some XP=Dá algum XP a um jogador
Error: Too many parameters!=Erro: Muitos parâmetros
Error: Incorrect value of XP=Erro: Valor incorreto de XP
Error: Player not found=Erro: Jogador não encontrado
Added @1 XP to @2, total: @3, experience level: @4=Adicionado @1 XP para @2, total: @3, nível de experiência: @4
Bottle o' Enchanting=Frasco de Experiência

View File

@ -155,7 +155,7 @@ minetest.register_entity("mcl_experience:orb", {
collisionbox = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2}, collisionbox = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2},
visual = "sprite", visual = "sprite",
visual_size = {x = 0.4, y = 0.4}, visual_size = {x = 0.4, y = 0.4},
textures = {name="mcl_experience_orb.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}}, textures = {"mcl_experience_orb.png"},
spritediv = {x = 1, y = 14}, spritediv = {x = 1, y = 14},
initial_sprite_basepos = {x = 0, y = 0}, initial_sprite_basepos = {x = 0, y = 0},
is_visible = true, is_visible = true,

View File

@ -0,0 +1,2 @@
# textdomain:hbarmor
Armor=Armadura

View File

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

View File

@ -0,0 +1,4 @@
# textdomain: mcl_info
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 3 @= all=Defina a máscara de bits de debug: 0 @= desabilitado, 1 @= nome do bioma, 2 @= coordenadas, 3 @= todos
Error! Possible values are integer numbers from @1 to @2=Erro! Valores possíveis são números inteiros de @1 até @2
Debug bit mask set to @1=Máscara de bits de debug definida como @1

View File

@ -741,12 +741,14 @@ if minetest.is_creative_enabled("") then
for _, item in ipairs(drops) do for _, item in ipairs(drops) do
minetest.add_item(pos, item) minetest.add_item(pos, item)
end end
end else
local inv = digger:get_inventory() -- If there is a player
if inv then local inv = digger:get_inventory()
for _, item in ipairs(drops) do if inv then
if not inv:contains_item("main", item, true) then for _, item in ipairs(drops) do
inv:add_item("main", item) if not inv:contains_item("main", item, true) then
inv:add_item("main", item)
end
end end
end end
end end

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