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.
| Field | Type | Default | Description |
|---|---|---|---|
comparison | Comparison | required | |
compare_to | Integer | required | ticks |
Example: second wind.
{
"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