added hitConditions authored by Lxlp's avatar Lxlp
...@@ -49,7 +49,7 @@ Attributes ...@@ -49,7 +49,7 @@ Attributes
| VerticalNoise | vn | The randomness of the projectile in the vertical direction | 0 | | VerticalNoise | vn | The randomness of the projectile in the vertical direction | 0 |
| Bounce | | Should the projectile bounce. Bounce radius depends on the projectile's hitbox. **Premium Only** Mechanic | false | | Bounce | | Should the projectile bounce. Bounce radius depends on the projectile's hitbox. **Premium Only** Mechanic | false |
| BounceVelocityMod | | Every time the projectile bounces, its velocity will be multiplied by this value. **Premium Only** Mechanic | 0.9 | BounceVelocityMod | | Every time the projectile bounces, its velocity will be multiplied by this value. **Premium Only** Mechanic | 0.9
| hitConditions | | A list of conditions that a target must meet in order for the projectile to be able to hit it | |
Special Notes Special Notes
...@@ -113,14 +113,14 @@ Examples ...@@ -113,14 +113,14 @@ Examples
This example shoots a fast-moving ball of ice that damages and slows the This example shoots a fast-moving ball of ice that damages and slows the
first entity it hits: first entity it hits:
**Mob File** **Mob File**
```yaml
Mob: Mob:
Type: SKELETON Type: SKELETON
Skills: Skills:
- skill{s=IceBolt} @target ~onTimer:100 - skill{s=IceBolt} @target ~onTimer:100
```
**Skills File** **Skills File**
```yaml
IceBolt: IceBolt:
Skills: Skills:
- projectile{onTick=IceBolt-Tick;onHit=IceBolt-Hit;v=8;i=1;hR=1;vR=1;hnp=true} - projectile{onTick=IceBolt-Tick;onHit=IceBolt-Hit;v=8;i=1;hR=1;vR=1;hnp=true}
...@@ -130,4 +130,9 @@ first entity it hits: ...@@ -130,4 +130,9 @@ first entity it hits:
IceBolt-Hit: IceBolt-Hit:
Skills: Skills:
- damage{a=10} - damage{a=10}
- potion{type=SLOW;duration=100;lvl=2} - potion{type=SLOW;duration=100;lvl=2}
\ No newline at end of file ```
hitConditions usage example:
```yaml
- projectile{hitConditions=[ - isMonster true - isFrozen false ]}
```
\ No newline at end of file