Command lines for written books?

Started by EnsurdFrndship on Mon, 06/01/2020 - 19:11

Topic category: Help with modding (Java Edition)

Last seen on 20:43, 10. Jun 2020
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Command lines for written books?
Mon, 06/01/2020 - 19:14 (edited)

Hello,

     I have developed a mod that places 10,000 chests in a random range of 100 away from the relative position of the player when the world loads. Each chest is also given 1 written book at the top-left most slot (slot 0). I was told there is no way to edit the vanilla tags of a written book (to give data to the 'title', 'author' and 'pages') and that command lines would be useful to do this. Is there a GUI 'puzzle piece' for adding 'command lines' in your mods? If there is, in the command line of my mod, I have manually added the command...

   /give @p writable_book 1 0 {"title":"Title","pages":["Writing"]}

and I get the error 

    Component 'pages' was not an object.

... so if there IS a GUI 'puzzle piece' for adding command lines, I can't seem to assign the JSon data of my last argument to my book without receiving this error. What is the correct command line for giving writable or written books? 

Edited by EnsurdFrndship on Mon, 06/01/2020 - 19:14