Update projectilevelocity authored by Lxlp's avatar Lxlp
...@@ -5,13 +5,13 @@ Modifies the velocity of the calling [Projectile](/skills/mechanics/projectile) ...@@ -5,13 +5,13 @@ Modifies the velocity of the calling [Projectile](/skills/mechanics/projectile)
## Attributes ## Attributes
| Attribute | Aliases | Description | Default Value | | Attribute | Aliases | Description | Default |
|-----------|---------|-------------------------------------------------------------------------|---------------| |-----------|-----------|----------------------------------------------------------------------|---------|
| mode | m | The operation to perform. Can be SET, ADD, REMOVE, DIVIDE, or MULTIPLY. | SET | | 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 | | velocityx | vx, x | Velocity on the x-axis. Can be negative. | 1 |
| velocityy | vy, y | Velocity on the y-axis. Can be negative. | 1 | | velocityy | vy, y | Velocity on the y-axis. Can be negative. | 1 |
| velocityz | vz, z | Velocity on the z-axis. Can be negative. | 1 | | velocityz | vz, z | Velocity on the z-axis. Can be negative. | 1 |
| relative | | If the change in velocity should be relative to the projectile's facing direction. In this instance, the `z` axis becomes `forward/backward`, `y` becomes `up/down` and `x` becomes `left/right`| true | | relative | | If the change in velocity should be relative to the projectile's facing direction. In this instance, the `z` axis becomes `forward/backward`, `y` becomes `up/down` and `x` becomes `left/right`| true |
## Examples ## Examples
...@@ -21,4 +21,8 @@ Projectile-onTick: ...@@ -21,4 +21,8 @@ Projectile-onTick:
- chance{chance=0.1} true - chance{chance=0.1} true
Skills: Skills:
- projectilevelocity{mode=ADD;vz=0.3} - projectilevelocity{mode=ADD;vz=0.3}
``` ```
\ No newline at end of file
## Aliases
- [x] pvelocity
\ No newline at end of file