Search in sources :

Example 1 with RandomWalkingGoal

use of net.minecraft.entity.ai.goal.RandomWalkingGoal 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 2 with RandomWalkingGoal

use of net.minecraft.entity.ai.goal.RandomWalkingGoal 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)

Example 3 with RandomWalkingGoal

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

the class AntEntity method registerGoals.

@Override
protected void registerGoals() {
    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)

Example 4 with RandomWalkingGoal

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

the class BeaverEntity 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(6, new LookAtGoal(this, PlayerEntity.class, 6.0F));
    this.goalSelector.addGoal(7, new LookRandomlyGoal(this));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.OAK_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.BIRCH_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.SPRUCE_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.JUNGLE_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.DARK_OAK_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.ACACIA_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_OAK_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_BIRCH_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_SPRUCE_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_JUNGLE_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_DARK_OAK_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_ACACIA_LOG, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.OAK_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.BIRCH_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.SPRUCE_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.JUNGLE_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.DARK_OAK_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.ACACIA_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_OAK_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_BIRCH_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_SPRUCE_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_JUNGLE_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_DARK_OAK_WOOD, this, 1.0D, 16));
// this.goalSelector.addGoal(7, new BreakBlockGoal(Blocks.STRIPPED_ACACIA_WOOD, this, 1.0D, 16));
}
Also used : LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) RandomWalkingGoal(net.minecraft.entity.ai.goal.RandomWalkingGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)4 RandomWalkingGoal (net.minecraft.entity.ai.goal.RandomWalkingGoal)4 SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)3 WaterAvoidingRandomWalkingGoal (net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal)3 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1