Jump to content

[1.7.10] [Solved] Saving additional data to a world.


Awesome_Spider

Recommended Posts

I would like to know how to save additional data to a world when the world saves. I've searched Minecraft's classes but to no avail. I saw before that there was a way but I can't find that website again. Thanks in advance.

 

Use NBT. If your not sure about NBT here is a tutorial http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CC0QFjAB&url=http%3A%2F%2Fwww.minecraftforge.net%2Fwiki%2FCreating_NBT_for_items&ei=2lFqVP7vM8POsQTQhoKADw&usg=AFQjCNGeVFOr8_WH3FalvWv54A1NeQeCeg&sig2=6qUnbE5cSyUI8IRGEuuB0Q&bvm=bv.79142246,d.cWc

 

 

Link to comment
Share on other sites

Use

WorldSavedData

. There are tutorals on the internet.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

I would like to know how to save additional data to a world when the world saves. I've searched Minecraft's classes but to no avail. I saw before that there was a way but I can't find that website again. Thanks in advance.

 

Use NBT. If your not sure about NBT here is a tutorial http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CC0QFjAB&url=http%3A%2F%2Fwww.minecraftforge.net%2Fwiki%2FCreating_NBT_for_items&ei=2lFqVP7vM8POsQTQhoKADw&usg=AFQjCNGeVFOr8_WH3FalvWv54A1NeQeCeg&sig2=6qUnbE5cSyUI8IRGEuuB0Q&bvm=bv.79142246,d.cWc

 

Does that stay saved when you exit the world? That is what I'm using currently but I'm just not sure.

 

@larsgerrits

 

WorldSavedData could be a possibility. I'll look into it.

Link to comment
Share on other sites

I would like to know how to save additional data to a world when the world saves. I've searched Minecraft's classes but to no avail. I saw before that there was a way but I can't find that website again. Thanks in advance.

 

Use NBT. If your not sure about NBT here is a tutorial http://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&cad=rja&uact=8&ved=0CC0QFjAB&url=http%3A%2F%2Fwww.minecraftforge.net%2Fwiki%2FCreating_NBT_for_items&ei=2lFqVP7vM8POsQTQhoKADw&usg=AFQjCNGeVFOr8_WH3FalvWv54A1NeQeCeg&sig2=6qUnbE5cSyUI8IRGEuuB0Q&bvm=bv.79142246,d.cWc

 

Does that stay saved when you exit the world? That is what I'm using currently but I'm just not sure.

 

@larsgerrits

 

WorldSavedData could be a possibility. I'll look into it.

 

Yea, that is what NBT is for, saving data

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.

×
×
  • Create New...

Important Information

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