use of net.minecraft.world.entity.ai.goal.WaterAvoidingRandomStrollGoal in project SpongeCommon by SpongePowered.
the class HumanEntity method registerGoals.
@Override
protected void registerGoals() {
// Just some defaults, so they do something by default. Plugins can fully cancel this and make them do whatever
this.goalSelector.addGoal(0, new FloatGoal(this));
this.goalSelector.addGoal(1, new WaterAvoidingRandomStrollGoal(this, 1.0D));
this.goalSelector.addGoal(2, new LookAtPlayerGoal(this, Player.class, 3.0F, 1.0F));
this.goalSelector.addGoal(3, new LookAtPlayerGoal(this, Mob.class, 8.0F));
}
use of net.minecraft.world.entity.ai.goal.WaterAvoidingRandomStrollGoal 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));
}
use of net.minecraft.world.entity.ai.goal.WaterAvoidingRandomStrollGoal in project Tropicraft by Tropicraft.
the class TropiSkellyEntity method registerGoals.
@Override
protected void registerGoals() {
goalSelector.addGoal(0, new FloatGoal(this));
goalSelector.addGoal(2, new MeleeAttackGoal(this, 1.0D, false));
goalSelector.addGoal(5, new MoveTowardsRestrictionGoal(this, 1.0D));
goalSelector.addGoal(7, new WaterAvoidingRandomStrollGoal(this, 1.0D));
goalSelector.addGoal(8, new LookAtPlayerGoal(this, Player.class, 8.0F));
goalSelector.addGoal(8, new RandomLookAroundGoal(this));
targetSelector.addGoal(1, new HurtByTargetGoal(this));
targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, Player.class, true));
// TODO targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, EntityAshen.class, false));
targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, EntityKoaBase.class, false));
}
use of net.minecraft.world.entity.ai.goal.WaterAvoidingRandomStrollGoal in project Tropicraft by Tropicraft.
the class TropiCreeperEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new FloatGoal(this));
this.goalSelector.addGoal(2, new TropiCreeperSwellGoal(this));
this.goalSelector.addGoal(3, new AvoidEntityGoal<>(this, Ocelot.class, 6.0F, 1.0D, 1.2D));
this.goalSelector.addGoal(3, new AvoidEntityGoal<>(this, Cat.class, 6.0F, 1.0D, 1.2D));
this.goalSelector.addGoal(4, new MeleeAttackGoal(this, 1.0D, false));
this.goalSelector.addGoal(5, new WaterAvoidingRandomStrollGoal(this, 0.8D));
this.goalSelector.addGoal(6, new LookAtPlayerGoal(this, Player.class, 8.0F));
this.goalSelector.addGoal(6, new RandomLookAroundGoal(this));
this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, Player.class, true));
this.targetSelector.addGoal(2, new HurtByTargetGoal(this));
}
Aggregations