Commit graph

14 commits

Author SHA1 Message Date
teknomunk
427f2cf847 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-01 14:43:47 +01:00
teknomunk
332211ad9c Change from table indirection to getter/setter functions for dynamically updating local variables 2025-01-01 14:43:47 +01:00
teknomunk
506fa0844c Get settings GUI implemented and functional 2025-01-01 14:43:47 +01:00
teknomunk
aedc78cd8e Start GUI 2025-01-01 14:43:47 +01:00
teknomunk
7922777fbc Implement respawnBlocksExplode gamerule 2025-01-01 14:43:47 +01:00
teknomunk
0f3e536d72 Add settings file 2025-01-01 14:43:47 +01:00
teknomunk
759ad67ba4 Add gamerule keepInventory and migrate existing setting value from mcl_keepInvetory 2025-01-01 14:43:47 +01:00
teknomunk
8bd1374098 Implement doDaylightCycle, add on_change hook for tunables and make sure they are not called when loaded 2025-01-01 14:43:47 +01:00
teknomunk
74c19ccbae Remove debug print(), add game rules maxEntityCramming, snowAccumulationHeight 2025-01-01 14:43:47 +01:00
teknomunk
90063faeb8 Fix default value handling during set (allows bool settings to be set to false), add game rules: doMobSpawning, disableRaids, doWeatherCycle, doFireTick 2025-01-01 14:43:47 +01:00
teknomunk
717b7f9224 Change API so most parameters are in a definition table, add /gamerule chatcommand, implement gamerule announceAdvancements 2025-01-01 14:43:47 +01:00
teknomunk
04f9ef867b Make awards use the notification delay setting 2025-01-01 14:43:47 +01:00
teknomunk
7bf1280200 Finish initial implementation of setting tuning with get/set commands 2025-01-01 14:43:47 +01:00
teknomunk
cd99a524e8 Start implementing dynamic rules/tuning 2025-01-01 14:43:47 +01:00