Name
Compares the entity's motion in a specific direction to a specific value.
Type ID: appli:motion
Note
Entities affected by gravity will almost never have a Y motion of 0, because of how gravity and block collision works. If you're trying to check if an entity is(n't) falling, you should use On Block (Entity Condition) instead.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
direction |
String | The direction to check motion in. Accepts x, y, or z. |
|
comparison |
Comparison | How to compare the motion in the specified direction to the specified value. | |
compare_to |
Integer | The value to compare the motion in the specified direction to. |
Examples
"entity_condition": {
"type": "appli:motion",
"direction": "x",
"comparison": "!=",
"compare_to": 0
}
This example will check if entity is moving in the X direction.