use of net.minecraft.entity.ai.goal.SwimGoal in project ChaosAwakens by ChaosAwakens.
the class StinkBugEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new SwimGoal(this));
this.goalSelector.addGoal(5, new RandomWalkingGoal(this, 1.6));
this.goalSelector.addGoal(7, new LookRandomlyGoal(this));
this.goalSelector.addGoal(7, new WaterAvoidingRandomWalkingGoal(this, 1.0));
}
use of net.minecraft.entity.ai.goal.SwimGoal in project LittleMaidModelLoader-Fabric by SistrScarlet.
the class MultiModelEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(0, new SwimGoal(this));
this.goalSelector.add(7, new LookAtEntityGoal(this, PlayerEntity.class, 6.0F));
this.goalSelector.add(8, new LookAroundGoal(this));
}
use of net.minecraft.entity.ai.goal.SwimGoal in project Neutrino by FrostWizard4.
the class RatEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(4, new RatEntity.AttackGoal(this));
this.targetSelector.add(1, new RevengeGoal(this));
this.goalSelector.add(1, new SwimGoal(this));
this.targetSelector.add(2, new RatEntity.TargetGoal<>(this, PlayerEntity.class));
super.initGoals();
}
use of net.minecraft.entity.ai.goal.SwimGoal in project minecolonies by Minecolonies.
the class VisitorCitizen method initTasks.
private void initTasks() {
int priority = 0;
this.goalSelector.addGoal(priority, new SwimGoal(this));
this.goalSelector.addGoal(++priority, new OpenDoorGoal(this, true));
this.goalSelector.addGoal(priority, new EntityAIInteractToggleAble(this, FENCE_TOGGLE, TRAP_TOGGLE, DOOR_TOGGLE));
this.goalSelector.addGoal(++priority, new LookAtWithoutMovingGoal(this, PlayerEntity.class, WATCH_CLOSEST2, 1.0F));
this.goalSelector.addGoal(++priority, new LookAtWithoutMovingGoal(this, EntityCitizen.class, WATCH_CLOSEST2_FAR, WATCH_CLOSEST2_FAR_CHANCE));
this.goalSelector.addGoal(++priority, new LookAtGoal(this, LivingEntity.class, WATCH_CLOSEST));
this.goalSelector.addGoal(++priority, new EntityAIVisitor(this));
}
use of net.minecraft.entity.ai.goal.SwimGoal in project endergetic by team-abnormals.
the class BoofloBabyEntity method registerGoals.
@Override
protected void registerGoals() {
// Makes Booflo when in water at surface to stay and swim like a cow in water
this.goalSelector.addGoal(0, new SwimGoal(this));
this.goalSelector.addGoal(3, new BabyFollowParentGoal(this, 1.2F));
this.goalSelector.addGoal(5, new BoofloBabyEntity.RandomFlyingGoal(this, 1.1D, 20));
}
Aggregations