NBT.stringify
does not escape things correctly when used in JSON (as opposed to commands)
#131
Labels
Milestone
NBT.stringify({ test: '\n' })
should output"{test:'\n'}"
when used in a JSON file, not"{test:'\\n'}"
. This input impossible to specify in commands validly though.Minimal reproduction code:
Minecraft does not recognize this NBT as valid. Entering
/loot give @s loot test:book
will not work. Opening the outputted loot table file shows this error:And Minecraft logs this error:
The text was updated successfully, but these errors were encountered: