Check Looking Direction Of An Entity

Started by npcsacha on

Topic category: Help with Minecraft modding (Java Edition)

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check Looking Direction Of An Entity

Hi! I am creating a mod that adds a lot of entities, and I want to create one that has a huge shield in front of it.

I created my model and added the mob. It parries projectiles when they arrive and looks in the direction of the source.

Now, I want it to cancel sword damage when it is looking at the player (so it can only be hit from the back), but I can't find the procedure block to do it.

 

Do you know a solution to my problem, please?

Thanks! :)

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks ! It's perfect
Mon, 08/19/2024 - 14:55

Thanks ! It's perfect

Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're welcome 
Mon, 08/19/2024 - 14:57

You're welcome