Interface ScoreComponent

All Superinterfaces:
Buildable<ScoreComponent.Builder>, BuildableComponent<ScoreComponent,ScoreComponent.Builder>, Component, ComponentBuilderApplicable, ComponentLike, HoverEventSource<Component>, ScopedComponent<ScoreComponent>, StyleGetter, StyleSetter<Component>

A component that can display a player's score from a scoreboard objective, with an optional fallback value if the search for the score fails.

This component consists of:

name
a player username or a Minecraft selector that leads to a single player
objective
a scoreboard objective
value (optional, obsolete)
a value to use that will override any queried scoreboard value

This field is no longer present in the game from 1.16.5, which means it will be ignored

This component is rendered serverside and can therefore receive platform-defined context. See the documentation for your respective platform for more info

Since:
4.0.0