cabaletta / cabaletta/baritone

Ignore attached blocks with cleararea

Open
#1,169 0 comments 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
9.2k
Forks
2.1k
Avg merge
4d 3h
Merged PRs (30d)
3

Description

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)

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the cleararea selection and block-breaking logic, then trace how attached blocks are ordered when both the attachment and its supporting block are selected. Reproduce the pressure-plate, ladder, and tree examples described in the issue, and verify that attached blocks are ignored only when their supporting blocks are also inside the selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
game-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.