LB-- / MCModify

WIP Java/C++ library for dealing with Minecraft files.
The Unlicense
21 stars 10 forks source link

Question: Current state #22

Open BSVogler opened 6 years ago

BSVogler commented 6 years ago

Hi!

I am the author of Wurfel Engine. I would like to add a Minecraft map import to the engine. I just want to read the Minecraft save files in order to get the block ids. Is MCModify currently working for this task? Should I program my own software? Are there alternatives?

Kind regards, Benedikt

LB-- commented 6 years ago

I believe the region reading code should still work for current versions of Minecraft. The code is in the public domain so you can just copypaste the relevant parts into your project: https://github.com/LB--/MCModify/blob/java/src/main/java/com/lb_stuff/mcmodify/minecraft/Region.java https://github.com/LB--/MCModify/blob/java/src/main/java/com/lb_stuff/mcmodify/minecraft/FileRegion.java

BSVogler commented 6 years ago

Thank you for the links. I will let you know, if it worked.

BSVogler commented 6 years ago

There are a lot of errors, but I can read some chunks. bildschirmfoto 2018-02-07 um 01 13 51

Is there a way to get one block just with x,y,z and the library does load the region and chunks automatically? Currently I have to specify the chunk, which I want to load.

LB-- commented 6 years ago

I think the math for that is here: https://github.com/LB--/MCModify/blob/java/src/main/java/com/lb_stuff/mcmodify/location/LocChunkInDimension.java There's intentionally no automatic loading.