How do I make a mob give an effect to the player when attacking?

Started by MisterSmeet on

Topic category: Help with Minecraft modding (Java Edition)

Active 9 hours ago
Joined Mar 2024
Points:
481

User statistics:

  • Modifications: 0
  • Forum topics: 66
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 82
How do I make a mob give an effect to the player when attacking?

How do I make a mob give an effect to the player when attacking?

Active 1 week ago
Joined Sep 2024
Points:
148

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 95
you could get the player's…
Thu, 04/17/2025 - 19:06

you could get the player's UUID, then check if the mob is angry at it, if it is, then do your procedure.

 

 

Active 9 hours ago
Joined Mar 2024
Points:
481

User statistics:

  • Modifications: 0
  • Forum topics: 66
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 82
Can you show me how to do…
Fri, 04/18/2025 - 05:45

Can you show me how to do this? I used to know, but then something changed and now it doesn't work that way.