Started by
Ivy__
on
Topic category: Help with Minecraft modding (Java Edition)
this is the first time I've ever dabbled in modding or mob making so i apologize if things need to be explained to me like a child! I have made a custom mob completely from scratch and though importing the model and texture has been a struggle its managed to be a success. however, when filling out the AI parameters in the 'mob' mod element, I want the mob to have AI exactly live a wolf so I chose wolf as an AI base but it hasn't worked, i can only tame it but it doesn't follow me or sit. I've read some solutions but i can't make much sense of it since I'm a beginner. Please help!
Avoid using AI bases if possible. There are many tutorials and similar topics on this website on which you can search for the tips.
thanks so much for your reply! are there any particular ones you recommend for issues like mine?
For the specific case of making a mob follow you like a wolf, you would need to wait for this feature to be implemented (which is planned on our issue tracker), but for more general tutorials on mobs, this page (especially the videos on the bottom) might help: https://mcreator.net/wiki/how-make-mob
I guess what you can try is adding in the "FollowOwner" AI in "InitEntityAI()" like this:
this.tasks.addTask(6, new EntityAIFollowOwner(this, 1.0D, 10.0F, 2.0F));
I think the EntityAIFollowOwner requires EntityAnimal which is not always the case with custom mobs, but I might be wrong as I did not check.