Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

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

 

 

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.

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

Yea, that is what NBT is for, saving data

 

Oh ok, I'll use NBT then, thanks. :)

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.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.