Posted July 12, 20178 yr So I've listed a the following tasks and when I test run minecraft, my mob just sits there and only once in a while pursues and attacks the player for like 2 seconds, only attacking a maximum of 2 times and then stops and sits there again. I have extended the custom mob's EntityClass to EntityMob and have declared a damage amount already. Here is the entity class public EntityChimera(World world) { super(world); this.tasks.addTask(0, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true, true)); this.tasks.addTask(1, new EntityAIAttackMelee(this, 1.0D, true)); this.tasks.addTask(2, new EntityAIMoveTowardsRestriction(this, 1.0D)); this.tasks.addTask(4, new EntityAIWander(this, 1.5D)); this.tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 20f)); this.tasks.addTask(6, new EntityAILookIdle(this)); setSize(2.0F, 2.0F); } More than anything, the mob just sits there and does nothing. I've watched a multitude of tutorials, but it doesn't seem like any of them do something different. Maybe I missed it, but I don't think so. I'm trying to get my mob to hunt down the player like all other mobs, but I think I'm missing something EDIT: turns out that when I edited it, I took out the AttackMelee task Edited July 12, 20178 yr by GooberGunter
July 12, 20178 yr Author public EntityChimera(World world) { super(world); this.targetTasks.addTask(0, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true, true)); this.targetTasks.addTask(1, new EntityAIAttackMelee(this, .25D, true)); this.tasks.addTask(2, new EntityAIMoveTowardsRestriction(this, .25D)); this.tasks.addTask(4, new EntityAIWander(this, .25D)); this.tasks.addTask(5, new EntityAIWatchClosest(this, EntityPlayer.class, 20f)); this.tasks.addTask(6, new EntityAILookIdle(this)); setSize(2.0F, 2.0F); } I fixed it but it still just sits there and runs around once in a great while, it still doesn't attack the player
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.