|
==============
|
|
## Description
|
|
|
|
|
|
## Description:
|
|
|
|
|
|
|
|
Modifies the velocity of the targeted entity(s). May be used on players,
|
|
Modifies the velocity of the targeted entity(s). May be used on players,
|
|
too. Useful for all sorts of things like true knockback resistance,
|
|
too. Useful for all sorts of things like true knockback resistance,
|
|
force-skills or simulated wind.
|
|
force-skills or simulated wind.
|
|
|
|
|
|
## Attributes:
|
|
|
|
|
|
|
|
| Attribute | Aliases | Description | Default Value |
|
|
## Attributes
|
|
|-----------|---------|-------------------------------------------------------------------------|---------------|
|
|
| Attribute | Aliases | Description | Default |
|
|
| mode | m | The operation to perform. Can be SET, ADD, REMOVE, DIVIDE, or MULTIPLY. | SET |
|
|
|-----------|-----------|----------------------------------------------------------------------|---------|
|
|
| velocityx | vx, x | Velocity on the x-axis. Can be negative. | 1 |
|
|
| mode | m | The operation to perform. Can be SET, ADD, REMOVE, DIVIDE, or MULTIPLY. | SET |
|
|
| velocityy | vy, y | Velocity on the y-axis. Can be negative. | 1 |
|
|
| velocityx | vx, x | Velocity on the x-axis. Can be negative. | 1 |
|
|
| velocityz | vz, z | Velocity on the z-axis. Can be negative. | 1 |
|
|
| velocityy | vy, y | Velocity on the y-axis. Can be negative. | 1 |
|
|
| relative | | If the change in velocity should be relative to the target's facing direction. In this instance, the `z` axis becomes `forward/backward`, `y` becomes `up/down` and `x` becomes `left/right` | false |
|
|
| velocityz | vz, z | Velocity on the z-axis. Can be negative. | 1 |
|
|
|
|
| relative | | If the change in velocity should be relative to the target's facing direction. In this instance, the `z` axis becomes `forward/backward`, `y` becomes `up/down` and `x` becomes `left/right` | false |
|
|
|
|
|
|
## Examples:
|
|
|
|
|
|
|
|
|
|
## Examples
|
|
This example will stop all momentum of the casting mob upon taking
|
|
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
|
|
damage. The effect will only last until the mob decides to move again or
|
|
is moved by other sources.
|
|
is moved by other sources.
|
|
|
|
|
|
```yaml
|
|
```yaml
|
|
internal_mobname:
|
|
internal_mobname:
|
|
Type: Zombie
|
|
Type: Zombie
|
|
Skills:
|
|
Skills:
|
|
- velocity{m=set;x=0;y=0;z=0} @self ~onDamaged
|
|
- 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.
|
|
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.
|
|
```yaml
|
|
```yaml
|
|
internal_mobname:
|
|
internal_mobname:
|
... | | ... | |