Posted September 8, 201312 yr I'm currently using NBT Tags to load a stat for players. Since NBT Tags reset when the player dies (Don't quote me on this), is there anyway to store the data somewhere else and reload it when the player respawns? Kain
September 8, 201312 yr There is a persistent NBT tag for players You could also use WorldSaveData and set the player data at spawn event.
September 8, 201312 yr Author *Sorry for being an idiot on NBT How would I get access to the persistent NBT tag for players? Also how do I save/load to the WorldSaveData? Kain
September 8, 201312 yr entityPlayer.getEntityData().getCompoundTag("PlayerPersisted"); Extend WorldSaveData and use the NBT methods
September 8, 201312 yr Author Got it to work, it saves my experience on death, but my experience carries on to other worlds. Is there something I need to do? http://pastebin.com/YgUU28jM Kain
September 8, 201312 yr Author Ok, I got rid of the WorldSavedData junk. It saves on death, but it still carries on to other worlds. Kain
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.