Jump to content

Set chunk in world


ndm250

Recommended Posts

I managed to get a chunk at a specific location using

world.getChunkProvider().provideChunk(x, z)

What's the best way to paste that chunk into the world at any location?

Do I loop all the blocks in the copied chunk and set the blocks at the target chunk location?

 

Thanks.

Link to comment
Share on other sites

I havent yet looked into how chunks exactly work internaly but you may be able to just overwrite the old chunk reference with a copy of the new one?

 

Theres not much data here, so your best bet is to dive into the src code!

Understanding the source will probably reveal several things to you and it will probably make you abel to determine the best vourse of action :)

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.