Started by
InfernoEverflame
on
Topic category: Help with Minecraft modding (Java Edition)
hello To all MCreator developers and Mod creators, i was wondering how you could make a vanilla mob aggressive to a modded mob
Ex: Zombie hostile to Villagers
Literally click the box I circled on the image and scroll down until you find EntityZombie.
Ohh, wait I misunderstood you. Thank you.
It ended up not working, not sure why, I first copied the code but later-on ended up just re-writing it which also didn't work. Is it because I used the Iron Golem in this case?
explain how it "didn't work" in more detail. step by step explanation of the behavior of the golem. show us your procedures
I did exactly what you did but with the golem, but it just gave an error when compiling and stuff, so I couldn't run the game at all.
Maybe we could further this discussion via Discord?
sure
I want witches to attack villagers, tell me what needs to be changed in the code to make it work, I will be very grateful for your help!
DiamondGamin, I want witches to attack villagers, tell me what needs to be changed in the code to make it work, I will be very grateful for your help!
Please help
refer to the pic i posted. change EntityMob in the subtype box to EntityWitch or something.
in the code snippet part, put that line in but change "YourModEntity.CustomEntity.class" to VillagerEntity.class
Thank you so much, you helped a lot!
so do i create a custom element or were do i enter the code
and also do i do it like this
((wolf)entity).targetSelector.addGoal(1, new NearestAttackableTargetGoal((MobEntity)entity, example.CustomEntity.class, false, false));
Hello! I am having a similar problem, but in a reversive way. I want pillagers, vindicators, ravagers and evokers to bot attack player when he has a specific item in his inventory. Tame did not work, and I could not come up with any kind of other ideas to realise that.