Score
Overview
Substitutes the Scoreboard-value of a given objective for a provided score-holder; this tag acts as a placeholder and must thereby be self-closing (does not accept content).
<score
name: string
↪ Name of the score-holder (player-name)
objective: string
↪ Name of the target-objective
type: string(null)
↪ Additional objective-parameter if required
↪ e.g. sand for objective mine_block
override: string(null)
↪ Value to use as an override
fallback: string(null)
↪ Value to use as a fallback
renderer: markup(null)
↪ Custom renderer to display a value
↪ Introduces the {score_value} placeholder
/>
Examples
Plain Value
In order to retrieve a score-value as-is, there's no need to specify a custom renderer.
By default, the scoreboard does not track any of the existing vanilla criteria, thus they need to be added manually by invoking: Code-Blocks are only available within the browser. For this web-renderer, we randomly generate them.
Modified Value
With the renderer, score-values may be modified as desired; let's transform the count of half-hearts that Code-Blocks are only available within the browser shows a fractional number.
Code-Blocks are only available within the browserTyped Value
Some objectives require a type, like when one wants to resolve how many blocks of a specific material have been mined by a player.
Code-Blocks are only available within the browser