Origins: Powerful Powers
» Entity conditions » Exhaustion

Exhaustion

origins-powerful-powers:exhaustionentity conditionplayers only

The player's food exhaustion. Actions like sprinting, jumping and fighting raise it. When it passes 4.0, vanilla takes 4 away and removes a point of saturation or food.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toFloatrequiredusually 0.0 to 4.0

Example:

json
{
  "type": "origins:action_over_time",
  "interval": 10,
  "condition": {
    "type": "origins-powerful-powers:exhaustion",
    "comparison": ">=",
    "compare_to": 3.5
  },
  "entity_action": {
    "type": "origins:execute_command",
    "command": "title @s actionbar {\"text\":\"You feel tired…\",\"color\":\"gray\"}"
  }
}

A warning just before you lose food.

Attribute: exhaustion