Load from .mca
codingMASTER398 opened this issue · 2 comments
codingMASTER398 commented
Hi there!
I have a plan to make a program to make a one-command-block creation from a Minecraft world.
For that, I need to read the world that the original creation was made in.
This would be perfect for what I'm doing, but you can only create new chunks, not load any from a .mca file.
Can you add support for that?
extremeheat commented
see https://github.com/PrismarineJS/prismarine-provider-anvil/
new Anvil(pathToRegionFolder).getRegion(chunkX, chunkZ)
if you want to get the region file directly, chunkX = regionX << 5
& chunkZ = regionZ << 5
codingMASTER398 commented
Thank you! this is a big help!