Posted August 16, 20196 yr Hello, So I'm making a world data class to check how many structures ive spawned in the world and everything works fine but it resets when i leave the world and i checked, and there is no dat file in world nbt. this is my data class https://pastebin.com/E8EdD1sZ and this is the generation class that i implement with https://pastebin.com/VNcgRiPu
August 16, 20196 yr Author 30 minutes ago, diesieben07 said: The ID for your WorldSavedData must be a valid file name, it can't include a ":". Your readFromNBT method does nothing but waste CPU cycles. You read the data from NBT and then... drop it on the ground and do nothing with it. I doubt you want this. I doubt you own this domain. I tried your fixes, sadly still doesn't work and the dat file still doesn't exist updated data classhttps://pastebin.com/7JeYbuNn
August 17, 20196 yr Author On 8/16/2019 at 3:11 PM, diesieben07 said: Is the data ever created? Is it's data ever modified? Use the debugger. No like i said the dat file doesn't get created, and thus it doesn't get modified either.
August 17, 20196 yr Author So basically @diesieben07 fix actually worked. it was just that I was looking in the wrong files to find the .dat files + i had a command to get the pos of the build and my get command was not working as intended so i just thought the data reset (my bad). here's the updated class for whoever needs it:https://pastebin.com/Ex4ipDRW
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.