Posted June 21, 20223 yr 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, 20223 yr by Brainterminator Adding GitHub Repo
June 22, 20223 yr Author 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, 20223 yr by Brainterminator SOLVED
July 6, 20223 yr Author 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
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.