I want so then entity dies, Player gets a wither effect, but I don't know how to do it.

Started by Dusttale Morshu on

Topic category: Help with modding (Java Edition)

Last seen on 12:20, 21. Apr 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want so then entity dies, Player gets a wither effect, but I don't know how to do it.

I'm trying everything, but it's not working... Can someone tell me how fix it?

Last seen on 11:02, 26. Apr 2024
Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
it depends on if you want…
Sun, 02/11/2024 - 09:13

it depends on if you want the entity to give the player wither when the player kills it or just whenever an entity dies if you want the first you can do this and use a hidden advancement of course you can probably just remove the condition for if you want it to affect every mob and make sure you make it give the effect to the source entity which is whatever kills the mob ie the player if you want it to specify the mob that was killed make sure to make it check the "event/target entity" and check if it belongs to that entity and if you want multiple entities that do this you can make a tag that includes all eligible entities hope this helps

Last seen on 12:20, 21. Apr 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks
Fri, 02/16/2024 - 10:05

Thanks