Search in sources :

Example 1 with CavernFleignarTargetGoal

use of io.github.bioplethora.entity.ai.CavernFleignarTargetGoal in project bioplethora by AquexTheSeal.

the class CavernFleignarEntity method registerGoals.

@Override
protected void registerGoals() {
    super.registerGoals();
    this.goalSelector.addGoal(3, new LookAtGoal(this, PlayerEntity.class, 24.0F));
    this.goalSelector.addGoal(2, new CavernFleignarMeleeGoal(this, 20, 0.8, 0.9));
    this.goalSelector.addGoal(5, new LookRandomlyGoal(this));
    this.targetSelector.addGoal(2, new CavernFleignarTargetGoal(this, true));
    this.targetSelector.addGoal(1, new HurtByTargetGoal(this).setAlertOthers(this.getClass()));
}
Also used : CavernFleignarTargetGoal(io.github.bioplethora.entity.ai.CavernFleignarTargetGoal) LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) HurtByTargetGoal(net.minecraft.entity.ai.goal.HurtByTargetGoal) CavernFleignarMeleeGoal(io.github.bioplethora.entity.ai.CavernFleignarMeleeGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

CavernFleignarMeleeGoal (io.github.bioplethora.entity.ai.CavernFleignarMeleeGoal)1 CavernFleignarTargetGoal (io.github.bioplethora.entity.ai.CavernFleignarTargetGoal)1 HurtByTargetGoal (net.minecraft.entity.ai.goal.HurtByTargetGoal)1 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)1 LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1