minecraft:exhaustion_values
Defines how much exhaustion each player action should take.
Properties
| Property | Type | Default | What it does |
|---|---|---|---|
heal | Decimal | 6 | Amount of exhaustion applied when healed through food regeneration. |
jump | Decimal | 0.05 | Amount of exhaustion applied when jumping. |
sprint_jump | Decimal | 0.2 | Amount of exhaustion applied when sprint jumping. |
mine | Decimal | 0.005 | Amount of exhaustion applied when mining. |
attack | Decimal | 0.1 | Amount of exhaustion applied when attacking. |
damage | Decimal | 0.1 | Amount of exhaustion applied when taking damage. |
walk | Decimal | 0 | Amount of exhaustion applied when walking. |
sprint | Decimal | 0.01 | Amount of exhaustion applied when sprinting. |
swim | Decimal | 0.01 | Amount of exhaustion applied when swimming. |
lunge | Decimal | 4 | Amount of exhaustion applied when triggering the lunge enchantment, multiplied by the enchantment level. |
Example from the game files
This is how vanilla Player uses it in Minecraft Bedrock 1.26.60.5:
{
"minecraft:exhaustion_values": {
"sprint": 0.1,
"jump": 0.05,
"attack": 0.1,
"damage": 0.1,
"heal": 6.0,
"lunge": 4.0,
"sprint_jump": 0.2,
"mine": 0.005,
"swim": 0.01,
"walk": 0.0
}
}Used by 1
Vanilla entities with minecraft:exhaustion_values in their definition: