Bassebombecraft

Bassebombecraft

18.5k Downloads

Add attack goals to AI configuration of armies

Closed this issue ยท 2 comments

commented

The methods:

AiUtils.buildKittenArmyAi()
AiUtils.buildSkeletonArmyAi()
AiUtils.buildCreeperArmyAi()

lacks attack goals. These should be added.

commented

Solution:

Kitten army is already configured with:

selector.addGoal(3, new LeapAtTargetGoal(entity, 0.3F));
selector.addGoal(4, new OcelotAttackGoal(entity));

in AiUtils.buildKittenArmyAi(..).
Implemented as part of issue #491 in commit 525209f.

Creeper army is configured with:

selector.addGoal(3, new RangedBowAttackGoal<>(entity, 1.0D, 20, 15.0F));

in AiUtils.buildSkeletonArmyAi(..).

Creeper army is configured with:

selector.addGoal(3, new MeleeAttackGoal(entity, 1.0D, false));

in AiUtils.buildCreeperArmyAi(..).

commented

CLosed with commit ea95db0.