Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-135254

Selector text components in JSON are not resolved correctly in written books for non-ops

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.13
    • None
    • Unconfirmed

      Written books resolves the JSON text when being opened by the player. If an op opens the book, selector components resolve correctly. However when a regular player opens the book, it causes an exception which causes the literal JSON to be displayed in the book instead.

      Steps to reproduce:

      Execute the following command

      /give @a minecraft:written_book{title:"Example",author:"someone",pages:["{\"selector\":\"@s\"}"]}
      

      If a op opened the book, it would display their name as the contents. However if a regular player opens it they will see {"selector":"@s"} instead.

            Unassigned Unassigned
            drhenchman DrHenchman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: