Search in sources :

Example 1 with RangedStrafeGladiatorAttackGoal

use of mod.azure.doom.entity.ai.goal.RangedStrafeGladiatorAttackGoal in project MCDoom by AzureDoom.

the class GladiatorEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(4, new RangedStrafeGladiatorAttackGoal(this, new FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.gladiator_ranged_damage).setSound(SoundEvents.ITEM_FIRECHARGE_USE, 1.0F, 1.4F + this.getRandom().nextFloat() * 0.35F)));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 1.0D));
    this.goalSelector.add(6, new LookAtEntityGoal(this, LivingEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
    this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Also used : LivingEntity(net.minecraft.entity.LivingEntity) 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) RangedStrafeGladiatorAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeGladiatorAttackGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity) ServerPlayerEntity(net.minecraft.server.network.ServerPlayerEntity)

Aggregations

RangedStrafeGladiatorAttackGoal (mod.azure.doom.entity.ai.goal.RangedStrafeGladiatorAttackGoal)1 LivingEntity (net.minecraft.entity.LivingEntity)1 LookAroundGoal (net.minecraft.entity.ai.goal.LookAroundGoal)1 LookAtEntityGoal (net.minecraft.entity.ai.goal.LookAtEntityGoal)1 RevengeGoal (net.minecraft.entity.ai.goal.RevengeGoal)1 WanderAroundFarGoal (net.minecraft.entity.ai.goal.WanderAroundFarGoal)1 MerchantEntity (net.minecraft.entity.passive.MerchantEntity)1 PlayerEntity (net.minecraft.entity.player.PlayerEntity)1 ServerPlayerEntity (net.minecraft.server.network.ServerPlayerEntity)1