use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project Hostile-Mobs-and-Girls by Mechalopa.
the class JackFrostEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new SwimGoal(this));
this.goalSelector.addGoal(4, new RangedAttackGoal2(this, 1.25D, 20, 30, 15.0F, true));
this.goalSelector.addGoal(5, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(6, new LookAtGoal(this, PlayerEntity.class, 3.0F, 1.0F));
this.goalSelector.addGoal(7, new LookAtGoal(this, MobEntity.class, 8.0F));
this.targetSelector.addGoal(1, new HurtByTargetGoal(this));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
}
use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project Hostile-Mobs-and-Girls by Mechalopa.
the class NecroticReaperEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new SwimGoal(this));
this.goalSelector.addGoal(4, new MeleeAttackGoal(this, 1.0D, false));
this.goalSelector.addGoal(5, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(6, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(6, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new HurtByTargetGoal(this));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true).setUnseenMemoryTicks(120));
if (ModConfigs.cachedServer.NECROTIC_REAPER_ATTACK_VILLAGERS)
this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, AbstractVillagerEntity.class, false));
this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, IronGolemEntity.class, true));
if (ModConfigs.cachedServer.NECROTIC_REAPER_ATTACK_BABY_TURTLES)
this.targetSelector.addGoal(4, new NearestAttackableTargetGoal<>(this, TurtleEntity.class, 10, true, false, TurtleEntity.BABY_ON_LAND_SELECTOR));
}
use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project Hostile-Mobs-and-Girls by Mechalopa.
the class ScorpionEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new SwimGoal(this));
this.goalSelector.addGoal(4, new MeleeAttackGoal2(this, 1.0D, false, 1.5F));
this.goalSelector.addGoal(5, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(6, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(6, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new HurtByTargetGoal(this));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
}
use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project Hostile-Mobs-and-Girls by Mechalopa.
the class SlimeGirlEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new SwimGoal(this));
this.goalSelector.addGoal(3, new SlimeGirlEntity.LeapGoal(this));
this.goalSelector.addGoal(4, new MeleeAttackGoal(this, 1.0D, false));
this.goalSelector.addGoal(5, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(6, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(6, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new HurtByTargetGoal(this));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, IronGolemEntity.class, true));
}
use of net.minecraft.entity.ai.goal.WaterAvoidingRandomWalkingGoal in project Hostile-Mobs-and-Girls by Mechalopa.
the class KashaEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(1, new SwimGoal(this));
this.goalSelector.addGoal(3, new LeapAtTargetGoal(this, 0.3F));
this.goalSelector.addGoal(4, new OcelotAttackGoal(this));
this.goalSelector.addGoal(5, new WaterAvoidingRandomWalkingGoal(this, 0.8D, 0.0F));
this.goalSelector.addGoal(6, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(6, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new HurtByTargetGoal(this));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, true));
if (ModConfigs.cachedServer.KASHA_ATTACK_CHICKENS)
this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, ChickenEntity.class, false));
if (ModConfigs.cachedServer.KASHA_ATTACK_BABY_HOGLINS)
this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, HoglinEntity.class, 10, false, false, (p) -> {
return p.isBaby();
}));
if (ModConfigs.cachedServer.KASHA_ATTACK_VILLAGERS)
this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, AbstractVillagerEntity.class, false));
this.targetSelector.addGoal(3, new NearestAttackableTargetGoal<>(this, IronGolemEntity.class, true));
if (ModConfigs.cachedServer.KASHA_ATTACK_BABY_TURTLES)
this.targetSelector.addGoal(4, new NearestAttackableTargetGoal<>(this, TurtleEntity.class, 10, false, false, TurtleEntity.BABY_ON_LAND_SELECTOR));
}
Aggregations