Entity attacked Procedures

Started by Kean2 on Thu, 04/08/2021 - 12:04

Topic category: Help with modding (Java Edition)

Last seen on 05:31, 14. Apr 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Entity attacked Procedures
Thu, 04/08/2021 - 12:04

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 01:23, 15. Apr 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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 05:31, 14. Apr 2021
Joined Sep 2020
Points:

User statistics:

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

Thank you