godbaba Posted July 27, 2013 Share Posted July 27, 2013 Hello guys I am trying to change nbt of a player who is offline on a server Are there any way to do this ? Quote http://r1306.hizliresim.com/1b/1/np1mm.png[/img] Link to comment Share on other sites More sharing options...
hydroflame Posted July 27, 2013 Share Posted July 27, 2013 have you done any research at all before, i suggest you look at the forge wiki as there is some valuable information. Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
godbaba Posted July 27, 2013 Author Share Posted July 27, 2013 Yea I had a look into the wiki... I do it all the time but there is no information on this on the wiki or I missed Quote http://r1306.hizliresim.com/1b/1/np1mm.png[/img] Link to comment Share on other sites More sharing options...
GotoLink Posted July 27, 2013 Share Posted July 27, 2013 Maybe looking in EntityPlayer class ? /* ================================== Forge Start =====================================*/ /** * Returns a NBTTagCompound that can be used to store custom data for this entity. * It will be written, and read from disc, so it persists over world saves. * @return A NBTTagCompound */ public NBTTagCompound getEntityData() { if (customEntityData == null) { customEntityData = new NBTTagCompound(); } return customEntityData; } Quote Link to comment Share on other sites More sharing options...
hydroflame Posted July 27, 2013 Share Posted July 27, 2013 you missed it http://www.minecraftforge.net/wiki/How_to_use_NBT_Tag_Compound Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- Link to comment Share on other sites More sharing options...
godbaba Posted July 27, 2013 Author Share Posted July 27, 2013 These are all while player is online... I want to be able to save into player nbt while player is offline...(NOT LOGGED into the server) Quote http://r1306.hizliresim.com/1b/1/np1mm.png[/img] Link to comment Share on other sites More sharing options...
hydroflame Posted July 27, 2013 Share Posted July 27, 2013 oh... well no one really did this before, but youd have to look at how minecraft handle the .dat fileaand how he converta them in java objects Quote how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution- 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.