MestreLion / mcworldlib

Yet another library to manipulate Minecraft data, inspired by pymclevel
GNU General Public License v3.0
29 stars 4 forks source link

Block storage format in chunks slightly changed #4

Open 17183248569 opened 4 years ago

17183248569 commented 4 years ago

Technical Changes in 20w17a

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

ievans3024 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

c.-96.-8.zip

MestreLion commented 4 years ago

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 commented 3 years ago

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...