use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.
the class FireBaronEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(5, new WanderAroundFarGoal(this, 1.0D));
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 RangedAttackGoal(this, new FireBaronEntity.FireballAttack(this).setProjectileOriginOffset(0.8, 0.4, 0.8).setDamage(config.baron_ranged_damage), 1.1D));
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));
}
use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.
the class MarauderEntity 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 RangedAttackGoal(this, new RangedAttack(this).setProjectileOriginOffset(0.8, 0.8, 0.8).setDamage(config.marauder_ssgdamage).setSound(ModSoundEvents.SUPER_SHOTGUN_SHOOT, 1.0F, 1.4F + this.getRandom().nextFloat() * 0.35F), 1.1D));
this.targetSelector.add(1, new MarauderEntity.TeleportTowardsPlayerGoal(this, this::shouldAngerAt));
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());
}
use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.
the class SummonerEntity 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 SummonerEntity.AttackGoal(this));
this.targetSelector.add(1, new SummonerEntity.TeleportTowardsPlayerGoal(this, this::shouldAngerAt));
this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.
the class SpectreEntity method initGoals.
@Override
protected void initGoals() {
this.goalSelector.add(8, new LookAtEntityGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.add(5, new WanderAroundFarGoal(this, 0.8D));
this.goalSelector.add(8, new LookAroundGoal(this));
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());
}
use of net.minecraft.entity.ai.goal.WanderAroundFarGoal in project MCDoom by AzureDoom.
the class ArchvileEntity 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(7, new ArchvileEntity.AttackGoal(this));
this.targetSelector.add(1, new ArchvileEntity.TeleportTowardsPlayerGoal(this, this::shouldAngerAt));
this.targetSelector.add(2, new RevengeGoal(this).setGroupRevenge());
this.targetSelector.add(2, new ActiveTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.add(2, new ActiveTargetGoal<>(this, MerchantEntity.class, true));
}
Aggregations