Search in sources :

Example 1 with PrimordialRingOwnerHurtTargetGoal

use of io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtTargetGoal in project bioplethora by AquexTheSeal.

the class PrimordialRingEntity method registerGoals.

@Override
protected void registerGoals() {
    super.registerGoals();
    this.goalSelector.addGoal(1, new PrimordialRingFollowOwnerGoal(this, 1.5D, 30.0F, 5.0F, true));
    this.goalSelector.addGoal(2, new PrimordialRingRangedAttackGoal(this));
    this.goalSelector.addGoal(5, new LookRandomlyGoal(this));
    this.goalSelector.addGoal(7, new SwimGoal(this));
    this.targetSelector.addGoal(1, new PrimordialRingOwnerHurtByTargetGoal(this));
    this.targetSelector.addGoal(2, new PrimordialRingOwnerHurtTargetGoal(this));
}
Also used : PrimordialRingFollowOwnerGoal(io.github.bioplethora.entity.ai.PrimordialRingFollowOwnerGoal) LookRandomlyGoal(net.minecraft.entity.ai.goal.LookRandomlyGoal) PrimordialRingRangedAttackGoal(io.github.bioplethora.entity.ai.PrimordialRingRangedAttackGoal) PrimordialRingOwnerHurtTargetGoal(io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtTargetGoal) PrimordialRingOwnerHurtByTargetGoal(io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtByTargetGoal) SwimGoal(net.minecraft.entity.ai.goal.SwimGoal)

Aggregations

PrimordialRingFollowOwnerGoal (io.github.bioplethora.entity.ai.PrimordialRingFollowOwnerGoal)1 PrimordialRingOwnerHurtByTargetGoal (io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtByTargetGoal)1 PrimordialRingOwnerHurtTargetGoal (io.github.bioplethora.entity.ai.PrimordialRingOwnerHurtTargetGoal)1 PrimordialRingRangedAttackGoal (io.github.bioplethora.entity.ai.PrimordialRingRangedAttackGoal)1 LookRandomlyGoal (net.minecraft.entity.ai.goal.LookRandomlyGoal)1 SwimGoal (net.minecraft.entity.ai.goal.SwimGoal)1