Search in sources :

Example 1 with LookRandomlyGoal

use of net.minecraft.entity.ai.goal.LookRandomlyGoal in project Mekanism by mekanism.

the class EntityRobit method registerGoals.

@Override
protected void registerGoals() {
    super.registerGoals();
    goalSelector.addGoal(1, new RobitAIPickup(this, 1));
    goalSelector.addGoal(2, new RobitAIFollow(this, 1, 4, 2));
    goalSelector.addGoal(3, new LookAtGoal(this, PlayerEntity.class, 8));
    goalSelector.addGoal(3, new LookRandomlyGoal(this));
    goalSelector.addGoal(4, new SwimGoal(this));
}
Also used : LookAtGoal(net.minecraft.entity.ai.goal.LookAtGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) RobitAIFollow(mekanism.common.entity.ai.RobitAIFollow) RobitAIPickup(mekanism.common.entity.ai.RobitAIPickup) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity) ServerPlayerEntity(net.minecraft.entity.player.ServerPlayerEntity)

Example 2 with LookRandomlyGoal

use of net.minecraft.entity.ai.goal.LookRandomlyGoal in project bioplethora by AquexTheSeal.

the class PrimordialRingEntity method registerGoals.

@Override
protected void registerGoals() {
    super.registerGoals();
    this.goalSelector.addGoal(1, new PrimordialRingFollowOwnerGoal(this, 1.5D, 30.0F, 5.0F, true));
    this.goalSelector.addGoal(2, new PrimordialRingRangedAttackGoal(this));
    this.goalSelector.addGoal(5, new LookRandomlyGoal(this));
    this.goalSelector.addGoal(7, new SwimGoal(this));
    this.targetSelector.addGoal(1, new PrimordialRingOwnerHurtByTargetGoal(this));
    this.targetSelector.addGoal(2, new PrimordialRingOwnerHurtTargetGoal(this));
}
Also used : PrimordialRingFollowOwnerGoal(io.github.bioplethora.entity.ai.PrimordialRingFollowOwnerGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) PrimordialRingRangedAttackGoal(io.github.bioplethora.entity.ai.PrimordialRingRangedAttackGoal) PrimordialRingOwnerHurtTargetGoal(io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtTargetGoal) PrimordialRingOwnerHurtByTargetGoal(io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtByTargetGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal)

Example 3 with LookRandomlyGoal

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

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

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

Aggregations

LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)10 SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)6 WaterAvoidingRandomWalkingGoal (net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal)6 LookAtGoal (net.minecraft.entity.ai.goal.LookAtGoal)4 RandomWalkingGoal (net.minecraft.entity.ai.goal.RandomWalkingGoal)4 PlayerEntity (net.minecraft.entity.player.PlayerEntity)4 RoboAttackGoal (io.github.chaosawakens.common.entity.ai.RoboAttackGoal)2 CavernFleignarMeleeGoal (io.github.bioplethora.entity.ai.CavernFleignarMeleeGoal)1 CavernFleignarTargetGoal (io.github.bioplethora.entity.ai.CavernFleignarTargetGoal)1 PrimordialRingFollowOwnerGoal (io.github.bioplethora.entity.ai.PrimordialRingFollowOwnerGoal)1 PrimordialRingOwnerHurtByTargetGoal (io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtByTargetGoal)1 PrimordialRingOwnerHurtTargetGoal (io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtTargetGoal)1 PrimordialRingRangedAttackGoal (io.github.bioplethora.entity.ai.PrimordialRingRangedAttackGoal)1 RobitAIFollow (mekanism.common.entity.ai.RobitAIFollow)1 RobitAIPickup (mekanism.common.entity.ai.RobitAIPickup)1 HurtByTargetGoal (net.minecraft.entity.ai.goal.HurtByTargetGoal)1 PanicGoal (net.minecraft.entity.ai.goal.PanicGoal)1 ServerPlayerEntity (net.minecraft.entity.player.ServerPlayerEntity)1