use of net.minecraft.world.entity.ai.goal.OcelotAttackGoal in project Tropicraft by Tropicraft.
the class JaguarEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new FloatGoal(this));
this.goalSelector.addGoal(2, new LeapAtTargetGoal(this, 0.5F));
this.goalSelector.addGoal(3, new OcelotAttackGoal(this));
this.goalSelector.addGoal(4, new TemptGoal(this, 1.25, BREEDING_ITEMS.get(), false));
this.goalSelector.addGoal(5, new BreedGoal(this, 0.8));
this.goalSelector.addGoal(6, new FollowParentGoal(this, 1.25));
this.goalSelector.addGoal(7, new WaterAvoidingRandomStrollGoal(this, 0.8, 1e-5f));
this.goalSelector.addGoal(8, new LookAtPlayerGoal(this, Player.class, 10.0F));
this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, WhiteLippedPeccaryEntity.class, 20, true, true, null));
}
Aggregations