#Convert string to NBT?
9 messages · Page 1 of 1 (latest)
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Would something like this potentially work?
let nbtString = block.getNbt().toString()
block.setNbt(JSON.parse(nbtString))
didnt work lol
could be something wrong with my use case though
nbt is auto parsed from a string, for example you can do something like this ```js
block.setNbt({ SomeTag:1b })
in this case { SomeTag:1b } is parsed by rhino as a compound tag
if you log this value and it follows that format then you can use it directly js let nbtString = block.getNbt().toString() console.log(nbtString)