Search in sources :

Example 31 with WanderAroundFarGoal

use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.

the class ImpStoneEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(8, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new DemonAttackGoal(this, 1.25D, 2));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
    this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
}
Also used : RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) DemonAttackGoal(mod.azure.doom.entity.ai.goal.DemonAttackGoal) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 32 with WanderAroundFarGoal

use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.

the class MaykrDroneEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(8, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new MaykrDroneEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.maykrdrone_ranged_damage), 1.0D, 5, 30, 15, 15F, 1).setMultiShot(2, 3));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
    this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
}
Also used : RangedStrafeAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 33 with WanderAroundFarGoal

use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.

the class MancubusEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(8, new LookAtEntityGoal(this, MerchantEntity.class, 8.0F));
    this.goalSelector.add(8, new LookAtEntityGoal(this, IronGolemEntity.class, 8.0F));
    this.goalSelector.add(8, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.initCustomGoals();
}
Also used : MerchantEntity(net.minecraft.entity.passive.MerchantEntity) WanderAroundFarGoal(net.minecraft.entity.ai.goal.WanderAroundFarGoal) IronGolemEntity(net.minecraft.entity.passive.IronGolemEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

LookAtEntityGoal (net.minecraft.entity.ai.goal.LookAtEntityGoal)33 WanderAroundFarGoal (net.minecraft.entity.ai.goal.WanderAroundFarGoal)33 MerchantEntity (net.minecraft.entity.passive.MerchantEntity)33 PlayerEntity (net.minecraft.entity.player.PlayerEntity)33 LookAroundGoal (net.minecraft.entity.ai.goal.LookAroundGoal)32 RevengeGoal (net.minecraft.entity.ai.goal.RevengeGoal)31 DemonAttackGoal (mod.azure.doom.entity.ai.goal.DemonAttackGoal)9 RangedAttackGoal (mod.azure.doom.entity.ai.goal.RangedAttackGoal)9 RangedStrafeAttackGoal (mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal)8 AbstractRangedAttack (mod.azure.doom.entity.attack.AbstractRangedAttack)4 FireballAttack (mod.azure.doom.entity.attack.FireballAttack)3 ActiveTargetGoal (net.minecraft.entity.ai.goal.ActiveTargetGoal)3 ServerPlayerEntity (net.minecraft.server.network.ServerPlayerEntity)3 RandomFlyConvergeOnTargetGoal (mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal)2 IronGolemEntity (net.minecraft.entity.passive.IronGolemEntity)2 IconAttackGoal (mod.azure.doom.entity.ai.goal.IconAttackGoal)1 RangedStrafeGladiatorAttackGoal (mod.azure.doom.entity.ai.goal.RangedStrafeGladiatorAttackGoal)1 ThrowItemGoal (mod.azure.doom.entity.ai.goal.ThrowItemGoal)1 LivingEntity (net.minecraft.entity.LivingEntity)1