Skip to content
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

Block editing commands don't work unless 0<y<255 #15

Open
Valiec opened this issue Apr 22, 2015 · 3 comments
Open

Block editing commands don't work unless 0<y<255 #15

Valiec opened this issue Apr 22, 2015 · 3 comments

Comments

@Valiec
Copy link

Valiec commented Apr 22, 2015

Commands that place blocks will not work if y<0 or y>255. It produces the standard height is to big/too small error message. It looks like a hard-coded limit like with the saplings (and the doors).

@Razaekel
Copy link
Contributor

Command Exception:
"commands.compare.outOfWorld"

Tests:
!World.checkBlockIsInWorld(BlockPos)
BlockPos1.getY() < 0 || BlockPos2.getY() >= 256

Possible Affected Commands:
BlockData
Clone
Compare
Fill
SetBlock
Summon
TestForBlock

Please test these commands and let me know which ones fail.

@Valiec
Copy link
Author

Valiec commented Apr 24, 2015

Test Results:

/blockdata fails when y is "out of bounds".

/clone fails when y is "out of bounds".

I cannot find any command called compare or similar (it says it's not found when I try it ingame, and no command called that is listed on the minecraft wiki by that name). Can you tell me if this command is often called something else? Is it "/testforblocks" (not testforblock), which is the only block-related command you didn't list? If so, that fails when y is "out of bounds".

/fill fails when y is "out of bounds".

/setblock fails when y is "out of bounds".

/summon works as it should.

/testforblock fails when y is "out of bounds". It also says "Cannot test for block outside of the world." (a different message) when I try to test for a block that is in the "normal" height range when you are below y=0, but not when above y=255.

@Razaekel
Copy link
Contributor

Thank you for checking. Now I know what needs to be modified.

Looks like Compare is testforblocks, and TestForBlock is testforblock. Ie, compare checks a region, and TestForBlock checks a single block.

@Razaekel Razaekel changed the title Block placing commands won't work unless 0<y<255 Block editing commands don't work unless 0<y<255 Jun 14, 2015
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

No branches or pull requests

2 participants