Reliquary

Reliquary

2M Downloads

Possible Solution to Our NBT Item woes

MercuriusXeno opened this issue ยท 3 comments

commented

Create a UUID for the NBT tag of all of our items and link that to a reliquary save file that stores the item's NBT data in a list of other item's nbt stack tags. This way, the item nbt tag never changes (except when first created) and all the item data is stored off-site, meaning the item won't flicker/cycle when the nbt tag changes, and the name won't popup.

This will require a somewhat elaborate server-to-client update handler to take care of syncing the clientside NBT to server, and will also change the way we save our NBT data. Also, we'll need a method to "garbage collect" any items which can be potentially destroyed so that we're not storing invalid UUIDs in the list (mostly for cleanliness, saving negligible space).

commented

This was a tremendous success. I will now begin converting all our items to using it.

commented

Items are all converted, needs testing, but code-complete.