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

get_block_at((x, y, z)) returns None #10

Open
9NONAGON opened this issue Nov 20, 2022 · 1 comment
Open

get_block_at((x, y, z)) returns None #10

9NONAGON opened this issue Nov 20, 2022 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@9NONAGON
Copy link

9NONAGON commented Nov 20, 2022

image

I loaded the region the block is in, yet it returns None
This happens every time I call get_block_at()

image

@9NONAGON 9NONAGON changed the title get_block_at((x, y, z,)) returns None get_block_at((x, y, z)) returns None Nov 20, 2022
@MestreLion MestreLion added bug Something isn't working help wanted Extra attention is needed labels Jan 16, 2023
@MestreLion
Copy link
Owner

Block format in chunks changed considerably since 1.13, so methods such as Chunk.get_section_blocks() and specially Chunk._decode_blockstates() are most likely outdated and need to be fixed.

Currently I have no time to work on the project, but PRs are welcome!

suzakuwcx added a commit to suzakuwcx/mcworldlib that referenced this issue Oct 10, 2024
- Upgrade supportting parsing version to 1.21
- Fix '_decode_blockstates' if palette number greater than 16
suzakuwcx added a commit to suzakuwcx/mcworldlib that referenced this issue Nov 15, 2024
Because that the index of palette array begins from 0, so the maximux
index is 1 less than palette length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants