Add Velocity

Entity Action Type

Adds or sets velocity towards a specific direction.

Type ID: origins:add_velocity

Note

If the entity action type behaves unexpectedly, try setting either the client (should always work) or server (might not work) boolean fields to false. Here are some examples.

Fields

Field Type Default Description
x Float 0.0 The amount of velocity to add on the x-axis.
y Float 0.0 The amount of velocity to add on the y-axis.
z Float 0.0 The amount of velocity to add on the z-axis.
space Space "world" Determines how the direction of the velocity to add/set will be calculated.
client Boolean true If this is false, the action will not execute on the client.
server Boolean true If this is false, the action will not execute on the server.
set Boolean false If this is true, the action will act as a "set" velocity action, overriding the entity's current velocity instead of adding to it.

Examples

"entity_action": {
    "type": "origins:add_velocity",
    "y": 2
}

This example will add velocity to the entity's positive Y axis, essentially launching the entity up in the air.