"When Mob Killed With Item" BUG

Started by Kane on Mon, 08/21/2017 - 15:31

Topic category: Bugs and solutions

Last seen on 21:22, 22. Jun 2019
Joined Aug 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
"When Mob Killed With Item" BUG
Mon, 08/21/2017 - 15:31

I made a new item and I setted the event so when I killed I mob with it, I get some random potion effect... or I least... I thought so...

It seems that this event is "broken" since the potion effect is given to the mob when I hit it, in fact, looking at the code, I found out that the event called is hitEntity 

It's pretty cool this thing since I've always had to code a bit if I wanted to get this effect with my tools/items, but this time I needed the "when killed" event D:

Can you fix it? And maybe at this point, add the hitEntity event?