Summoning particles on an entity when its hit

Started by bandirpvp on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Summoning particles on an entity when its hit

So I am making a custom weapon. Is it possible to summon few particles on an entity when its hit? 
 

My code is as follows: https://imgur.com/a/FdqAqHZ
 

Im not sure why its not working, the potion effect is applied but the particles are nowhere to be seen.