Search in sources :

Example 1 with ProjectileAttackGoal

use of net.minecraft.entity.ai.goal.ProjectileAttackGoal in project Paradise-Lost by devs-immortal.

the class AechorPlantEntity method initGoals.

@Override
protected void initGoals() {
    super.initGoals();
    this.goalSelector.add(4, new ProjectileAttackGoal(this, 0.0D, 30, 1.0F));
    this.targetSelector.add(1, new RevengeGoal(this));
    this.targetSelector.add(2, new FollowTargetGoal<>(this, LivingEntity.class, true));
}
Also used : RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) ProjectileAttackGoal(net.minecraft.entity.ai.goal.ProjectileAttackGoal)

Aggregations

ProjectileAttackGoal (net.minecraft.entity.ai.goal.ProjectileAttackGoal)1 RevengeGoal (net.minecraft.entity.ai.goal.RevengeGoal)1