Skip to content

๐Ÿšถ Movement โ€‹

Teleport an entity โ€‹

This will teleport the target entity to target location.

ParameterAliasDescriptionDefault
target_location-Location targeter required. Where to teleport.target location
target-Entity targeter required. Entity to teleport.caster
y_offset-Y offset applied to the target location.0
yml
example_mechanic:
  mechanics:
  - 'teleport{y_offset=0;target=caster;target_location={type=custom;world=world;x=-140,y=67,z=10}}'

Set the velocity of an entity โ€‹

You need to use a variable in order to provide a position (<=> vector). In the following example, the vector is saved in the variable called velocity1.

ParameterAliasDescriptionDefault
target-Entity targeter required. Entity to set the velocity of.caster
valueval, v, vector, vec, velocity, velName of variable containing the vector (position) to set the velocity to.none
yml
example_mechanic:
  mechanics:
  - 'set_vector{var=velocity1;x=0;y=1;z=0}'
  - 'set_velocity{target=caster;value=velocity1}'

Powered by VitePress