Skip to content

Add custom block place limit. #4746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: 1.19.4
Choose a base branch
from

Conversation

Murat65536
Copy link
Contributor

A very small PR. Closes #4743

@@ -167,6 +169,9 @@ public double costOfPlacingAt(int x, int y, int z, BlockState current) {
if (!Baritone.settings().allowPlaceInFluidsFlow.value && !current.getFluidState().isEmpty() && !current.getFluidState().isSource()) {
return COST_INF;
}
if (y > Baritone.settings().blockPlaceHeightLimit.value) {
Copy link
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
Copy link
Member

leijurv commented May 13, 2025

What server imposes a custom height limit ?

@ChibiDD
Copy link

ChibiDD commented May 13, 2025

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

@leijurv
Copy link
Member

leijurv commented May 13, 2025

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

@ChibiDD
Copy link

ChibiDD commented May 14, 2025

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
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
Copy link
Member

leijurv commented May 15, 2025

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

@Murat65536
Copy link
Contributor Author

Lower.

@wagyourtail
Copy link
Collaborator

wagyourtail commented May 16, 2025

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
Copy link
Contributor Author

Murat65536 commented May 16, 2025

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.

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