mirror of https://github.com/cabaletta/baritone
add a minimum Y level.
Signed-off-by: Sam Corbett <sam@corbettchocolates.com>
This commit is contained in:
parent
5a5d11922f
commit
bfb530e02b
|
@ -738,6 +738,11 @@ public final class Settings {
|
|||
*/
|
||||
public final Setting<Integer> maxCachedWorldScanCount = new Setting<>(10);
|
||||
|
||||
/**
|
||||
* Sets the minimum y level whilst mining - set to 0 to turn off.
|
||||
*/
|
||||
public final Setting<Integer> minYLevelWhileMining = new Setting<>(0);
|
||||
|
||||
/**
|
||||
* This will only allow baritone to mine exposed ores, can be used to stop ore obfuscators on servers that use them.
|
||||
*/
|
||||
|
|
|
@ -417,6 +417,8 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
|
|||
}
|
||||
})
|
||||
|
||||
.filter(pos -> pos.getY() > Baritone.settings().minYLevelWhileMining.value)
|
||||
|
||||
.filter(pos -> !blacklist.contains(pos))
|
||||
|
||||
.sorted(Comparator.comparingDouble(ctx.getBaritone().getPlayerContext().player()::getDistanceSq))
|
||||
|
|
Loading…
Reference in New Issue