... | @@ -22,10 +22,19 @@ Examples |
... | @@ -22,10 +22,19 @@ 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.Note that mobs with this skill can still be knocked
|
|
is moved by other sources.
|
|
back by bow's enchantment: ARROW_KNOCKBACK, this can be mitigated by adding ";delay=1" to the skill below.
|
|
|
|
|
|
|
|
|
|
```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.
|
|
|
|
```yaml
|
|
|
|
internal_mobname:
|
|
|
|
Type: Zombie
|
|
|
|
Skills:
|
|
|
|
- velocity{m=set;x=0;y=0;z=0;delay=1} @self ~onDamaged
|
|
|
|
``` |
|
|
|
\ No newline at end of file |