use of net.minecraft.entity.ai.goal.MoveTowardsRestrictionGoal in project VariousOddities by Lyinginbedmon.
the class AbstractScorpion method registerGoals.
protected void registerGoals() {
this.goalSelector.addGoal(0, new SwimGoal(this));
this.goalSelector.addGoal(5, new MoveTowardsRestrictionGoal(this, 1.0D));
this.goalSelector.addGoal(5, new MeleeAttackGoal(this, 1.0D, true));
this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 6.0F));
this.goalSelector.addGoal(8, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new HurtByTargetGoal(this));
}
use of net.minecraft.entity.ai.goal.MoveTowardsRestrictionGoal in project Kingdom-Keys by Wehavecookies56.
the class AssassinEntity method registerGoals.
@Override
protected void registerGoals() {
// this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.0D, true));
this.goalSelector.addGoal(4, new MeleeAttackGoal(this, 1.0D, true));
this.goalSelector.addGoal(5, new MoveTowardsRestrictionGoal(this, 1.0D));
this.goalSelector.addGoal(7, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(8, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(8, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, VillagerEntity.class, true));
// this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, AnimalEntity.class, true));
this.targetSelector.addGoal(4, new AssassinGoal(this));
}
use of net.minecraft.entity.ai.goal.MoveTowardsRestrictionGoal in project Kingdom-Keys by Wehavecookies56.
the class MegaShadowEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.0D, true));
this.goalSelector.addGoal(5, new MoveTowardsRestrictionGoal(this, 1.0D));
this.goalSelector.addGoal(7, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(8, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(8, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, VillagerEntity.class, true));
// this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, AnimalEntity.class, true));
this.targetSelector.addGoal(4, new ShadowGoal(this));
}
use of net.minecraft.entity.ai.goal.MoveTowardsRestrictionGoal in project Kingdom-Keys by Wehavecookies56.
the class ShadowEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new MeleeAttackGoal(this, 1.0D, true));
this.goalSelector.addGoal(5, new MoveTowardsRestrictionGoal(this, 1.0D));
this.goalSelector.addGoal(7, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(8, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(8, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, VillagerEntity.class, true));
this.targetSelector.addGoal(4, new ShadowGoal(this));
}
use of net.minecraft.entity.ai.goal.MoveTowardsRestrictionGoal in project Kingdom-Keys by Wehavecookies56.
the class BaseElementalMusicalHeartlessEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(0, goalToUse());
this.goalSelector.addGoal(1, new MoveTowardsRestrictionGoal(this, 1.0D));
this.goalSelector.addGoal(2, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(3, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(4, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, VillagerEntity.class, true));
}
Aggregations