Iron Golem Attacking Custom Village Guards

Started by Crusader Gladiator on

Topic category: Help with modding (Java Edition)

Last seen on 02:00, 25. Jul 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Iron Golem Attacking Custom Village Guards

I need help, Iron golems are attacking the village guards I created to defend the village, any solution to this.

Last seen on 20:37, 26. Jul 2024
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Iron golems attack anything…
Mon, 12/11/2023 - 13:01

Iron golems attack anything that is listed as a mob. You need to make sure your village guards are classified as creatures, or it will treat them as hostile. (This may disable their attack functions, though I believe this has been fixed, I know for a fact ranged attacks still work fine with creatures. If it does disable them, you can still manually set their attack targets using procedures that run on update tick.)