Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Baritone only moves pickaxes and throwaway blocks to the hot bar and does that even if no process is active

rycbar0 opened this issue ยท 1 comments

commented

Inventory behavior only picks tools of the pickaxe type into the hotbar. If your shovel breaks and you dont have a second one in your hotbar baritone will use its fist to mine dirt blocks instead of using the backup shovel in your inventory regardless of your allowInventory setting.
Also it will always move pickaxes and throwAwayItems to the hotbar. maybe there is a good reason for that but i think if baritone doesnt have a process running it shouldnt move itmes in the inventory.

if (firstValidThrowaway() >= 9) { // aka there are none on the hotbar, but there are some in main inventory
requestSwapWithHotBar(firstValidThrowaway(), 8);
}
int pick = bestToolAgainst(Blocks.STONE, ItemPickaxe.class);
if (pick >= 9) {
requestSwapWithHotBar(pick, 0);
}

commented

The pickaxe thing has been reported a couple times already and I don't think anyone came up with a reason for that behavior on any of those issues. Just that it behaves as intended.

If someone works at this they can probably fix both issues at once.