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)

Active 2 years ago
Joined Oct 2018
Points:
717

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 14
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

Active 3 years ago
Joined Nov 2019
Points:
872

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 358
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