You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I put an enchanted_book in the first slot of slot.hotbar.
I use the"print(str(self.server.get_player(sender.name).inventory.get_item(0)))"
and the console returns:
ItemStack(minecraft:enchanted_book x 1)
whitout any nbt.
but when I use"self.server.get_player(sender.name).inventory.add_item(self.server.get_player(sender.name).inventory.get_item(0))"
I find that the enchanted_book is successfully copied with nbt.
WHERE WAS THE NBT STORAGED?
The NBT data is stored internally within the handle to the ItemStack hence it is preserved during operations like copying. However, currently, there is no way to directly access or modify the NBT data.
I am planning to introduce a (very basic) NBT API in the next version which will allow you to interact with the NBT data of ItemStack objects directly.
The NBT data is stored internally within the handle to the ItemStack hence it is preserved during operations like copying. However, currently, there is no way to directly access or modify the NBT data.
I am planning to introduce a (very basic) NBT API in the next version which will allow you to interact with the NBT data of ItemStack objects directly.
There are also player nbt, physical nbt, creature nbt, block nbt
as the title
The text was updated successfully, but these errors were encountered: