-
Bug
-
Resolution: Duplicate
-
None
-
Minecraft 17w45b
-
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
- duplicates
-
MC-121827 Selectors and scoreboards not working for signs (works correctly for books, /tellraw, and /title)
- Resolved