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

Load from .mca #115

Closed
codingMASTER398 opened this issue Apr 24, 2021 · 2 comments
Closed

Load from .mca #115

codingMASTER398 opened this issue Apr 24, 2021 · 2 comments

Comments

@codingMASTER398
Copy link

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?
image

@extremeheat
Copy link
Member

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
Copy link
Author

Thank you! this is a big help!

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

2 participants