Jump to content

LaurieTruck652

Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

LaurieTruck652's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hi, I'm currently making a looter mob to spawn three different mob skins, but i don't know how to do it. I'm using a 1.5.2 forge src and using eclipse to code my mod. here is my entity looter class. If anyone can use this code to fix it and my mob spawn three skins that would be great. My entity class: package WOTWmod.client; import net.minecraft.entity.Entity; import net.minecraft.entity.ai.EntityAIAttackOnCollide; import net.minecraft.entity.ai.EntityAIHurtByTarget; import net.minecraft.entity.ai.EntityAILookIdle; import net.minecraft.entity.ai.EntityAINearestAttackableTarget; import net.minecraft.entity.ai.EntityAISwimming; import net.minecraft.entity.ai.EntityAIWander; import net.minecraft.entity.ai.EntityAIWatchClosest; import net.minecraft.entity.monster.EntityMob; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; public class EntityLooter extends EntityMob { public EntityLooter(World par1World) { super(par1World); this.moveSpeed = 0.3F; this.texture = "/mob/looter.png"; this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityArtilleryMan.class, this.moveSpeed, false)); this.tasks.addTask(2, new EntityAIAttackOnCollide(this, EntityPlayer.class, this.moveSpeed, false)); this.tasks.addTask(6, new EntityAIWander(this, this.moveSpeed)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityArtilleryMan.class, 16.0F, 0, true)); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, 16.0F, 0, true)); this.tasks.addTask(7, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true)); this.tasks.addTask(7, new EntityAILookIdle(this)); } protected boolean canDespawn() { return false; } protected boolean isAIEnabled() { return true; } public boolean getCanSpawnHere() { return this.worldObj.difficultySetting > 0 && this.isValidLightLevel() && super.getCanSpawnHere(); } @Override public int getMaxHealth() { return 45; } }
×
×
  • Create New...

Important Information

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