The mob creation dosn't allow to create complex AIs

Started by dm666 on Sat, 10/19/2019 - 07:32

Topic category: Advanced modding

Last seen on 07:30, 20. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
The mob creation dosn't allow to create complex AIs
Sat, 10/19/2019 - 07:32

I have an entity and i want to make it go from point A to point B, then change a variable, then come back point A and repeat. The AI mob maker doesn't allow me to do it.

Last seen on 20:00, 13. Nov 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Currently this is only…
Sat, 10/19/2019 - 08:59

Currently this is only possible with custom code.

If you have prior coding experience, you could go to your workspace, drag out the grey bar on the left which contains all the code and take a look at Minecraftsource > entity > ai and get a decent understanding as to how AI works in minecraft. You can then manually add it by going to your mobs code and adding the ai to the task list: 

this.tasks.addTask(indexoftask, new nameofAIAction(yourParams));

Something along those lines.