Making an entity apply an effect to what it attacks if it is holding a specific item

Started by pdotudotsdot on

Topic category: Help with MCreator software

Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making an entity apply an effect to what it attacks if it is holding a specific item
Mon, 12/30/2024 - 15:12 (edited)

I am trying to make an item that makes it so that the entity/player holding it in either the main or off hand gives the wither effect to what it attacks. Anybody know how to do that? If it is relevant I also made the item give the holder wither.

Edited by pdotudotsdot on Mon, 12/30/2024 - 15:12
Joined Dec 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I figured it out. Made a new…
Mon, 12/30/2024 - 15:22

I figured it out. Made a new effect that gives the attacked mob wither if the attacker has it and then made the item give it to the holder.