Exhaustion - coolsquid/HungerTweaker GitHub Wiki
mods.hungertweaker.Exhaustion
The Exhaustion ZenClass can be used to change the effects of exhaustion, to set the maximum exhaustion level, and to enable or disable exhaustion. To modify exhaustion gain, either generally or from specific actions, use the ExhaustingAction ZenClass.
-
setMaxExhaustionLevel(IData)
- Accepts a number or an expression.
- Sets the threshold at which exhaustion leads to hunger loss.
-
setDeltaExhaustion(IData)
- Accepts a number or an expression.
- Sets the amount of exhaustion that is added when the player is exhausted (i.e., has reached the maximum exhaustion level).
- By default, this is the same as the maximum exhaustion level.
-
setDeltaHunger(IData)
- Accepts a number or an expression.
- Sets the amount of hunger that is added when the player is exhausted.
- This varies, depending on, amongst other things, the current difficulty.
-
setDeltaSaturation(IData)
- Accepts a number or an expression.
- Sets the amount of saturation that is added when the player is exhausted.
- This varies, depending on, amongst other things, the current difficulty.
-
setStatus(int)
- 0 = deny exhaustion
- 1 = use the Vanilla conditions
- 2 = allow exhaustion