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.
Credits
Project members
jason13official
Member
Technical information
License
ARR
Client side
required
Server side
required
Project ID