7

JSON text format in Bedrock Edition is very different from that in Java Edition.

The possible elements to go in the {"rawtext":[]} component are:

  • text
  • translate
  • with
  • (args)

As you can see it is a very limited selection. This also means that there is no way to output a scoreboard score or a target selector's result to the chat. Is that right, or is there an alternate way to output these?

  • 3
    If it's not in the wiki, I would assume so, yes. But of course you could in some situations check every value that can occur in that situation in one command each and output accordingly. – Fabian Röling May 28 at 8:15
  • I have literally never played MCBE and I have no idea how one would even check if that is true. I only want to answer if I know that it's true. – Fabian Röling Jun 5 at 20:16
  • Dear all: Looks like no one has answered to my bounty. Because all answers provided are incorrect, I agree to waste the reputation from the bounty. Good day. – ExpertCoder14 Jul 9 at 1:24
  • I guess that means that my initial guess is probably correct. But since one can't just read the code of MCBE, it's not completely certain. – Fabian Röling Jul 9 at 8:55
  • I'm probably going to test this and give you the best answer as I know a tad of useful JSON. – Winfinity Jul 28 at 3:21
-1

if you're still looking

/tellraw @a ["",{"text":"Your score: "},{"score":{"name":"@a","objective":"your score name"}}]
| improve this answer | |
  • 6
    Hi, this is Bedrock Edition, not Java. So that command will not work. – ExpertCoder14 May 31 at 18:47
  • There is a /tellraw command in MCBE, and it does support raw JSON. @ExpertCoder14 – Winfinity Jul 29 at 21:22
  • @Winfinity But does it allow selectors and scores? – ExpertCoder14 Jul 29 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.