use of net.minecraft.entity.ai.goal.PanicGoal in project ChocolateQuestRepoured by TeamChocoQuest.
the class EntityCQRMountBase method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, new SwimGoal(this));
this.goalSelector.addGoal(1, new PanicGoal(this, 0.9D));
this.goalSelector.addGoal(6, new WaterAvoidingRandomWalkingGoal(this, 0.6D));
this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 6.0F));
this.goalSelector.addGoal(8, new LookRandomlyGoal(this));
}
use of net.minecraft.entity.ai.goal.PanicGoal in project ChaosAwakens by ChaosAwakens.
the class SparkFishEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, new PanicGoal(this, 1.05D));
this.goalSelector.addGoal(0, new LookAtGoal(this, PlayerEntity.class, 3.0F, 3.0F));
this.goalSelector.addGoal(2, new AvoidEntityGoal<>(this, PlayerEntity.class, 4.0F, 0.8D, 0.7D, EntityPredicates.NO_SPECTATORS::test));
this.goalSelector.addGoal(4, new SparkFishEntity.SwimGoal(this));
}
use of net.minecraft.entity.ai.goal.PanicGoal in project ChaosAwakens by ChaosAwakens.
the class AbstractLavaEntity method registerGoals.
protected void registerGoals() {
super.registerGoals();
this.goalSelector.addGoal(0, new PanicGoal(this, 1.25D));
this.goalSelector.addGoal(2, new AvoidEntityGoal<>(this, PlayerEntity.class, 8.0F, 1.6D, 1.4D, EntityPredicates.NO_SPECTATORS::test));
this.goalSelector.addGoal(4, new AbstractLavaEntity.SwimGoal(this));
}
use of net.minecraft.entity.ai.goal.PanicGoal in project ChaosAwakens by ChaosAwakens.
the class GreenFishEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, new PanicGoal(this, 1.05D));
this.goalSelector.addGoal(0, new LookAtGoal(this, PlayerEntity.class, 3.0F, 3.0F));
this.goalSelector.addGoal(2, new AvoidEntityGoal<>(this, PlayerEntity.class, 4.0F, 0.8D, 0.7D, EntityPredicates.NO_SPECTATORS::test));
this.goalSelector.addGoal(4, new GreenFishEntity.SwimGoal(this));
}
Aggregations