Apply effect if entity is attacked with swords

Started by souja boy on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Apply effect if entity is attacked with swords

Hello, i'm trying to make a effect appear when any entity is hit with any sword, is there any way i can do this?

Joined Jun 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If your sword is a tool, go…
Mon, 06/23/2025 - 22:06

If your sword is a tool, go to triggers, find when living entity is hit with tool trigger, and use give [event/target entity] effect [insert] for [insert].

https://cdn.corenexis.com/view/?img=d/ju23/Yy4701.png

https://cdn.corenexis.com/view/?img=d/ju23/tz8mpa.png

this should work