Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EntityMrSkelly extends EntitySkeleton
- {
- protected float maxDistanceForPlayer;
- public EntityMrSkelly (World worldin)
- {
- super(worldin);
- this.setSize(1F, 2F);
- this.isImmuneToFire = true;
- this.maxDistanceForPlayer = 10.0F;
- }
- protected void applyEntityAttributes()
- {
- super.applyEntityAttributes();
- this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(1.0D);
- this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(20);
- this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(100.0D);
- this.getEntityAttribute(SharedMonsterAttributes.KNOCKBACK_RESISTANCE).setBaseValue(1.0);
- }
- protected void entityInit()
- {
- super.entityInit();
- }
- protected void initEntityAI()
- {
- this.tasks.addTask(1, new EntityAISwimming(this));
- this.tasks.addTask(2, new EntityAIWanderAvoidWater(this, 0.5D));
- }
- @Override
- public void onUpdate()
- {
- super.onUpdate();
- }
- }
Add Comment
Please, Sign In to add comment