Please help with custom mob AI!!

Started by Ivy__ on Thu, 08/08/2019 - 15:44

Topic category: Help with modding (Java Edition)

Last seen on 18:27, 11. Aug 2019
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Please help with custom mob AI!!
Thu, 08/08/2019 - 15:44

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…
Fri, 08/09/2019 - 09:36

Avoid using AI bases if possible. There are many tutorials and similar topics on this website on which you can search for the tips.

Last seen on 18:27, 11. Aug 2019
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
thanks so much for your…
Sat, 08/10/2019 - 12:29

thanks so much for your reply! are there any particular ones you recommend for issues like mine?

For the specific case of…
Sat, 08/10/2019 - 14:37

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

Last seen on 13:07, 9. Feb 2020
Joined Dec 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I guess what you can try is…
Sat, 08/10/2019 - 18:59

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…
Sun, 08/11/2019 - 09:32

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.