Mojira Archive
MCPE-40864

/tellraw syntax issue

(forgive me for this sin; Helen specifically told me to report this as a bug)

The syntax of /tellraw has the following related issues:

  • All components must form a list
  • List of components are needlessly nested inside of a rawtext object

The following is the specification for what should be considered a text component (i.e. valid for tellraw):

  • A plain quoted string
  • A JSON object of key/value pairs
  • A list of text components (recursive definition)

Currently tellraw only accepts a list of JSON objects, wrapped inside a rawtext object. The following is a list of commands that should work, but don't:

/tellraw @a "Hello!"
/tellraw @a {"text":"Some text!"}
/tellraw @a ["text 1 ", {"text":"text 2 "}, [[["test3"]]]]

The following is how these commands must be rewritten to work currently:

/tellraw @a {"rawtext":[{"text":"Hello!"}]}
/tellraw @a {"rawtext":[{"text":"Some text!"}]}
/tellraw @a {"rawtext":[{"text":"text 1 "},{"text":"text 2 "},{"text":"text 3"}]}

Works As Intended

[Mod] tryashtar

2019-01-18, 07:40 AM

2019-01-23, 12:44 PM

2019-01-23, 12:44 PM

0

1

Community Consensus

169962

1.9.0.5 Beta

-