altoclef
altoclef copied to clipboard
If the tool baritone is using is about to break, make a new one
Your Idea
The bot should make a new tool because it very often gets stuck underground when the tool breaks.
Absolutely.
Will probably have a "durability before replacing" threshold in settings (also corresponds to the number of blocks you can break with a pick). Once the sum of thresholds in your inventory goes below this value, the bot needs to get a new pickaxe before its mining requirement is met.
A bug could be with like wooden pickaxes, that it will replace before it even starts mining because the tool is too low durability, maybe make it a percent? Like if only 10% is remaining, replace
Valid concern, but in that case the bot will simply grab an extra wooden pickaxe before doing anything. I don't consider that a bug, but it might be unintended user behavior. Percents are relative to the tool you have at disposal, when it comes to getting stuck the only thing that matters is the number of blocks you can break with it.
Now if you're concerned about breaking enchanted tools that's valid, percents may make sense there. That would be a separate feature IMO.