Get /give command from nbt data of an item

I have nbt data of an item with /data entity get @s SelectedItem I copied it from latest.log in my client chatlogs. I wanna generate a /give command to give the SelectedItem, I searched a lot, but there's no publicly available tools that take in that data string and output a /give command
7 Replies
Sans_Nom
Sans_NomOP2w ago
Bump
TecTrix
TecTrix2w ago
Could you give me the nbt data here? I could take a look at it I can probably make a tool (ping me)
Sans_Nom
Sans_NomOP2w ago
Example of really long nbt data
Sans_Nom
Sans_NomOP2w ago
Generally, the procedure to get a /give command from nbt is like this: @TecTrix
TecTrix
TecTrix2w ago
I'll take a look at this, I can probably make this happen
TecTrix
TecTrix2w ago
I've found some nbt parsing libraries: https://github.com/PrismarineJS/prismarine-nbt
GitHub
GitHub - PrismarineJS/prismarine-nbt: An NBT parser for node-minecr...
An NBT parser for node-minecraft-protocol. Contribute to PrismarineJS/prismarine-nbt development by creating an account on GitHub.
TecTrix
TecTrix2w ago
Is there much demand for a tool like this? I can do it but I'm not sure if it's really that useful for people.

Did you find this page helpful?