public Wolf(Level level) : base(EntityType.Wolf, level) { Width = Length = 0.6; Height = 0.8; IsAngry = false; CollarColor = 14; HealthManager.MaxHealth = 80; HealthManager.ResetHealth(); Speed = 0.3; AttackDamage = 2; TargetBehaviors.Add(new HurtByTargetBehavior(this)); TargetBehaviors.Add(new FindAttackableEntityTargetBehavior <Sheep>(this, 16)); TargetBehaviors.Add(new FindAttackableEntityTargetBehavior <Rabbit>(this, 16)); //TargetBehaviors.Add(new FindAttackableEntityTargetBehavior<Fox>(this, 16)); Behaviors.Add(new SittingBehavior(this)); //Behaviors.Add(new JumpAttackBehavior(this, 1.0)); Behaviors.Add(new MeleeAttackBehavior(this, 1.0, 16)); Behaviors.Add(new OwnerHurtByTargetBehavior(this)); Behaviors.Add(new OwnerHurtTargetBehavior(this)); Behaviors.Add(new FollowOwnerBehavior(this, 20, 1.0)); Behaviors.Add(new WanderBehavior(this, 1.0)); Behaviors.Add(new LookAtPlayerBehavior(this, 8.0)); Behaviors.Add(new RandomLookaroundBehavior(this)); }
public Creeper(Level level) : base(EntityType.Creeper, level) { Width = Length = 0.6; Height = 1.7; NoAi = true; Speed = 0.25f; TargetBehaviors.Add(new FindAttackableTargetBehavior(this, 16)); Behaviors.Add(new CreeperSwellBehavior(this)); Behaviors.Add(new MeleeAttackBehavior(this, 1.0, 16)); Behaviors.Add(new WanderBehavior(this, Speed, 0.8)); Behaviors.Add(new LookAtPlayerBehavior(this, 8.0)); Behaviors.Add(new RandomLookaroundBehavior(this)); }
public Enderman(Level level) : base(EntityType.Enderman, level) { Width = Length = 0.6; Height = 2.9; HealthManager.MaxHealth = 400; HealthManager.ResetHealth(); NoAi = true; Speed = 0.3f; AttackDamage = 7; TargetBehaviors.Add(new FindAttackableTargetBehavior(this, 16)); Behaviors.Add(new MeleeAttackBehavior(this, 1.0, 16)); Behaviors.Add(new WanderBehavior(this, Speed, 1.0)); Behaviors.Add(new LookAtPlayerBehavior(this, 8.0)); Behaviors.Add(new RandomLookaroundBehavior(this)); }
public Spider(Level level) : base((int)EntityType.Spider, level) { Width = Length = 1.4; Height = 0.9; NoAi = true; Speed = 0.3; CanClimb = true; HealthManager.MaxHealth = 160; HealthManager.ResetHealth(); AttackDamage = 3; TargetBehaviors.Add(new HurtByTargetBehavior(this)); TargetBehaviors.Add(new SpiderTargetBehavior(this)); Behaviors.Add(new SpiderAttackBehavior(this, 1.0, 16)); Behaviors.Add(new WanderBehavior(this, 0.8)); Behaviors.Add(new LookAtPlayerBehavior(this, 8.0)); Behaviors.Add(new RandomLookaroundBehavior(this)); }