Awesome_Spider Posted November 17, 2014 Share Posted November 17, 2014 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. Quote Link to comment Share on other sites More sharing options...
Bugzoo Posted November 17, 2014 Share Posted November 17, 2014 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 Quote Link to comment Share on other sites More sharing options...
larsgerrits Posted November 17, 2014 Share Posted November 17, 2014 Use WorldSavedData . There are tutorals on the internet. Quote 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 More sharing options...
Awesome_Spider Posted November 17, 2014 Author Share Posted November 17, 2014 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. Quote Link to comment Share on other sites More sharing options...
Bugzoo Posted November 17, 2014 Share Posted November 17, 2014 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 Quote Link to comment Share on other sites More sharing options...
Awesome_Spider Posted November 17, 2014 Author Share Posted November 17, 2014 Yea, that is what NBT is for, saving data Oh ok, I'll use NBT then, thanks. Quote Link to comment Share on other sites More sharing options...
jabelar Posted November 18, 2014 Share Posted November 18, 2014 You should use WorldSavedData because it is automatically saved and loaded for you. WorldSavedData does use NBT to do the saving. NBT is just a flexible structure to allow saving a mix of common data types all together. Quote Check out my tutorials here: http://jabelarminecraft.blogspot.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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.