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

Started by swelkinn_n on

Topic category: Help with modding (Java Edition)

Last seen on 23:20, 6. Apr 2024
Joined Oct 2020
Points:

User statistics:

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

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

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

Last seen on 04:28, 26. Jan 2024
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(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)