Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

Ignore attached blocks with cleararea

SeasonalFerret opened this issue ยท 0 comments

commented

When clearing an area/selection, baritone should ignore blocks that are attached to others if both blocks are within the selection to clear.

An example would be if the selection includes a pressure_plate on top of a block. Baritone will, assuming that it's going from top to bottom, break the pressure plate and then (eventually) the block.
In this scenario, a player would obviously break the block under the pressure plate.

If the selection contains only the pressure plate, baritone should break the pressure plate. But if it also contains the block the pressure plate is attached to, it should break the block below it first, ignoring the pressure plate.

Other examples include:
-Breaking torches when breaking the block it's attached to would suffice (this is a bad example, considering torches are one-click break)
-Breaking walls with ladders in the selection (baritone can just ignore the ladder and break the block if it's visible, instantly breaking the ladder)
-Cutting down trees and getting rid of the leaves (If the selection contains an entire tree, breaking only the log should suffice as the leaves decay over time)