Scoreboards
Scoreboards track numeric values for players and entities. They're one of the two runtime variable containers in a datapack (the other being data storage), and are essential for game mechanics, timers, and counters. If you're unsure when to use a scoreboard versus a Kotlin variable, read Runtime Logic first. For the full scoreboard command reference, see Commands.
You can manage scoreboards with the scoreboard command:
Creating objectives
You have multiple forms of the scoreboard command:
Managing objectives
You can add, remove, set display name, set display slot, set render type of objectives:
Manage players
You can manage players with the players block:
You can also manage an objective for multiple selectors at once:
Or also manage an objective for a single selector:
These methods offer a more readable way to manage objectives, and avoid repetition operations invoking multiple times the same selector/objective.
Sidebars
To show custom text lines on the right of the screen, like on servers, use the Sidebars helper from the helpers module.
