use of com.lying.variousoddities.entity.ai.passive.EntityAIGhastlingFireball in project VariousOddities by Lyinginbedmon.
the class EntityGhastling method registerGoals.
public void registerGoals() {
this.goalSelector.addGoal(2, new SitGoal(this));
this.goalSelector.addGoal(5, new EntityAIGhastlingFireball(this));
this.goalSelector.addGoal(7, new LandOnOwnersShoulderGoal(this));
this.goalSelector.addGoal(8, new EntityAIGhastlingWander(this, 0.1F));
this.goalSelector.addGoal(10, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(10, new LookRandomlyGoal(this));
if (ConfigVO.MOBS.aiSettings.isOddityAIEnabled(VOEntities.GHASTLING)) {
this.targetSelector.addGoal(1, new OwnerHurtByTargetGoal(this));
this.targetSelector.addGoal(2, new OwnerHurtTargetGoal(this));
this.targetSelector.addGoal(3, new HurtByTargetGoal(this));
}
}
Aggregations