Add optional bottom-up clearing for builders#11640
Conversation
In order for this pull request to be merged, make sure you test whether your changes work.If the changes are working as intended, remove the https://github.com/ldtteam/minecolonies/labels/undefined label from the pull request. Contributors, please review this pull request! |
|
Title: Description: SummaryThis change adds a second clearing mode for builders: an optional bottom-up clearing pass before the normal build flow starts. When enabled, the builder will:
This preserves the original behavior for existing colonies because the default mode remains top-to-bottom. WhyThe current builder clearing flow only works from top to bottom. That works for many cases, but it is not ideal when preparing areas that contain blocks affected by gravity or similar world physics. In those cases, clearing from the bottom up first can be useful, but a final top-down pass is still required to remove blocks that may fall or update after the initial pass. What changed
Behavior notes
Validation
|
|
Can I ask (and I am not a coder, so sorry if this is obvious) how does it make sense to clear from bottom up? Don't you risk the builder clearing blocks that are holding up gravity blocks, and then getting buried by them? I thought that was why it is top down? |
|
also excitement like "I just opened the bottom of a lake or lava pool" would be a condideration |
to those concerns, that already does make a mess with the current top down system, the builders do not remove water or lava during the clearing phase, also gravel falls down if its a underground sytle. The Bottom Up methode does 2 things, it clears first from bottom to top and than again from top to bottom to remove blocks with gravity like sand or gravel. Its mainly designed to solve the teleportation issue if players build under ground, where the builder creates a cavity thats not accessible and than teleports into it (most likely filled with hostile mobs) It makes it easyer for the builder to do underground styles. Also its totaly the players choice. The Builder hut got 1 more option now, default is still top to bottom. |
So this still doesn't make sense to me. Yes, gravel falls down, but it doesn't fall down into a big empty space they are standing in. It very rarely, if ever, falls on them. If you have them clearing out the space from underneath, then they are standing in that space underneath, and anything they make fall down (gravel, sand, lava whatever) falls ON them. It doesn't actually stop them making a cavity that's not accessible at all, it just moves the cavity from the top of the build area to the bottom of the build area (unless you have made an opening right next to where they are going to be digging out, and know for sure that they are going to dig closest to that area first) I'm probably not understanding something, but no matter how I try and see this in my head, it just doesn't seem like it would actually improve the builder. All I see is them getting buried in gravel LOL! |
I am building a lot underground, so there is no perfect solution. What i repeditly see with the top down digging is. yes gravel and sand are a problem but they continue to be in boath styles of clearing out the area without double checking. In Styles like https://ladyshatana.wixsite.com/mcguides/cavern you do have the opening from which they can start. |
|
Yeah, I've used cavern a lot =) You need to babysit the builders until they have finished. Price of playing a more difficult style! |
|
come on we are discussing about an alternative non default mode for the builder. |
|
Have you actually tested this works, how can they navigate to the top of the area if there's no path to go up? At least with top down they can emergency teleport to the top to clear out the rest. But bottom top then there's nowhere to teleport |
|
This probably doesn't work well in a lot of cases as a builder mode. The modes have to be the same y direction because certain blocks like torches, lanterns, etc rely on this order to not break due to a lack of support.
We do full blocks in one dir, and deco blocks in the other direction for example. Similar with liquid placement
https://proton.me/mail/home
…-------- Original Message --------
On Tuesday, 05/05/26 at 15:40 Thom van den Akker ***@***.***> wrote:
Thodor12 left a comment [(ldtteam/minecolonies#11640)](#11640 (comment))
Have you actually tested this works, how can they navigate to the top of the area if there's no path to go up? At least with top down they can emergency teleport to the top to clear out the rest. But bottom top then there's nowhere to teleport
—
Reply to this email directly, [view it on GitHub](#11640 (comment)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/ABRD3S3UFL5LHPDSZX4FDH34ZGLF7AVCNFSM6AAAAACYMV3RBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DGNZXGM3TIMZWHA).
Triage notifications on the go with GitHub Mobile for [iOS](https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675) or [Android](https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thats one of the Drawbacks if the Structure is to tall you have to give him support, after the bottom up pass he will do a normal pass again to remove supports or grafity blocks. Changes when to babysit the builder
Building itself didnt change. In the code you can see that bottom up just adds itself as a precurour to the normal buildchain. final BuildingProgressStage[] stages = useBottomUpClearing |
|
one drawback this ofc does have is that it'll increase total build time for the extra iteration |
yes definitly, boath methodes have there benefits and drawbacks, its totaly in the control of the player what they prefere. Gues the key argument is (that i should have leaded with) give the player an other way of freedom and let them choose what they prefere. |
|
the important part would be that the player understands which to use in which situation/style |

Closes #
Closes #
Changes proposed in this pull request
Review please