Started by
swelkinn_n
on
Topic category: Help with Minecraft modding (Java Edition)
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
Solved - Forcing Iron Golems to Attack Players | Bukkit Forums
it's with code though
Tutorial - How to Customize the Behaviour of a Mob or Entity | Bukkit Forums
this is the code they give, just customize it for forge.
package aurum.survival; import java.lang.reflect.Field;import java.util.Li - Pastebin.com
and you Might (probably not) be able to do it with the procedure block called Is event target entity targeting for attack
(or: Angry Iron Golems : MinecraftCommands (reddit.com)) (Code is way better though)
(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)