Have something like that in mind. Easy to access and easy to add / get keys and values.
I added additional nbt tags in a written book and the client had no problems with the book, it only shows the tags that are shown and maybe it only reads the keys and values that are required.
Currently we have no way to manipulate nbt tags from plugin side. I see that cItem has m_ItemColor and m_FireworkItem, both doesn't work and are not exported to lua.
-- firework item local item = cItem(E_ITEM_FIREWORK_ROCKET, 1) item.m_ItemMeta["Explosions"] = {} item.m_ItemMeta["Explosions"][1] = {} item.m_ItemMeta["Explosions"][1]["Flicker"] = 1 -- Twinkle effect item.m_ItemMeta["Explosions"][1]["Type"] = 2 -- Star-shaped item.m_ItemMeta["Explosions"][2] = {} item.m_ItemMeta["Explosions"][2]["Trail"] = 1 -- Trail effect item.m_ItemMeta["Explosions"][2]["Type"] = 3 -- Creeper-shaped item.m_ItemMeta["Fireworks"]["Flight"] = 60 -- 3s flight time, until it explodes -- written book local item = cItem(E_ITEM_WRITTEN_BOOK, 1) item.m_ItemMeta["author"] = "author name" item.m_ItemMeta["title"] = "A book" item.m_ItemMeta["pages"][1] = "page 1" item.m_ItemMeta["pages"][2] = "page 2" item.m_ItemMeta["pages"][3] = "page 3"
I added additional nbt tags in a written book and the client had no problems with the book, it only shows the tags that are shown and maybe it only reads the keys and values that are required.
Currently we have no way to manipulate nbt tags from plugin side. I see that cItem has m_ItemColor and m_FireworkItem, both doesn't work and are not exported to lua.