Jump to content

[1.7.2] Own mob AI and movement problem.


SSslimer

Recommended Posts

After updating my mod for 1.7.2 I have problem with my mob. Sometimes when perform tasks(goto Zombie and atack), it stops while going to target and wait for a while.

Second case:sometimes it don't go in straight line to the target

Here is my AIList, rest of AI was removed to repair problem.

 

    public EntityWarior(World par1World, int par2)

    {

        super(par1World);

        this.setSize(0.6F, 1.8F);

        this.getNavigator().setAvoidsWater(true);

             

        this.tasks.addTask(1, new EntityAIAttackOnCollide(this, EntityZombie.class, 1.0D, true));

     

        this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true));

        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityZombie.class, 0, false, true, IMob.mobSelector));   

    }

Link to comment
Share on other sites

I know how to find AI and set it, I was looking to other Entityclasses too, but even I have the same AI and entity settings ,it doesn't work.

 

It's ok, I have noticed that ALL mobs in Eclipse move in the same way.

 

Topic can be closed.

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.