Brainterminator Posted June 21, 2022 Share Posted June 21, 2022 (edited) Hey guys I made an Item that can store an Ore Location as NBT Data. The Problem is now that when I drop the Item or move it inside of my Inventory the NBT Data is lost. Also for some reason when I open a chest or an anvil the NBT Data is lost as well. Now comes the weird part: When I open my Inventory in Creative Mode for about 2 seconds it permanently saves the NBT Data. Then I can drop it move it in my inventory and open chests. Does anybody have an Idea what's going on? I'm clearly not understanding how the Inventory is handled and I also understand that dropping an Item must mean it will be somewhat converted into a different entity. Thanks in regards for your help! The Github Repository is: https://github.com/Brainterminator/utilityblocks Edited June 22, 2022 by Brainterminator Adding GitHub Repo Quote Link to comment Share on other sites More sharing options...
Brainterminator Posted June 22, 2022 Author Share Posted June 22, 2022 (edited) 3 hours ago, diesieben07 said: You are setting the NBT data client side. You must set it server side. Yes that was the problem. One of the involved Items still had a isClientSide check. Removing it made it work. Thanks a lot! Edited June 22, 2022 by Brainterminator SOLVED Quote Link to comment Share on other sites More sharing options...
Brainterminator Posted July 6, 2022 Author Share Posted July 6, 2022 On 6/22/2022 at 9:15 AM, diesieben07 said: You need to not remove it, you need to do the check on the server side. I guess that's what I did. It works totally fine now on Servers and on Single Player Quote 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.