How to format a string from "Compound({"foo": Int(123)})"
to become a nbt Compound({"foo": Int(123)})
, the parse_nbt can only understand from "{foo: 123}"
I tried to unpack()
my compound to a string and then parse_nbt()
my string but it mess with the tags, Byte and Long become Int f.e. and I need to be consistent about the tags
New contributor
Anthony C is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.