use of net.minecraft.entity.ai.goal.LookAroundGoal in project MCDoom by AzureDoom.
the class ImpStoneEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(8, new LookAroundGoal(this));
this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
this.goalSelector.add(4, new DemonAttackGoal(this, 1.25D, 2));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
}
use of net.minecraft.entity.ai.goal.LookAroundGoal in project MCDoom by AzureDoom.
the class MaykrDroneEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(8, new LookAroundGoal(this));
this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new MaykrDroneEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.maykrdrone_ranged_damage), 1.0D, 5, 30, 15, 15F, 1).setMultiShot(2, 3));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
}
use of net.minecraft.entity.ai.goal.LookAroundGoal in project MCDoom by AzureDoom.
the class MancubusEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(8, new LookAtEntityGoal(this, MerchantEntity.class, 8.0F));
this.goalSelector.add(8, new LookAtEntityGoal(this, IronGolemEntity.class, 8.0F));
this.goalSelector.add(8, new LookAroundGoal(this));
this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
this.initCustomGoals();
}
use of net.minecraft.entity.ai.goal.LookAroundGoal in project MCDoom by AzureDoom.
the class ProwlerEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(0, new SwimGoal(this));
this.goalSelector.add(4, new DemonAttackGoal(this, 1.25D, 2));
this.goalSelector.add(4, new ProwlerEntity.RangedStrafeAttackGoal(this, new FireballAttack(this, false).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.prowler_ranged_damage).setSound(SoundEvents.ENTITY_BLAZE_SHOOT, 1.0F, 1.4F + this.getRandom().nextFloat() * 0.35F), 1.0D, 50, 30, 15, 15F).setMultiShot(3, 2));
this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(8, new LookAroundGoal(this));
this.targetSelector.add(1, new ProwlerEntity.TeleportTowardsPlayerGoal(this, this::shouldAngerAt));
this.targetSelector.add(3, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(3, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
this.targetSelector.add(2, new RevengeGoal(this));
this.targetSelector.add(4, new UniversalAngerGoal<>(this, false));
}
Aggregations