1. Wiki
  2. /Entities
  3. /minecraft:exhaustion_values

minecraft:exhaustion_values

Don't want to write this by hand? GodCraft sets minecraft:exhaustion_values for you with a switch.Get GodCraft

Overview

minecraft:exhaustion_values is an entity component: it goes in the components object of a custom mob, or in one of its component groups. Sets how much each player action drains the hunger bar. Lower values make players get hungry more slowly; set one to 0 to make that action free.

Fields

FieldTypeDefaultDescription
healnumber6Exhaustion added when health regenerates from a full hunger bar.
jumpnumber0.05Exhaustion added for each normal jump.
sprint_jumpnumber0.2Exhaustion added for each jump while sprinting.
minenumber0.005Exhaustion added for each block mined.
attacknumber0.1Exhaustion added for each attack.
damagenumber0.1Exhaustion added when taking damage.
walknumber0Exhaustion added while walking.
sprintnumber0.01Exhaustion added while sprinting.
swimnumber0.01Exhaustion added while swimming.
lungenumber4Exhaustion added when the lunge enchantment triggers, multiplied by its level.

Example

Inside the components object of BP/entities/<name>.json (values are the defaults or placeholders):

BP/entities/<name>.json
{
  "minecraft:exhaustion_values": {
    "heal": 6,
    "jump": 0.05,
    "sprint_jump": 0.2,
    "mine": 0.005,
    "attack": 0.1,
    "damage": 0.1,
    "walk": 0,
    "sprint": 0.01
  }
}

We use cookies to improve your experience and analyse site traffic. Learn more