use of net.minecraft.entity.ai.goal.LookAroundGoal in project MCDoom by AzureDoom.
the class ChaingunnerEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(6, new LookAroundGoal(this));
this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
this.goalSelector.add(4, new RangedAttackGoal(this, new RangedAttack(this).setProjectileOriginOffset(0.8, 0.4, 0.8).setDamage(rangedconfig.chaingun_bullet_damage).setSound(ModSoundEvents.CHAINGUN_SHOOT, 1.0F, 1.0F), 1.1D));
this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
use of net.minecraft.entity.ai.goal.LookAroundGoal in project friends-and-foes by Faboslav.
the class CopperGolemEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(1, new CopperGolemFleeEntityGoal(this, PlayerEntity.class, 16.0F, this.getMovementSpeed(), this.getMovementSpeed(), (entity) -> {
return NOTICEABLE_PLAYER_FILTER.test((PlayerEntity) entity) && this.isWaxed();
}));
this.pressButtonGoal = new CopperGolemPressButtonGoal(this);
this.goalSelector.add(2, this.pressButtonGoal);
this.goalSelector.add(3, new CopperGolemTemptGoal(this, Ingredient.ofItems(Items.HONEYCOMB)));
this.goalSelector.add(4, new CopperGolemSpinHeadGoal(this));
this.goalSelector.add(6, new CopperGolemWanderAroundGoal(this));
this.goalSelector.add(7, new CopperGolemLookAtEntityGoal(this, CopperGolemEntity.class, 6.0F));
this.goalSelector.add(7, new CopperGolemLookAtEntityGoal(this, IronGolemEntity.class, 6.0F));
this.goalSelector.add(8, new CopperGolemLookAtEntityGoal(this, PlayerEntity.class, 6.0F));
this.goalSelector.add(10, new LookAroundGoal(this));
}
use of net.minecraft.entity.ai.goal.LookAroundGoal in project LittleMaidModelLoader-Fabric by SistrScarlet.
the class MultiModelEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(0, new SwimGoal(this));
this.goalSelector.add(7, new LookAtEntityGoal(this, PlayerEntity.class, 6.0F));
this.goalSelector.add(8, new LookAroundGoal(this));
}
use of net.minecraft.entity.ai.goal.LookAroundGoal in project SinoCate by EverlastSino.
the class EscapeLandGoal method initGoals.
protected void initGoals() {
this.goalSelector.add(0, new EscapeLandGoal(this, 0.1D));
this.goalSelector.add(0, new EscapeDangerGoal(this, 0.1D));
this.goalSelector.add(1, new LookAroundGoal(this));
this.goalSelector.add(1, new WanderAroundGoal(this, 0.1D));
}
use of net.minecraft.entity.ai.goal.LookAroundGoal in project MCDoom by AzureDoom.
the class FireBaronEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(5, new WanderAroundFarGoal(this, 1.0D));
this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(6, new LookAroundGoal(this));
this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
this.goalSelector.add(4, new RangedAttackGoal(this, new FireBaronEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.4, 0.8).setDamage(config.baron_ranged_damage), 1.1D));
this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Aggregations