feat: v2.2.2 无路时自动搭方块(可开关)

- Baritone allowPlace/allowParkourPlace 改为配置驱动(默认开)
- 新增 AutoScaffold 服务:快捷栏搭路方块不足时自动从背包补给
  (只进空位/只与更小的搭路方块堆交换,不碰工具食物)
- 搭路方块清单喂给 Baritone acceptableThrowawayItems(放置时从中挑选)
- AutoTrash 永不丢弃快捷栏物品,与搭路补给协同
- GUI 新增开关与搭路方块清单设置;版本升至 2.2.2
这个提交包含在:
lyizai
2026-08-31 13:37:59 +08:00
父节点 61c9384881
当前提交 248505deee
共修改 10 个文件,包含 227 行新增和 10 行删除
@@ -7,6 +7,7 @@ import autodig.client.miner.NetherMiner;
import autodig.client.miner.OverworldMiner;
import autodig.client.service.AutoEat;
import autodig.client.service.AutoGear;
import autodig.client.service.AutoScaffold;
import autodig.client.service.AutoTrash;
import autodig.client.service.DeathRecorder;
import autodig.client.service.KillAura;
@@ -35,6 +36,7 @@ public final class DigController {
private final KillAura killAura = new KillAura();
private final AutoGear autoGear = new AutoGear();
private final AutoTrash autoTrash = new AutoTrash();
private final AutoScaffold autoScaffold = new AutoScaffold();
private final DeathRecorder deathRecorder = new DeathRecorder();
private final SessionStats stats = new SessionStats();
private final OverworldMiner overworld = new OverworldMiner(this.bridge);
@@ -60,10 +62,11 @@ public final class DigController {
}
PlayerEntity player = client.player;
// 常驻能力:杀戮光环、自动进食、背包满丢垃圾、换装冷却
// 常驻能力:杀戮光环、自动进食、背包满丢垃圾、搭路方块补给、换装冷却
this.killAura.tick(config);
this.autoEat.tick(config);
this.autoTrash.tick(config);
this.autoScaffold.tick(config);
this.autoGear.tick();
// 死亡处理:记录死亡次数,暂停任务,重生后按需回到死亡坐标