Jump to content

Mob's AI not work


DoorCloser

Recommended Posts

Problems:

1.For one of my mobs, i'm not using any AITasks, all AI is inside of the actual mob. So his AI is Disabled. It works perfect in eclipse though, but when i reobfustate, recompile and stuff, and putting my mod into the actual minecraft, this mob's AI doesnt work. When i put AI is Enabled, mob's ai stop working too.

2.I think i need to use tasks, but i dont know how to transfer all AI i've got into the task.

 

Could somebody help me with something?

Link to comment
Share on other sites

Use 

package fieldgeneral.example.entity.monster;

public EntityYourMob(World world) {
        super(world);
            this.tasks.addTask(TASKID, new AI(this));
        }

I would go in order and have taskid be 1, 2, 3, and soforth

Replace AI with your AI Class

All of this would go in the EntityYOURMOB class

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.