How to check if player got hit

Started by Thedoom19 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Jan 2022
Points:
600

User statistics:

  • Modifications: 0
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
How to check if player got hit

I basically want to give the player a potion effect whenever he gets hit

Active 2 months ago
Joined Dec 2022
Points:
361

User statistics:

  • Modifications: 2
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 41
Do "entity attacked" global…
Fri, 09/15/2023 - 15:15

Do "entity attacked" global trigger, then "if entity is (sub) type" player, then add potion ? with level ? for ? ticks to event/target entity.