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

Score and selector components do not work on signs

XMLWordPrintable

    • Confirmed

      The bug

      The score and selector text components do not seem to work on signs.

      How to reproduce (score)

      Use the following commands

      /scoreboard objectives add test dummy
      /scoreboard players set @s test 1
      /setblock ~ ~ ~ standing_sign{Text1:"[\"Test: \",{\"score\":{\"objective\":\"test\",\"name\":\"@p\"}}]",Text2:"[\"\"]",Text3:"[\"\"]",Text4:"[\"\"]"} replace
      

      → The score is not displayed; inspecting the NBT of the sign shows that the value was set to ""

      To verify that the component itself works, use the following command

      /give @s written_book{title:"Test book",author:"Test author",pages:["{\"score\":{\"objective\":\"test\",\"name\":\"@s\"}}"]}
      

      How to reproduce (selector)

      Use the following command

      /setblock ~ ~ ~ standing_sign{Text1:"[\"Test: \",{\"selector\":\"@p\"}]",Text2:"[\"\"]",Text3:"[\"\"]",Text4:"[\"\"]"} replace
      

            Unassigned Unassigned
            AlexanderR123 Alexander
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: