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 13 hours ago
Joined Mar 2024
Points:
428

User statistics:

  • Modifications: 0
  • Forum topics: 64
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 75
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 5 days ago
Joined Sep 2024
Points:
117

User statistics:

  • Modifications: 3
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 89
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 13 hours ago
Joined Mar 2024
Points:
428

User statistics:

  • Modifications: 0
  • Forum topics: 64
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 75
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.