Posted July 27, 201312 yr Hello guys I am trying to change nbt of a player who is offline on a server Are there any way to do this ? http://r1306.hizliresim.com/1b/1/np1mm.png[/img]
July 27, 201312 yr have you done any research at all before, i suggest you look at the forge wiki as there is some valuable information. how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 27, 201312 yr Author 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 http://r1306.hizliresim.com/1b/1/np1mm.png[/img]
July 27, 201312 yr 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; }
July 27, 201312 yr you missed it http://www.minecraftforge.net/wiki/How_to_use_NBT_Tag_Compound how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
July 27, 201312 yr Author 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) http://r1306.hizliresim.com/1b/1/np1mm.png[/img]
July 27, 201312 yr 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 how to debug 101:http://www.minecraftforge.net/wiki/Debug_101 -hydroflame, author of the forge revolution-
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.