baritone icon indicating copy to clipboard operation
baritone copied to clipboard

Baritone doesn't use the correct tool breaking for any block that uses an axe, shovel or hoe

Open Redhawk18 opened this issue 1 year ago • 15 comments

It feels like baritone does not have the tool for mushroom blocks set within the code, because I know it can switch to the proper tool for mining with an axe or shovel.

Redhawk18 avatar Apr 01 '24 05:04 Redhawk18

Is this the situation/behavior you mean? (recorded using tweaker:runClient on 354b26b1d)

https://github.com/cabaletta/baritone/assets/68165024/ff4c3f6e-053f-4ccb-aeae-b87917362fd2

ZacSharp avatar Apr 01 '24 22:04 ZacSharp

Is this the situation/behavior you mean? (recorded using tweaker:runClient on 354b26b) 2024-04-01.23-54-09.mp4

Very strange, is there a way to get the commit latest commit number for my version of baritone? the version command gives a dev release null. Also I'm using the litematica command if that affects anything.

Redhawk18 avatar Apr 02 '24 00:04 Redhawk18

I found the problem, if an axe is in the hotbar baritone will use it. Else it will not switch the item to the hotbar to use it. I wonder how many blocks this affects and it has to do with how fast it can break the block.

Redhawk18 avatar Apr 02 '24 04:04 Redhawk18

Else it will not switch the item to the hotbar to use it. I wonder how many blocks this affects and it has to do with how fast it can break the block.

Baritone unconditionally moves a pickaxe to your hotbar and no other tools so this affects anything for which a pickaxe is not the fastest tool. There was a pr to fix this (and much more) but it sadly died (#4037).

ZacSharp avatar Apr 02 '24 19:04 ZacSharp

Else it will not switch the item to the hotbar to use it. I wonder how many blocks this affects and it has to do with how fast it can break the block.

Baritone unconditionally moves a pickaxe to your hotbar and no other tools so this affects anything for which a pickaxe is not the fastest tool. There was a pr to fix this (and much more) but it sadly died (#4037).

why did it die? I dont see any problems, looks like it never got merged.

Redhawk18 avatar Apr 02 '24 19:04 Redhawk18

I don't know. It's still a draft so I think Brady (ZeroMemes) had further plans for it, but to know why he didn't finish it you'd have to ask him.

ZacSharp avatar Apr 02 '24 20:04 ZacSharp

whats the best way to reach out to him? I'm sure I could dm him on discord but that is bad practice for open source projects.

Redhawk18 avatar Apr 02 '24 20:04 Redhawk18

Discord and pinging him here is the ways I know.

ZacSharp avatar Apr 02 '24 20:04 ZacSharp

@ZeroMemes

Redhawk18 avatar Apr 02 '24 20:04 Redhawk18

Yeah, but it won't use a hoe for gathering carrots when running the farm command

figloalds avatar Apr 23 '24 13:04 figloalds

@figloalds carrots break instantly without using a tool and there is no tool assigned to them. Why would you expect Baritone to use a hoe to break them?

ZacSharp avatar Apr 28 '24 22:04 ZacSharp

@ZacSharp because of the fortune enchantment which the wiki states to increase drop rates Fully grown carrot crops drop 2 to 5 carrots (3 5⁄7 per crop harvested on average). Yield can be increased using a tool enchanted with [Fortune](https://minecraft.fandom.com/wiki/Fortune), with Fortune III harvesting an average of 5 3⁄7 carrots. https://minecraft.fandom.com/wiki/Carrot

figloalds avatar Apr 28 '24 22:04 figloalds

@figloalds ok, though that's a separate concern from this issue (because considering fortune is not an intended feature). I'd ask you to open a new issue, but there probably is one already.

ZacSharp avatar Apr 28 '24 23:04 ZacSharp

After hours more of testing its any block that uses an axe, shovel or hoe as its tool.

Redhawk18 avatar Apr 30 '24 00:04 Redhawk18

Yes, as already stated here, anything but pickaxes behaves like that.

ZacSharp avatar Apr 30 '24 13:04 ZacSharp