Skip to content

Add custom block place limit. - #4746

Closed
Murat65536 wants to merge 6 commits into
cabaletta:1.19.4from
Murat65536:custom-height-limit
Closed

Add custom block place limit.#4746
Murat65536 wants to merge 6 commits into
cabaletta:1.19.4from
Murat65536:custom-height-limit

Conversation

@Murat65536

Copy link
Copy Markdown
Contributor

A very small PR. Closes #4743

if (!Baritone.settings().allowPlaceInFluidsFlow.value && !current.getFluidState().isEmpty() && !current.getFluidState().isSource()) {
return COST_INF;
}
if (y > Baritone.settings().blockPlaceHeightLimit.value) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (y > blockPlaceHeightLimit) {

@leijurv

leijurv commented May 13, 2025

Copy link
Copy Markdown
Member

What server imposes a custom height limit ?

@ChibiDD

ChibiDD commented May 13, 2025

Copy link
Copy Markdown

Any server running data packs such as Sky High which increases the default limit past the 320 limit.

@leijurv

leijurv commented May 13, 2025

Copy link
Copy Markdown
Member

This PR only decreases the limit, it can't increase it

@ChibiDD

ChibiDD commented May 14, 2025

Copy link
Copy Markdown

Fair I was just assuming as to why people would want a custom height limit, I’m not personally sure what servers are imposing a limit on build height.

@Murat65536

Copy link
Copy Markdown
Contributor Author

A local SMP server I play on has a custom height limit. If you have any idea on how to make this increase and decrease the height limit, I would really want to hear it though since I couldn't come up with anything. I don't know if I'm supposed to get the instance of the Minecraft world from the settings page but I'm assuming that I'm not.

@leijurv

leijurv commented May 15, 2025

Copy link
Copy Markdown
Member

Can you clarify if this SMP server has a height limit that is lower or greater than vanilla?

@Murat65536

Copy link
Copy Markdown
Contributor Author

Lower.

@wagyourtail

wagyourtail commented May 16, 2025

Copy link
Copy Markdown
Collaborator

any data pack raising/lowering the height limit should sync it to the client as world.dimension.height() or whatever as part of the dimension data, so this should only be necessary if some plugin is "artificially" lowering it or otherwise preventing block places above a y value

@Murat65536

Murat65536 commented May 16, 2025

Copy link
Copy Markdown
Contributor Author

The server doesn't use any data packs so I guess it won't sync. I'm thinking that it's done using command blocks.

@Murat65536 Murat65536 closed this Jul 24, 2025
@Murat65536
Murat65536 deleted the custom-height-limit branch July 24, 2025 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add custom height limit for placing blocks

4 participants