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 storage format in chunks slightly changed #4

Open
17183248569 opened this issue Apr 23, 2020 · 5 comments
Open

Block storage format in chunks slightly changed #4

17183248569 opened this issue Apr 23, 2020 · 5 comments

Comments

@17183248569
Copy link

Technical Changes in 20w17a

Block storage format in chunks slightly changed to speed up various tasks (rendering, pathfinding, world generation, etc)

@ievans3024
Copy link
Contributor

Block storage format

  • Block storage format in chunks has been slightly changed to speed up various tasks (rendering, pathfinding, world generation, etc.).
    • BlockStates in Sections elements no longer contain values stretching over multiple 64-bit fields.
      • If the number of bits per block is not the power of two (i.e. single 64-bit value can't fill the whole number of blockstates) some bits will not be used.
      • For example, if a single block state takes 5 bits, the highest 4 bits of every 64-bit field will be unused. That also means a slight increase in storage size (in case of 5 bits, from 320 to 342 64-bit fields).

source

Note that this is from a snapshot not in a stable release yet, so this could change between that snapshot and the release.

@17183248569
Copy link
Author

thanks for your reply.

by the way, I found another link about mca format.

https://www.reddit.com/r/technicalminecraft/comments/e4wxb6/a_new_save_file_format_for_java_edition_115_has/

@17183248569
Copy link
Author

c.-96.-8.zip

@MestreLion MestreLion reopened this Jun 6, 2020
@MestreLion
Copy link
Owner

Why close this @ch-yx ? Both the upcoming changes in snapshot 20w17a and this new MCC file containing external chunk data require adjustments in my library. I'll let this issue open until I'm able to parse this

@MestreLion
Copy link
Owner

c.-96.-8.zip

Was this naturally created by the vanilla Minecraft game, from an ordinary world? Sweet!!! I'll use it in my tests...

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

3 participants