use of net.minecraft.world.entity.ai.goal.FloatGoal in project Tropicraft by Tropicraft.
the class IguanaEntity 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 HurtByAggressorGoal(this));
targetSelector.addGoal(2, new TargetAggressorGoal(this));
}
use of net.minecraft.world.entity.ai.goal.FloatGoal in project Tropicraft by Tropicraft.
the class TreeFrogEntity method registerGoals.
@Override
public void registerGoals() {
goalSelector.addGoal(0, new FloatGoal(this));
goalSelector.addGoal(1, new RangedAttackGoal(this, 1.0D, 60, 10.0F));
goalSelector.addGoal(2, new WaterAvoidingRandomStrollGoal(this, 1.0D));
}
use of net.minecraft.world.entity.ai.goal.FloatGoal in project Tropicraft by Tropicraft.
the class HummingbirdEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, new FloatGoal(this));
this.goalSelector.addGoal(1, new FlyAwayInPanicGoal());
this.goalSelector.addGoal(2, new TemptGoal(this, 1.25, Ingredient.of(Items.SUGAR), false));
this.goalSelector.addGoal(3, new LookAtPlayerGoal(this, Player.class, 8.0F));
this.goalSelector.addGoal(4, new FeedFromPlantsGoal());
this.goalSelector.addGoal(5, new FlyAroundRandomlyGoal());
}
use of net.minecraft.world.entity.ai.goal.FloatGoal in project Tropicraft by Tropicraft.
the class SpiderMonkeyEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, new FloatGoal(this));
this.goalSelector.addGoal(1, new PanicGoal(this, 2.0));
this.goalSelector.addGoal(2, new BreedGoal(this, 1.0));
this.goalSelector.addGoal(3, new TemptGoal(this, 1.25, BREEDING_ITEMS.get(), false));
this.goalSelector.addGoal(4, new FollowParentGoal(this, 1.25));
this.goalSelector.addGoal(5, new WaterAvoidingRandomStrollGoal(this, 1.0));
this.goalSelector.addGoal(6, new LookAtPlayerGoal(this, Player.class, 6.0F));
this.goalSelector.addGoal(7, new RandomLookAroundGoal(this));
}
use of net.minecraft.world.entity.ai.goal.FloatGoal 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));
}
Aggregations