Search in sources :

Example 1 with RandomFlyConvergeOnTargetGoal

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

the class ArchMakyrEntity 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 RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
    this.goalSelector.add(4, new RangedAttackGoal(this, new FireballAttack(this, true).setProjectileOriginOffset(0.8, 0.4, 0.8).setDamage(config.archmaykr_ranged_damage), 1.0D));
    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 : RandomFlyConvergeOnTargetGoal(mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) FireballAttack(mod.azure.doom.entity.attack.FireballAttack) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) RangedAttackGoal(mod.azure.doom.entity.ai.goal.RangedAttackGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity) ServerPlayerEntity(net.minecraft.server.network.ServerPlayerEntity)

Example 2 with RandomFlyConvergeOnTargetGoal

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

the class PainEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(4, new PainEntity.ShootFireballGoal(this));
    this.goalSelector.add(5, new RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
    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 : RandomFlyConvergeOnTargetGoal(mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 3 with RandomFlyConvergeOnTargetGoal

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

the class Revenant2016Entity method initGoals.

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
protected void initGoals() {
    this.goalSelector.add(5, new RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.targetSelector.add(1, new RevengeGoal(this, new Class[0]).setGroupRevenge());
    this.goalSelector.add(4, new RangedAttackGoal(this, new Revenant2016Entity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.revenant_ranged_damage), 1.25D, true));
    this.targetSelector.add(2, new ActiveTargetGoal(this, PlayerEntity.class, true));
    this.targetSelector.add(3, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Also used : ActiveTargetGoal(net.minecraft.entity.ai.goal.ActiveTargetGoal) RandomFlyConvergeOnTargetGoal(mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAroundGoal(net.minecraft.entity.ai.goal.LookAroundGoal) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) RangedAttackGoal(mod.azure.doom.entity.ai.goal.RangedAttackGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Example 4 with RandomFlyConvergeOnTargetGoal

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

the class PossessedSoldierEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(6, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(6, new LookAroundGoal(this));
    this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
    this.goalSelector.add(4, new RangedStrafeAttackGoal(this, new PossessedSoldierEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.possessed_soldier_ranged_damage), 1.0D, 5, 30, 15, 15F, 1));
    if (this.getVariant() == 2) {
        this.goalSelector.add(5, new RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
    }
    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 : RangedStrafeAttackGoal(mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal) RandomFlyConvergeOnTargetGoal(mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal) 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 5 with RandomFlyConvergeOnTargetGoal

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

the class CacodemonEntity method initGoals.

@Override
protected void initGoals() {
    this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
    this.goalSelector.add(4, new RangedStaticAttackGoal(this, new FireballAttack(this, true).setDamage(10).setProjectileOriginOffset(1.5, 0.3, 1.5).setSound(ModSoundEvents.CACODEMON_AFFECTIONATE_SCREAM, 1.0F, 1.2F / (this.getRandom().nextFloat() * 0.2F + 0.9F)), 60, 20, 30F, 1));
    this.goalSelector.add(5, new RandomFlyConvergeOnTargetGoal(this, 2, 15, 0.5));
    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 : RandomFlyConvergeOnTargetGoal(mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal) RevengeGoal(net.minecraft.entity.ai.goal.RevengeGoal) FireballAttack(mod.azure.doom.entity.attack.FireballAttack) MerchantEntity(net.minecraft.entity.passive.MerchantEntity) LookAtEntityGoal(net.minecraft.entity.ai.goal.LookAtEntityGoal) RangedStaticAttackGoal(mod.azure.doom.entity.ai.goal.RangedStaticAttackGoal) PlayerEntity(net.minecraft.entity.player.PlayerEntity)

Aggregations

RandomFlyConvergeOnTargetGoal (mod.azure.doom.entity.ai.goal.RandomFlyConvergeOnTargetGoal)7 LookAtEntityGoal (net.minecraft.entity.ai.goal.LookAtEntityGoal)7 RevengeGoal (net.minecraft.entity.ai.goal.RevengeGoal)7 MerchantEntity (net.minecraft.entity.passive.MerchantEntity)7 PlayerEntity (net.minecraft.entity.player.PlayerEntity)7 LookAroundGoal (net.minecraft.entity.ai.goal.LookAroundGoal)5 RangedAttackGoal (mod.azure.doom.entity.ai.goal.RangedAttackGoal)3 FireballAttack (mod.azure.doom.entity.attack.FireballAttack)3 RangedStrafeAttackGoal (mod.azure.doom.entity.ai.goal.RangedStrafeAttackGoal)2 WanderAroundFarGoal (net.minecraft.entity.ai.goal.WanderAroundFarGoal)2 RangedStaticAttackGoal (mod.azure.doom.entity.ai.goal.RangedStaticAttackGoal)1 ActiveTargetGoal (net.minecraft.entity.ai.goal.ActiveTargetGoal)1 ServerPlayerEntity (net.minecraft.server.network.ServerPlayerEntity)1