Mechanic
velocity
Sets the velocity on the target entity
Examples & Notes
Examples
This example will stop all momentum of the casting mob upon taking damage. The effect will only last until the mob decides to move again or is moved by other sources.
internal_mobname:
Type: Zombie
Skills:
- velocity{m=set;x=0;y=0;z=0} @self ~onDamaged
While the example above works most of the time, the bow’s ARROW_KNOCKBACK enchantment will still manage to move them. This can be prevented by doing a slight modification to the mechanic, as shown below.
internal_mobname:
Type: Zombie
Skills:
- velocity{m=set;x=0;y=0;z=0;delay=1} @self ~onDamaged
Universal Mechanic Options
Mentioned by
Conditiondirectionalvelocity
If the target has a velocity matching the given parameters
Conditionmoving
If the target has a velocity greater than zero
Conditionvelocity
Checks the velocity of the target entity against a range.
Mechanicdirectionalvelocity
Sets the velocity on the target entity
Mechanicprojectilevelocity
Sets the velocity on the calling projectile
- Author:
- Ashijin
