Help with Entity Procedures

Started by Black Shadow on

Topic category: Help with modding (Java Edition)

Last seen on 18:25, 15. Jan 2023
Joined Nov 2019
Points:

User statistics:

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

Hi !

I would like to make a procedure that checks at each tick (already put in the trigger) if a neutral or hostile creature is targeting/targeting the player and if so give it a knockback in the opposite direction to the player.

Only I can't find blocks to check if the player is targeted or not...

Is there an alternative please?

 

Have a good day !