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

Started by Jromo2 on Sun, 01/24/2021 - 04:27

Topic category: Help with modding (Java Edition)

Last seen on 06:31, 28. Feb 2021
Joined Oct 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do you make it so that you can only damage a entity when you hit its back?
Sun, 01/24/2021 - 04:27

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 07:55, 5. Mar 2021
Joined Nov 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • 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