Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rycbar0 opened this issue Jun 23, 2023 · 1 comment · May be fixed by #4037
Labels
bug Something isn't working

Comments

@rycbar0
Copy link
Contributor

rycbar0 commented Jun 23, 2023

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);
}

@ZacSharp ZacSharp added the bug Something isn't working label Jun 23, 2023
@ZacSharp
Copy link
Collaborator

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.

@rycbar0 rycbar0 mentioned this issue Jun 23, 2023
@ZeroMemes ZeroMemes linked a pull request Jul 1, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants