mirror of https://github.com/cabaletta/baritone
✨ Add maxYLevelWhileMining setting
This commit is contained in:
parent
5f2eadbfa6
commit
e4cd35ac33
|
@ -853,6 +853,11 @@ public final class Settings {
|
|||
*/
|
||||
public final Setting<Integer> minYLevelWhileMining = new Setting<>(0);
|
||||
|
||||
/**
|
||||
* Sets the maximum y level to mine ores at.
|
||||
*/
|
||||
public final Setting<Integer> maxYLevelWhileMining = new Setting<>(255); // 1.17+ defaults to maximum possible world height
|
||||
|
||||
/**
|
||||
* This will only allow baritone to mine exposed ores, can be used to stop ore obfuscators on servers that use them.
|
||||
*/
|
||||
|
|
|
@ -437,6 +437,8 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
|
|||
|
||||
.filter(pos -> pos.getY() >= Baritone.settings().minYLevelWhileMining.value)
|
||||
|
||||
.filter(pos -> pos.getY() <= Baritone.settings().maxYLevelWhileMining.value)
|
||||
|
||||
.filter(pos -> !blacklist.contains(pos))
|
||||
|
||||
.sorted(Comparator.comparingDouble(ctx.getBaritone().getPlayerContext().player()::getDistanceSq))
|
||||
|
|
Loading…
Reference in New Issue