use of net.minecraft.entity.ai.goal.UniversalAngerGoal in project Biome-Makeover by Lemonszz.
the class StoneGolemEntity method initGoals.
@Override
protected void initGoals() {
super.initGoals();
this.goalSelector.add(1, new BetterCrossbowAttackGoal<>(this, 1.0D, 24.0F));
this.goalSelector.add(2, new LookAtEntityGoal(this, PlayerEntity.class, 5.0F, 1.0F));
this.goalSelector.add(3, new LookAtEntityGoal(this, MobEntity.class, 5.0F));
this.goalSelector.add(4, new LookAtEntityGoal(this, StoneGolemEntity.class, 10.0F));
this.goalSelector.add(5, new LookAtEntityGoal(this, GolemEntity.class, 5.0F));
this.targetSelector.add(1, new RevengeGoal(this));
this.targetSelector.add(2, new FollowTargetGoal<>(this, MerchantEntity.class, false));
this.targetSelector.add(3, new FollowTargetGoal<>(this, StoneGolemEntity.class, false));
this.targetSelector.add(4, new FollowTargetGoal<>(this, IronGolemEntity.class, false));
this.targetSelector.add(5, new FollowTargetGoal<>(this, PlayerEntity.class, 10, true, false, this::shouldAngerAt));
this.targetSelector.add(6, new FollowTargetGoal<>(this, MobEntity.class, 5, false, false, (livingEntity) -> {
return livingEntity instanceof Monster && !(livingEntity instanceof CreeperEntity);
}));
this.targetSelector.add(4, new UniversalAngerGoal<>(this, false));
}
Aggregations