-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
This makes zero sense. This is chunk of code achieves nothing. It might as well not be there. You are lacking absolute basic understanding of overriding methods. You need to learn it before you can continue here. -
public class EntityBarbarian extends EntityMob { public EntityBarbarian(World worldIn) { super(worldIn); this.setSize(0.6F, 1.95F); this.setHealth(50); } @Override protected void initEntityAI() { super.initEntityAI(); this.tasks.addTask(0, new EntityAISwimming(this)); this.tasks.addTask(4, new EntityAIAttackMelee(this, 1.0D, false)); this.tasks.addTask(8, new EntityAIWander(this, 0.6D)); this.tasks.addTask(9, new EntityAIWatchClosest(this, EntityPlayer.class, 3.0F, 1.0F)); this.tasks.addTask(10, new EntityAIWatchClosest(this, EntityLiving.class, 8.0F)); this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, true, new Class[] {EntityVindicator.class})); this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityPlayer.class, true)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityVillager.class, true)); this.targetTasks.addTask(3, new EntityAINearestAttackableTarget(this, EntityIronGolem.class, true)); } @Override protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(6.0D); this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.23000000417232513D); this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(48.0D); } @Override public float getEyeHeight() { return 1.6F; } @Override public IEntityLivingData onInitialSpawn(DifficultyInstance difficulty, IEntityLivingData livingdata) { return super.onInitialSpawn(difficulty, livingdata); } @Override public void setItemStackToSlot(EntityEquipmentSlot slotIn, ItemStack stack) { super.setItemStackToSlot(slotIn.MAINHAND, new ItemStack (ModItems.BARBARIAN_SWORD)); } }
-
By sondreooos · Posted
debug-1.log debug-2.log debug-3.log.gz debug-4.log.gz debug-5.log.gz debug.log
-
Topics
-
Who's Online (See full list)