Velocity
origins-powerful-powers:velocityentity condition
The entity's velocity along one axis, in blocks per tick.
| Field | Type | Default | Description |
|---|---|---|---|
axis | String | required | x, y or z. y is up (negative while falling). |
comparison | Comparison | required | |
compare_to | Double | required | blocks per tick (1 block/tick = 20 blocks/second) |
Example: feather fall.
{
"type": "origins:action_over_time",
"interval": 1,
"condition": {
"type": "origins-powerful-powers:velocity",
"axis": "y",
"comparison": "<",
"compare_to": -1.0
},
"entity_action": {
"type": "origins:apply_effect",
"effect": {
"effect": "minecraft:slow_falling",
"duration": 10,
"amplifier": 0
}
}
}When you fall faster than 1 block per tick, you get Slow Falling.
Attributes: velocity_x, velocity_y, velocity_z