Igrium / mc-world-export

A mod which eases the exporting of Minecraft worlds into Blender and similar software.
GNU General Public License v3.0
103 stars 8 forks source link

I need some help! #60

Closed BaiGave closed 1 year ago

BaiGave commented 1 year ago
I'm writing a blender plugin for importing and exporting mc maps(with mod blocks, such as byg, little blocks,yuushya.....)。But I'm having some problems
Now the .schem file can be imported normally, but I realized that if I want to import and export the map archive, I need to read, create and write to the .mca file
I checked the information on the Internet for a long time, but all I can know is that the .mca file has an 8k area storage block file location length and change time, and then the nbt file after zlib compression. I don't understand how to do this in python, if you can help me, I would appreciate it
BaiGave commented 1 year ago

20230516193902

BaiGave commented 1 year ago

The above is what my current code does

Igrium commented 1 year ago

Ohhh boyyy, welcome to the rabbit hole. I actually faced this very problem in a project a few years back, and had some help fixing it. Here's my friend's pull request if you wanna look at code: https://github.com/Sam54123/Scaffold/pull/12

BaiGave commented 1 year ago

Thank you so much!!!