Origins: Powerful Powers
» Entity conditions » Crouch depth

Crouch depth

origins-powerful-powers:crouch_depthentity conditionplayers onlytracked

How far into a sneak the player is, from 0.0 (standing) to 1.0 (fully crouched). It moves a third of the way toward 1 each tick while sneaking, and back toward 0 when not, so a full crouch takes 3 ticks.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toFloatrequired0.0 to 1.0
  • It's 0 for other entities.

Example:

json
{
  "type": "origins:modify_damage_taken",
  "condition": {
    "type": "origins-powerful-powers:crouch_depth",
    "comparison": ">=",
    "compare_to": 1.0
  },
  "modifier": {
    "operation": "multiply_total_multiplicative",
    "value": -0.1
  }
}

While fully crouched, you take 10% less damage.

Attribute: crouch_depth