Origins: Powerful Powers
» Entity conditions » Sprint ticks

Sprint ticks

origins-powerful-powers:sprint_ticksentity conditionplayers onlytracked

Ticks the player has been sprinting without stopping. Goes back to 0 the moment they stop.

FieldTypeDefaultDescription
comparisonComparisonrequired
compare_toIntegerrequiredticks

Example: second wind.

json
{
  "type": "origins:action_over_time",
  "interval": 20,
  "condition": {
    "type": "origins-powerful-powers:sprint_ticks",
    "comparison": ">=",
    "compare_to": 60
  },
  "entity_action": {
    "type": "origins:apply_effect",
    "effect": {
      "effect": "minecraft:speed",
      "duration": 30,
      "amplifier": 0
    }
  }
}

After 3 seconds of non-stop sprinting, you get Speed.

Attribute: sprint_ticks