Search in sources :

Example 1 with BreedGoal

use of net.minecraft.entity.ai.goal.BreedGoal in project endergetic by team-abnormals.

the class PuffBugEntity method registerGoals.

@Override
protected void registerGoals() {
    this.goalSelector.addGoal(0, new PuffBugPullOutGoal(this));
    this.goalSelector.addGoal(0, new PuffBugRestOnHiveGoal(this));
    this.goalSelector.addGoal(1, new PuffBugAttachToHiveGoal(this));
    this.goalSelector.addGoal(1, new PuffBugRotateToFireGoal(this));
    this.goalSelector.addGoal(2, new PuffBugCreateItemGoal(this));
    this.goalSelector.addGoal(2, new PuffBugAttackGoal(this));
    this.goalSelector.addGoal(3, new PuffBugTeleportToRestGoal(this));
    this.goalSelector.addGoal(4, new PuffBugPollinateGoal(this));
    this.goalSelector.addGoal(5, new PuffBugDescentGoal(this));
    this.goalSelector.addGoal(6, new PuffBugTeleportToBudGoal(this));
    this.goalSelector.addGoal(7, new BreedGoal(this, 1.0F));
    this.goalSelector.addGoal(8, new FollowParentGoal(this, 1.5F));
    this.goalSelector.addGoal(9, new PuffBugBoostGoal(this));
    this.targetSelector.addGoal(2, new PuffBugTargetAggressorGoal(this));
}
Also used : FollowParentGoal(net.minecraft.entity.ai.goal.FollowParentGoal) BreedGoal(net.minecraft.entity.ai.goal.BreedGoal)

Aggregations

BreedGoal (net.minecraft.entity.ai.goal.BreedGoal)1 FollowParentGoal (net.minecraft.entity.ai.goal.FollowParentGoal)1