The bug
The score-tag in a book does not work, if you /give
it to someone who is not an operator or, in a singleplayer world, if cheats are disabled. Video demonstrating the issue: http://youtu.be/QTfumET7Apo
How to reproduce
Start a world with cheats off
Open the world in LAN and and set 'allow cheats' to ON
/give
yourself a command block and insert the command belowReopen your world
Activate the command block. You should now get a book that shows the JSON-text instead of the score.
Alternatively, you can test it on a server if you deop yourself after you entered the following command
/give @a written_book{
title:"Test",
author:"Test",
pages:
[
"{
\"text\":\"\",
\"bold\":true,
\"extra\":
[
{
\"score\":
{
\"name\":\"@p\",
\"objective\":\"Test\"
}
}
]
}"
]
}
Linked issues
is duplicated by 7
Attachments
Comments 32
Eeehmm, if I've use " before, it's like \", or? And because of what works the command upto reload the world again, if I just rightclick the command block and press "finish" without change anything?
And because of what does it only not work with the score tag? This works fantastic:
/give @a written_book 1 0
{
title:"Test",
author:"Test",
pages:
[
"{
text:'',
bold:true,
extra:
[
{
text:'Hello world!'
}
]
}"
]
}
btw: For this it's the same:
/give @a written_book 1 0
{
title:"Test",
author:"Test",
pages:
[
"{
text:\"\",
bold:true,
extra:
[
{
score:
{
name:\"@p\",
objective:\"Test\"
}
}
]
}"
]
}
/give @a written_book 1 0 {pages:["{\"text\":\"\",\"extra\":[{\"score\":{\"name\":\"@p\",\"objective\":\"Test\"}}]}"],title:Book,author:TellrawGenerator}
Well, if i write this in a command block and reload the world, it doesn't work as well... It doesn't work, because it's a bug! What's so complicated? Just try it out and don't forget to reload the world before activating the command block...
Both score and selector tags do not work in books. However, with the score tag, If you use a UUID for the name it will work for non-ops as well.
(Older comment), so this is just selectors not working, right? Then I'm convinced this and MC-103171 are the same issue (non-OPs cannot resolve selectors in written books).
Just updated the post, because I have reproduced the bug.