Started by
BlueAwesomeDinosaur
on
Topic category: Help with Minecraft modding (Java Edition)
I was making a mob that is an illager that hides within villages as a regular villager. Other than being out of sight and changing his mob type, how can I prevent iron golems from attacking him when he just stands near one?
For some reason I can't find code blocks anymore, so use this website to format it;
https://www.tutorialspoint.com/online_java_formatter.htm
And then change YourDisquiseIllagerThing to your mob.
Where do I put this in? Or how. Sorry, I am not very familiar with custom code other than tweaking some values or doing some simple code with already premade code.
You can just set it to "animal", I think it will be counted as friendly even if it has hostile behaviour.
mcreature stated that using "creature" instead of "mob" cause crash when using attacking AI. any way to solve that?