How to make particles spawn when player is hit?

Started by thederqueen on

Topic category: Help with Minecraft modding (Java Edition)

Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make particles spawn when player is hit?
Sat, 11/06/2021 - 02:26 (edited)

I'm have a chestplate that when worn has a 50% chance to negate damage, and when it does it supposed to release particles. The only problem is that particles are always constantly released when the chestplate is worn. The immunity effect works fine, if not completely spaghetti code, just the particles always emit. Any solutions?

Image for yall

Edited by thederqueen on Sat, 11/06/2021 - 02:26
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
why ageable entity? also I…
Sat, 11/06/2021 - 02:23

why ageable entity? also I don't understand the problem so sry abt that