On hit procedure not working

Started by Elpis on

Topic category: Troubleshooting, bugs, and solutions

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
On hit procedure not working

I made some very basic stuff, just a sword that applies a potion effect with the "when living entity is hit with tool" trigger, that part works perfectly fine when used by a player.

If I spawn a zombie and give it the same weapon the "when living entity is hit with tool" effect doesn't trigger when the zombie hits the player.

Am I doing something wrong or is this not functioning properly?

You will need to use a…
Wed, 11/02/2022 - 08:06

You will need to use a global trigger for that, the entity attacked event that you can select in the green block every procedure has.

Joined Oct 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thats helpful, seems like a…
Thu, 11/03/2022 - 05:23

Thats helpful, seems like a good work around but it still seems like the on hit part isn't working right