Add Velocity
Adds or sets velocity towards a specific direction.
Type ID: origins:add_velocity
Fields
| Field | Type | Default | Description |
|---|---|---|---|
x |
Float | DEPRECATED | Use the velocity field instead. |
y |
Float | DEPRECATED | Use the velocity field instead. |
z |
Float | DEPRECATED | Use the velocity field instead. |
velocity |
Vector | {"x": 0.0, "y": 0.0, "z": 0.0} |
The amount of velocity to add. |
space |
Space | "position" |
Determines the direction of the velocity. |
client |
Boolean | REMOVED | Use the Side (Meta Action Type) instead. |
server |
Boolean | REMOVED | Use the Side (Meta Action Type) instead. |
set |
Boolean | false |
Determines whether the entity's velocity is overridden. |
Examples
"entity_action": {
"type": "origins:add_velocity",
"velocity": {
"y": 2
}
}
This example will add velocity to the entity's positive Y axis, essentially launching the entity up in the air.