How to check if player got hit

Started by Thedoom19 on

Topic category: Help with modding (Java Edition)

Last seen on 11:19, 24. Jan 2024
Joined Jan 2022
Points:

User statistics:

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

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

Last seen on 21:37, 17. Feb 2024
Joined Dec 2022
Points:

User statistics:

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