Origins: Powerful Powers
» Entity conditions » Velocity

Velocity

origins-powerful-powers:velocityentity condition

The entity's velocity along one axis, in blocks per tick.

FieldTypeDefaultDescription
axisStringrequiredx, y or z. y is up (negative while falling).
comparisonComparisonrequired
compare_toDoublerequiredblocks per tick (1 block/tick = 20 blocks/second)

Example: feather fall.

json
{
  "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