feat: more pages authored by Taiyou06's avatar Taiyou06
...@@ -9,12 +9,22 @@ Sets the calling projectile's movement direction to the given target ...@@ -9,12 +9,22 @@ Sets the calling projectile's movement direction to the given target
| magnitude | m | The magnitude of the change. A value of 1 will make the projectile change direction perfectly. Lower values will interpolate the changed direction position between 0 and 100% | 1 | | magnitude | m | The magnitude of the change. A value of 1 will make the projectile change direction perfectly. Lower values will interpolate the changed direction position between 0 and 100% | 1 |
## Supported Targeters
This mechanic accepts both location targeters and entity targeters. When given an entity targeter, the projectile is aimed at that entity's current location.
## Examples ## Examples
Once called by a projectile, this mechanic will change the projectile's direction based on its current direction Once called by a projectile, this mechanic will change the projectile's direction based on its current direction
```yaml ```yaml
Skills: Skills:
- setprojectiledirection @ProjectileForward{f=10;rot=45} - setprojectiledirection @ProjectileForward{f=10;rot=45}
``` ```
##
Using an entity targeter aims the projectile at the nearest player within 10 blocks
```yaml
Skills:
- setprojectiledirection @NearestPlayer{r=10}
```
<!--TAGS--> <!--TAGS-->
... ...
......