use of team.cqr.cqrepoured.entity.ai.boss.giantspider.BossAISpiderWebshot in project ChocolateQuestRepoured by TeamChocoQuest.
the class EntityCQRGiantSpider method registerGoals.
@Override
protected void registerGoals() {
this.spellHandler = this.createSpellHandler();
this.goalSelector.addGoal(0, new SwimGoal(this));
this.goalSelector.addGoal(1, new BossAISpiderSummonMinions(this));
this.goalSelector.addGoal(2, new BossAISpiderWebshot(this));
this.goalSelector.addGoal(3, new BossAISpiderHook(this));
this.goalSelector.addGoal(12, new BossAISpiderLeapAttack(this, 1.2F));
this.goalSelector.addGoal(14, new EntityAIAttack(this));
this.goalSelector.addGoal(20, new EntityAIFollowAttackTarget(this));
this.goalSelector.addGoal(30, new EntityAIMoveToLeader(this));
this.goalSelector.addGoal(31, new EntityAIFollowPath(this));
this.goalSelector.addGoal(32, new EntityAIMoveToHome(this));
this.goalSelector.addGoal(11, this.spellHandler);
this.spellHandler.addSpell(0, new EntityAIShootPoisonProjectiles(this, 80, 20) {
@Override
protected SoundEvent getStartChargingSound() {
return SoundEvents.SPIDER_HURT;
}
@Override
protected SoundEvent getStartCastingSound() {
return SoundEvents.SPIDER_AMBIENT;
}
});
this.goalSelector.addGoal(0, new EntityAICQRNearestAttackTarget(this));
this.goalSelector.addGoal(1, new EntityAIHurtByTarget(this));
}
Aggregations