Skip to main content

Module food_constants

Module food_constants 

Source
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