use of net.tropicraft.core.common.entity.ai.ashen.AIAshenShootDart in project Tropicraft by Tropicraft.
the class AshenEntity method registerGoals.
@Override
protected void registerGoals() {
goalSelector.addGoal(1, new FloatGoal(this));
goalSelector.addGoal(2, new AIAshenChaseAndPickupLostMask(this, 1.0D));
goalSelector.addGoal(3, new AIAshenShootDart(this));
goalSelector.addGoal(4, new RandomStrollGoal(this, 1.0D));
goalSelector.addGoal(5, new EntityAIMeleeAndRangedAttack(this, 1.0D, 20 * 2, 20 * 10, 5F));
goalSelector.addGoal(6, new LookAtPlayerGoal(this, Player.class, 8.0F));
goalSelector.addGoal(7, new RandomLookAroundGoal(this));
targetSelector.addGoal(1, new HurtByTargetGoal(this));
// TODO: Change predicate in last parameter below?
targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, Player.class, true));
targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, EntityKoaBase.class, true));
}
Aggregations