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

Using target in book gived to player brokes content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.8.1-pre4
    • None
    • Client: W7, Java 7
      Server: Debian, Java 7
    • Unconfirmed

      Command:
      /give @p written_book 1 0 {
      title:"Test",
      pages:[
      "{
      text:\"your gold: \",
      extra:[
      {
      score:

      {name:\"@p\",objective:\"P_Gold\"}

      }
      ]
      }"
      ]
      }

      When command in command_block is executed as OP, book looks like this:
      your gold: 125

      But when is executed by player (pushing button) books looks like this:
      {
      text:"your gold:",
      extra:[
      {
      score:{name:{"@p",objective:"P_Gold"}}]}

      Steps to Reproduce:
      1. place cmd_block
      2. enter command: /give @p written_book 1 0 {
      title:"Test",
      pages:[
      "{
      text:\"your gold: \",
      extra:[
      {
      score:

      {name:\"@p\",objective:\"P_Gold\"}

      }
      ]
      }"
      ]
      }
      3. activate cmd_block
      4. /deop yourself
      5. activeate cmd_block again

      ... same problem causes using of parametr
      extra:[

      {selector:@p}

      ]

            Unassigned Unassigned
            mwkaicz Kai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: