Search in sources :

Example 1 with WaterAvoidingRandomWalkingGoal

use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project ChocolateQuestRepoured by TeamChocoQuest.

the class EntityCQRMountBase method registerGoals.

@Override
protected void registerGoals() {
    this.goalSelector.addGoal(0, new SwimGoal(this));
    this.goalSelector.addGoal(1, new PanicGoal(this, 0.9D));
    this.goalSelector.addGoal(6, new WaterAvoidingRandomWalkingGoal(this, 0.6D));
    this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 6.0F));
    this.goalSelector.addGoal(8, new LookRandomlyGoal(this));
}
Also used : LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) PanicGoal(net.minecraft.entity.ai.goal.PanicGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 2 with WaterAvoidingRandomWalkingGoal

use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal 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));
}
Also used : LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) RandomWalkingGoal(net.minecraft.entity.ai.goal.RandomWalkingGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal)

Example 3 with WaterAvoidingRandomWalkingGoal

use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project ChaosAwakens by ChaosAwakens.

the class RoboSniperEntity method registerGoals.

@Override
protected void registerGoals() {
    super.registerGoals();
    this.goalSelector.addGoal(3, new RoboAttackGoal(this, 11, 7.0F, 0.75F));
    this.goalSelector.addGoal(5, new WaterAvoidingRandomWalkingGoal(this, 1.6));
    this.goalSelector.addGoal(7, new LookRandomlyGoal(this));
}
Also used : RoboAttackGoal(io.github.chaosawakens.common.entity.ai.RoboAttackGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal)

Example 4 with WaterAvoidingRandomWalkingGoal

use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project ChaosAwakens by ChaosAwakens.

the class RoboWarriorEntity method registerGoals.

@Override
protected void registerGoals() {
    super.registerGoals();
    this.goalSelector.addGoal(2, new RoboAttackGoal(this, 13, 15.0F, 0.7F));
    this.goalSelector.addGoal(4, new WaterAvoidingRandomWalkingGoal(this, 1.6));
    this.goalSelector.addGoal(5, new LookRandomlyGoal(this));
}
Also used : RoboAttackGoal(io.github.chaosawakens.common.entity.ai.RoboAttackGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal)

Example 5 with WaterAvoidingRandomWalkingGoal

use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project ChaosAwakens by ChaosAwakens.

the class RubyBugEntity 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.0D));
}
Also used : LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) WaterAvoidingRandomWalkingGoal(net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal) RandomWalkingGoal(net.minecraft.entity.ai.goal.RandomWalkingGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal)

Aggregations

LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)6 WaterAvoidingRandomWalkingGoal (net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal)6 RandomWalkingGoal (net.minecraft.entity.ai.goal.RandomWalkingGoal)3 SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)3 RoboAttackGoal (io.github.chaosawakens.common.entity.ai.RoboAttackGoal)2 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)1 PanicGoal (net.minecraft.entity.ai.goal.PanicGoal)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1