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

Selectors in written books require player to be operator to work

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Minecraft 1.9.4, Minecraft 1.10 Pre-Release 1, Minecraft 1.10 Pre-Release 2, Minecraft 1.10.2, Minecraft 1.11.2, Minecraft 1.12.2, Minecraft 18w03b, Minecraft 1.13, Minecraft 1.13.1, Minecraft 1.14.2 Pre-Release 2, 1.14.4, 1.15.2, 1.16.3, 1.16.5, 1.19
    • None
    • None
    • Confirmed
    • Commands
    • Important

    Description

      The bug

      Usage of selectors in books don't work, unless the player being given the book is an operator. Basically, let's say you have such a command:

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

      When the command block is powered, a player who is an operator will receive a book, which on its first page will have their IGN printed. A player who is NOT an operator will receive a book with an empty first page.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              PiyoPwincess Piyotato
              Votes:
              42 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                CHK: