use of net.minecraft.entity.ai.goal.FollowOwnerGoal in project ChocolateQuestRepoured by TeamChocoQuest.
the class EntityCQRPirateParrot method registerGoals.
@Override
protected void registerGoals() {
// this.aiSit = new SitGoal(this);
// this.tasks.addTask(0, new EntityAIPanic(this, 1.25D));
this.goalSelector.addGoal(0, new SwimGoal(this));
this.goalSelector.addGoal(1, new BossAIPirateParrotThrowPotions(this));
// this.tasks.addTask(2, this.aiSit);
this.goalSelector.addGoal(2, new FollowOwnerGoal(this, 1.0D, 5.0F, 1.0F, true));
this.goalSelector.addGoal(4, new WaterAvoidingRandomFlyingGoal(this, 1.0D));
this.goalSelector.addGoal(5, new BossAIPirateParrotLandOnCaptainsShoulder(this));
this.goalSelector.addGoal(3, new FollowMobGoal(this, 1.0D, 3.0F, 7.0F));
this.targetSelector.addGoal(0, new EntityAIPetNearestAttackTarget<>(this, MobEntity.class, 100, true, false));
}
use of net.minecraft.entity.ai.goal.FollowOwnerGoal in project VariousOddities by Lyinginbedmon.
the class AbstractGoblinWolf method registerGoals.
public void registerGoals() {
super.registerGoals();
this.goalSelector.addGoal(1, new SwimGoal(this));
this.goalSelector.addGoal(2, new SitGoal(this));
this.goalSelector.addGoal(5, new MeleeAttackGoal(this, 1.0D, true));
this.goalSelector.addGoal(5, new EntityAIWorgFollowGoblin(this));
this.goalSelector.addGoal(6, new FollowOwnerGoal(this, 1.0D, 10.0F, 2.0F, false));
this.goalSelector.addGoal(8, new EntityAIWargWander(this, 1.0D));
this.goalSelector.addGoal(9, new EntityAIGoblinWolfBeg(this, 8F));
this.goalSelector.addGoal(10, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(10, new LookRandomlyGoal(this));
if (ConfigVO.MOBS.aiSettings.isOddityAIEnabled(getType())) {
this.goalSelector.addGoal(5, new MeleeAttackGoal(this, 1.0D, true));
this.targetSelector.addGoal(1, new OwnerHurtByTargetGoal(this));
this.targetSelector.addGoal(2, new OwnerHurtTargetGoal(this));
this.targetSelector.addGoal(3, (new HurtByTargetGoal(this, AbstractGoblinWolf.class)).setCallsForHelp());
}
applyGeneticAI();
}
Aggregations