Posted 14 July 2016 - 12:05 AM
I'm playing around with formatting books, and I've run into a bit of an obstacle: serializeJSON doesn't seem to work.
Here's what textutils.serializeJSON generates from my table:
Uing [font="monospace"}commands.give( "@p written_book 1 0", json ) does not work, and produces a book with an error message about an invalid data tag or some such.
However, using minecraft book editor, I generated this JSON:
Which in my mind is identical in function to the one above, but does work, when the one provided by serializeJSON does not.
Here's what textutils.serializeJSON generates from my table:
{"display":{"Lore":["Store chests"]},"author":"KingofGamesYami","title":"Your Chests","pages":[""]}
Uing [font="monospace"}commands.give( "@p written_book 1 0", json ) does not work, and produces a book with an error message about an invalid data tag or some such.
However, using minecraft book editor, I generated this JSON:
{pages:[""],title:"Your Chests",author:"KingofGamesYami",display:{Lore:["Store Chests"]}}
Which in my mind is identical in function to the one above, but does work, when the one provided by serializeJSON does not.