Glitchfiend / ToughAsNails

Minecraft mod that adds survival features to increase difficulty and realism, including thirst, body temperature, and more!
https://www.curseforge.com/minecraft/mc-mods/tough-as-nails
Other
277 stars 111 forks source link

Make Water Purifier fuel data-driven and rework thirst/hydration data files #845

Open Kiryonn opened 1 month ago

Kiryonn commented 1 month ago

Overview

Don't hard code the water purifier fuel sources. I had to look into the code to see that: Item Duration (ticks)
SHORT_GRASS 100
PAPER 200
GRAVEL 400
SAND 800
CHARCOAL 1600
PRISMARINE_CRYSTALS 3200
HEART_OF_THE_SEA 6400

Also why are the hydration values set like that ? image Just use a dictionary with keys & values in one single file. It would be much easier to deserialize the data if you do. Usually you would use items as keys and the values as, well, values...

Why would this feature be useful?