Multiple Bug report
Bug 1) Creating 2 tick projectile mechanic rapid shoot doing 2 damage. One is onhit and other is bulletType=ARROW. Other bulletTypes doesn't have this bug. bulletType=ARROW it shouldn't do damage but it does. The same applies to the bug Shoot mechanics to if i set damage in onhit. This bug happens when you are within 3-4 blocks of the target. Video of the bug: https://www.youtube.com/watch?v=A97UE_imoes
What you need to be able to test quickly:
(The standard NoDamageTicks has the same bug. When the NoDamageTicks number is low, it is easier to see the bug.)
Mob:
test_1:
Type: SKELETON
Health: 10000
Damage: 1
AIGoalSelectors:
- clear
AITargetSelectors:
- clear
Options:
PreventSunburn: true
Silent: true
Despawn: true
FollowRange: 20
MovementSpeed: 0.001
PreventOtherDrops: true
PreventItemPickup: true
KnockbackResistance: 1.0
PreventMobKillDrops: true
NoDamageTicks: 1
Skills:
- message{m="Damaged by <skill.var.damage-type> for <skill.var.damage-amount>"} @PIR{r=50} ~onDamaged
Skills:
rapidshoot_test:
Skills:
- skill{s=IceBolt}
- skill{s=IceBolt;delay=2}
- skill{s=IceBolt;delay=4}
- skill{s=IceBolt;delay=6}
- skill{s=IceBolt;delay=8}
- skill{s=IceBolt;delay=10}
- skill{s=IceBolt;delay=12}
IceBolt:
Skills:
- projectile{bulletType=ARROW;onTick=IceBolt-Tick;onHit=IceBolt-Hit;v=40;i=1;hR=1;vR=1;hnp=true} @TargetLocation
IceBolt-Tick:
Skills:
#- effect:particles{p=snowballpoof;amount=20;speed=0;hS=0.2;vS=0.2} @origin
IceBolt-Hit:
Skills:
- damage{a=50} @target
Bug 2) Options version of NoDamageTicks working fine but Mechanic version of setnodamageticks doesn't work.