Bug Verified

onHit doesn't work

#1304 opened by Unknown 5 years ago

Unknownreported this bug

Hello, I would like to let you know that the onHit option doesn't work, I used this example:

IceShield:
  Cooldown: 0
  Skills:
  - orbital{onTick=IceShield-Tick;onHit=IceShield-Hit;points=20;interval=1;duration=200;charges=1} @self
IceShield-Tick:
  Cooldown: 0
  Skills:
  - effect:particles{p=snowballpoof;amount=20;speed=0;hS=0.2;vS=0.2} @origin
IceShield-Hit:
  Cooldown: 0
  Skills:
  - damage{a=10}
  - potion{type=SLOW;duration=100;lvl=2}

after touching the mob it should take 10 hp but nothing happens with the projectile mechanics, I also tried the same result

Tested on version server 1.16.4 mythicmobs 4.10.1

and server 1.15 mythicmobs 1.15

Unknowncommented

Verified

Unknowncommented

after touching the mob it should take 10 hp but nothing happens

If youre trying to hit a mob with a projectile you need to enable HitNonPlayers.

Unknowncommented

even with this option "hnp=true" projectile and missile mechanics they don't work

Sign in to join the discussion.