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 modding (Java Edition)

Last seen on 03:37, 11. Mar 2023
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

Last seen on 05:29, 31. Jan 2022
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