On hit procedure not working

Started by Elpis on

Topic category: Troubleshooting, bugs, and solutions

Active 2 years ago
Joined Oct 2022
Points:
337

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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?

Active 4 months ago
Joined Jul 2022
Points:
1898

User statistics:

  • Modifications: 2
  • Forum topics: 12
  • Wiki pages: 0
  • MCreator plugins: 19
  • Comments: 1729
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.

Active 2 years ago
Joined Oct 2022
Points:
337

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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