Is it possible to make iron golems aggressive to the player based on conditions?

Started by swelkinn_n on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 weeks ago
Joined Oct 2020
Points:
854

User statistics:

  • Modifications: 2
  • Forum topics: 44
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 65
Is it possible to make iron golems aggressive to the player based on conditions?

I'm planning on making a variable that essentially is "do villages hate you" , and if it's set to true, iron golems attack you, and if not they don't. This SEEMS impossible since it's modifying a vanilla mob behavior, but I SWEAR it could possibly be done thanks to how iron golem ai appears to be like

Is this realistically possible or would I need custom code or what? I've looked all around and I seemingly can't find anything about this

Active 9 months ago
Joined Oct 2020
Points:
1597

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
Active 9 months ago
Joined Oct 2020
Points:
1597

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
and you Might (probably not)…
Sat, 10/16/2021 - 02:01

and you Might (probably not) be able to do it with the procedure block called Is event target entity targeting for attack

Active 9 months ago
Joined Oct 2020
Points:
1597

User statistics:

  • Modifications: 0
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1874
(I do warn you that you will…
Sat, 10/16/2021 - 02:46

(I do warn you that you will need to change all the plug-in/buckit/etc names on code, prepare for some rages with the console)