Struct minecraft_json::minecraft::text::Score [−][src]
Expand description
Displays a score from the scoreboard. Requires component resolution. This component is resolved into a text component containing the scoreboard value.
Fields
name: String
The name of the score holder whose score should be displayed.
This can be a selector like @p
or an explicit name. If the text is a selector, the
selector must be guaranteed to never select more than one entity, possibly by adding
limit=1
. If the text is "*"
, it shows the reader’s own score (for example,
/tellraw @a {"score":{"name":"*","objective":"obj"}}
shows every online player their
own score in the "obj"
objective).
objective: String
The internal name of the objective to display the player’s score in.
value: String
Optional. If present, this value is displayed regardless of what the score would have been.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more