Search in sources :

Example 1 with EntityAIGhastlingFireball

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));
    }
}
Also used : LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) EntityAIGhastlingWander(com.lying.variousoddities.entity.ai.passive.EntityAIGhastlingWander) SitGoal(net.minecraft.entity.ai.goal.SitGoal) OwnerHurtByTargetGoal(net.minecraft.entity.ai.goal.OwnerHurtByTargetGoal) HurtByTargetGoal(net.minecraft.entity.ai.goal.HurtByTargetGoal) OwnerHurtByTargetGoal(net.minecraft.entity.ai.goal.OwnerHurtByTargetGoal) OwnerHurtTargetGoal(net.minecraft.entity.ai.goal.OwnerHurtTargetGoal) LandOnOwnersShoulderGoal(net.minecraft.entity.ai.goal.LandOnOwnersShoulderGoal) EntityAIGhastlingFireball(com.lying.variousoddities.entity.ai.passive.EntityAIGhastlingFireball) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

EntityAIGhastlingFireball (com.lying.variousoddities.entity.ai.passive.EntityAIGhastlingFireball)1 EntityAIGhastlingWander (com.lying.variousoddities.entity.ai.passive.EntityAIGhastlingWander)1 HurtByTargetGoal (net.minecraft.entity.ai.goal.HurtByTargetGoal)1 LandOnOwnersShoulderGoal (net.minecraft.entity.ai.goal.LandOnOwnersShoulderGoal)1 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)1 LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)1 OwnerHurtByTargetGoal (net.minecraft.entity.ai.goal.OwnerHurtByTargetGoal)1 OwnerHurtTargetGoal (net.minecraft.entity.ai.goal.OwnerHurtTargetGoal)1 SitGoal (net.minecraft.entity.ai.goal.SitGoal)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1