use of net.minecraft.entity.passive.StriderEntity in project Hostile-Mobs-and-Girls by Mechalopa.
the class MeltyMonsterEntity method registerGoals.
@Override
protected void registerGoals() {
this.goalSelector.addGoal(2, new AvoidEntityGoal<>(this, StriderEntity.class, 10.0F, 1.0D, 1.5D));
this.goalSelector.addGoal(3, new MeltyMonsterEntity.MoveToLavaGoal(this, 1.5D));
this.goalSelector.addGoal(5, new RangedAttackGoal(this, 1.0D, 30, 40, 8.0F));
this.goalSelector.addGoal(6, new WaterAvoidingRandomWalkingGoal(this, 1.0D));
this.goalSelector.addGoal(7, new LookAtGoal(this, PlayerEntity.class, 8.0F));
this.goalSelector.addGoal(7, new LookRandomlyGoal(this));
this.targetSelector.addGoal(1, new HurtByTargetGoal(this));
this.targetSelector.addGoal(2, new NearestAttackableTargetGoal<>(this, PlayerEntity.class, 10, true, false, (p) -> {
return !(p.getVehicle() instanceof StriderEntity);
}));
}
Aggregations