Expand description
All food-system constants bundled in one place.
Constants§
- DEFAULT_
FOOD_ LEVEL - Default food level for a freshly spawned player.
- DEFAULT_
SATURATION - Default saturation for a freshly spawned player
- EXHAUSTION_
ATTACK - Exhaustion cost per attack
- EXHAUSTION_
CROUCH - Exhaustion cost per meter crouched
- EXHAUSTION_
DROP - Exhaustion threshold
- EXHAUSTION_
HEAL - Exhaustion cost of regenerating health
- EXHAUSTION_
JUMP - Exhaustion cost per jump
- EXHAUSTION_
MINE - Exhaustion cost per block mined
- EXHAUSTION_
SPRINT - Exhaustion cost per meter sprinted
- EXHAUSTION_
SPRINT_ JUMP - Exhaustion cost per sprint-jump
- EXHAUSTION_
SWIM - Exhaustion cost per meter swum
- EXHAUSTION_
WALK - Exhaustion cost per meter walked
- FOOD_
SATURATION_ GOOD - Good saturation modifier
- FOOD_
SATURATION_ LOW - Low saturation modifier
- FOOD_
SATURATION_ MAX - Max saturation modifier
- FOOD_
SATURATION_ NORMAL - Normal saturation modifier
- FOOD_
SATURATION_ POOR - Poor saturation modifier
- FOOD_
SATURATION_ SUPERNATURAL - Supernatural saturation modifier
- HEALTH_
TICK_ COUNT - Slow regeneration interval ticks
- HEALTH_
TICK_ COUNT_ SATURATED - Fast regeneration interval ticks
- HEAL_
LEVEL - Minimum food level required for slow natural regeneration
- MAX_
EXHAUSTION - Hard cap on accumulated exhaustion
- MAX_
FOOD_ LEVEL - Maximum food level of a player
- MAX_
SATURATION - Maximum saturation level
- SATURATION_
FLOOR - Saturation floor used by some food items
- SPRINT_
LEVEL - Sprint threshold — player can sprint when food level is above this value