Entity attacked Procedures

Started by Kean2 on

Topic category: Help with modding (Java Edition)

Last seen on 23:26, 30. Apr 2021
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?

Last seen on 08:14, 28. Nov 2023
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.

Last seen on 23:26, 30. Apr 2021
Joined Sep 2020
Points:

User statistics:

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

Thank you

Last seen on 18:54, 28. Mar 2024
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 :)