How do you make it so that you can only damage a entity when you hit its back?

Started by Jromo2 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Oct 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you make it so that you can only damage a entity when you hit its back?

i want to make a mob boss that can only be damaged from its back but i don't know how. pls help

Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
check the mob's yaw, see if…
Sun, 01/24/2021 - 05:43

check the mob's yaw, see if its around -+ 45 degrees your player's yaw