Hello!
I've been working on making things from plugins with normal command blocks and I can't seem to figure this out... I'd like to create a command that replaces the text on a sign with whatever player has a certain scoreboard objective score. It would look something like this:
/blockdata ~ ~1 ~-2 {Text1:"{\"text\":\"Best Miner:\",\"color\":\"gold\"}",Text2:"{\"text\":\" \","extra":[{"selector":"@a[bestmine=2]"},\"color\":\"green\",\"bold\":true}"}
but it doesn't seem to work...
I think whatever is wrong with it is a silly mistake, because everything looks fine to me. Any feedback is appreciated!
I've been working on making things from plugins with normal command blocks and I can't seem to figure this out... I'd like to create a command that replaces the text on a sign with whatever player has a certain scoreboard objective score. It would look something like this:
/blockdata ~ ~1 ~-2 {Text1:"{\"text\":\"Best Miner:\",\"color\":\"gold\"}",Text2:"{\"text\":\" \","extra":[{"selector":"@a[bestmine=2]"},\"color\":\"green\",\"bold\":true}"}
but it doesn't seem to work...
I think whatever is wrong with it is a silly mistake, because everything looks fine to me. Any feedback is appreciated!
5
oops it was selector, well my nonsense about score is just me being weird xD
As far as I'm aware, you don't need to put the selector inside and extra tag if you only have that one element on that line. Also, you're missing a couple quote escapes around that part and you defined the score selector slightly wrong. Try this:
/blockdata ~ ~1 ~-2 {Text1:"{text:\"Best Miner\",color:gold}",Text2:"{selector:\"@a[score_bestmine_min=2]\",color:green,bold:true}"}Thanks! This worked.
Maybe try to get the score tag one layer up, and remove the text tag....
You don't need the text tag and it might bug using the extra tag on an empty text tag.
Just put the score tag on the first layer.
You don't need the text tag and it might bug using the extra tag on an empty text tag.
Just put the score tag on the first layer.
Or you can just install the plugin.
