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
Bump
Could you give me the nbt data here? I could take a look at it
I can probably make a tool
(ping me)
Example of really long nbt data
Generally, the procedure to get a /give command from nbt is like this:
@TecTrix
I'll take a look at this, I can probably make this happen
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.
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.