Commit graph

13212 commits

Author SHA1 Message Date
teknomunk
09cee2f7dc Implement gamerule tntExplodes 2025-01-05 19:56:56 +01:00
teknomunk
53ea4cf04c Implement gamerule:minecartMaxSpeed 2025-01-05 19:56:56 +01:00
teknomunk
5fea074f30 Add type annotations to vl_tuning, convert minetest->core in vl_tuning, remove last remnants of [1] value accesses, fix several issues uncoverted by type checking, rename some fields 2025-01-05 19:56:56 +01:00
teknomunk
461429917e Add missed files 2025-01-05 19:56:56 +01:00
teknomunk
07a51883c0 Change from table indirection to getter/setter functions for dynamically updating local variables 2025-01-05 19:56:56 +01:00
teknomunk
539b629488 Get settings GUI implemented and functional 2025-01-05 19:56:56 +01:00
teknomunk
fbf4c8d5df Start GUI 2025-01-05 19:56:56 +01:00
teknomunk
482a89ff97 Fix typo in variable name 2025-01-05 19:56:56 +01:00
teknomunk
4da5cc0e5c Implement showDeathMessages gamerule 2025-01-05 19:56:56 +01:00
teknomunk
a771cc5c50 Implement respawnBlocksExplode gamerule 2025-01-05 19:56:56 +01:00
teknomunk
c0384d0982 Implement doMobLoot gamerule 2025-01-05 19:56:56 +01:00
teknomunk
607afe0713 Add fireDamage game rule (fallDamage and drowningDamage don't work in mcl_damage) 2025-01-05 19:56:56 +01:00
teknomunk
13c5815884 Add additional gamerules for damage types 2025-01-05 19:56:56 +01:00
teknomunk
b3a3febee3 Fix typo 2025-01-05 19:56:56 +01:00
teknomunk
4a142f5787 Add gamerule naturalRegeneration and make mcl_health_regen_delay a tunable setting 2025-01-05 19:56:56 +01:00
teknomunk
3582653baa Change handling of mcl_showAdvancementMessages 2025-01-05 19:56:56 +01:00
teknomunk
443e819ea1 Nether portal delay settings 2025-01-05 19:56:56 +01:00
teknomunk
8ba13a39ce Add settings file 2025-01-05 19:56:56 +01:00
teknomunk
05eec31a4d Implement doVinesSpread 2025-01-05 19:56:56 +01:00
teknomunk
e6ad6d024e Add gamerule keepInventory and migrate existing setting value from mcl_keepInvetory 2025-01-05 19:56:56 +01:00
teknomunk
47add8b4a0 Add setting for damage_enabled 2025-01-05 19:56:56 +01:00
teknomunk
dcb4752cc6 Implement doDaylightCycle, add on_change hook for tunables and make sure they are not called when loaded 2025-01-05 19:56:56 +01:00
teknomunk
48b70217ec Remove debug print(), add game rules maxEntityCramming, snowAccumulationHeight 2025-01-05 19:56:56 +01:00
teknomunk
4514f81e82 Fix default value handling during set (allows bool settings to be set to false), add game rules: doMobSpawning, disableRaids, doWeatherCycle, doFireTick 2025-01-05 19:56:56 +01:00
teknomunk
43d288a532 Change API so most parameters are in a definition table, add /gamerule chatcommand, implement gamerule announceAdvancements 2025-01-05 19:56:56 +01:00
teknomunk
593afad923 Make awards use the notification delay setting 2025-01-05 19:56:56 +01:00
teknomunk
276ca230d4 Finish initial implementation of setting tuning with get/set commands 2025-01-05 19:56:56 +01:00
teknomunk
04b466ecc0 Start implementing dynamic rules/tuning 2025-01-05 19:56:56 +01:00
Mikita Wiśniewski
f2f322daa5 vl_fireworks: Call pointed node's on_rightclick first (#4823)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4823
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>
2025-01-05 19:07:19 +01:00
Mikita Wiśniewski
6011a31aad Fix crash when trying to strip hollow logs (#4822)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4822
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>
2025-01-05 18:40:38 +01:00
the-real-herowl
ae5353b070 Merge pull request 'Fix bobber collision, ender pearl crash' (#4806) from fix-bobber into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4806
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-01-05 18:39:34 +01:00
teknomunk
5009d403c1 Ensure the bobber remains after it collides with something solid 2025-01-05 09:34:05 -06:00
teknomunk
9df4a57945 Remove unused locals, resolve all but one luacheck finding (incorrect finding of value not used) 2025-01-05 16:05:28 +01:00
teknomunk
98f115eb31 Update flying bobber detection to work with Projectile API changes 2025-01-05 16:05:28 +01:00
teknomunk
6824ce0428 Give snowballs, eggs and ender pearls a collision box 2025-01-05 16:05:28 +01:00
teknomunk
bd31808bed Fix ender pearl crash 2025-01-05 16:05:28 +01:00
teknomunk
70d05a6720 Fix bobber colliding with doors,trapdoors, rework vl_projectile collides_with handling to affect all entities physical or not 2025-01-05 16:05:28 +01:00
Mikita Wiśniewski
0385abc277 Fix undeclared (global) variable usage (#4803)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4803
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-01-05 15:57:02 +01:00
Mikita Wiśniewski
013679507b Use meshes for cocoa pods instead of nodeboxes (fixes #4808) (#4811)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4811
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-01-05 15:48:48 +01:00
teknomunk
6913465531 Remove explicit inventory size parameter (#4820)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4820
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2025-01-05 15:44:13 +01:00
kno10
3d862a0336 Cooldown for dispensers and droppers (#4814)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4814
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2025-01-05 15:43:04 +01:00
the-real-herowl
1521d202aa Merge pull request 'Fix undeclared (global) variables, other linter issues with minecarts' (#4805) from fix-luacheck-minecart into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4805
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-01-05 02:37:51 +01:00
teknomunk
7c7c2bcb6d Address review comments 2025-01-05 02:37:51 +01:00
teknomunk
cc125d8eac Fix all luacheck findings except two empty if branches, two references to math.round and the *_physics variables from optional mods (each guarded by modpath checks) 2025-01-05 02:37:51 +01:00
teknomunk
24ca1b20a8 Export handle_cart_leave from movement, resolve luacheck and lua-language-server findings, fix typo 2025-01-05 02:37:51 +01:00
kno10
e5822ecc35 fix undefined globals in mcl_bamboo (#4797)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4797
Reviewed-by: teknomunk <teknomunk@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2025-01-05 02:25:48 +01:00
Mikita Wiśniewski
8a08f0dbcd Fix droppers crashing when dropping an unknown item (#4810)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4810
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-01-05 02:24:16 +01:00
Mikita Wiśniewski
2df6f7d5d4 Fix jockey spawn room check (#4812)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4812
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2025-01-05 02:23:48 +01:00
the-real-herowl
cc82293c74 Merge pull request 'Fix sweetberry bonemealing crash, growth, double bonemeal usage' (#4788) from fix-sweetberry-bonemealing into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4788
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2025-01-03 20:07:12 +01:00
teknomunk
ab7d0544da Add TODO for future planned work 2025-01-03 20:07:12 +01:00