Entity attacked Procedures

Started by Kean2 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity attacked Procedures

Hi, I want Entity attacked tigger only when player is attacked or get damaged but not when mods are attacked or getting damage how can i do it?

Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
add an if-statement, with…
Thu, 04/08/2021 - 12:51

add an if-statement, with condition checking if the event/target entity (the entity being attacked) is a sub/type of player entity.

procedure (https://i.imgur.com/8v180J7.png)

then put any procedure you want in the "do" section.

Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you
Thu, 04/08/2021 - 20:42

Thank you

Joined Jan 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
thanks you so much :)  
Thu, 01/11/2024 - 10:14

thanks you so much :)