Jump to content

[1.8.9] Saving extra data in world


Atijaf

Recommended Posts

I would like to store data for blocks that have been placed by a player.  I could make this based on the BlockPos and then accessing a HashMap... Which ties to the question.

 

I would think that this data would be stored server side, to the world, and then whenever a player enters a new location, check with the server to see if there is any data about player placed blocks and send the player data.  Is my logic sound?

 

Also, should I store this information to disk, then load the information that is relative to the part of the world that is "active"?  Is that even possible?

 

And for the last bit, what would you recommend I store the information in?  I would only store BlockPos locations (Or is there something I should use instead) that were placed by players, so just by data existing means that the block was placed by a player.

 

Thank you!

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.