Compatibility
Minecraft: Java Edition
1.20.1
Platforms
NeoForge
Supported environments
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Licensed ARR
Published 2 months ago
Updated 2 months ago
Peaceful Hunger!
... a simple mod that slows health regeneration while in Peaceful.
Inspiration
This mod was inspired by u/Hollyetravels on Reddit:
I just want to play in peaceful mode but still get hungry. I play farming mods a lot and there's no point to farming/cooking if you can't eat it. But I hate hostile mobs,personally.
Goal
Stop automatic health regeneration while the difficulty is set to "Peaceful".
Technical Details
This mod uses Redirects from SpongePowered Mixin to change the relevant difficulty for health regeneration and hunger effects. Specifically: on the tick()
method of FoodData.class, and the aiStep()
method of Player.class.