Scoreboards
Wraps Minecraft scoreboards with objective management and per-entity score operations.
This split between objective handles and per-entity score handles maps well to how vanilla scoreboards already work, but with a more readable API.
Objectives
| Function | Description |
|---|---|
create |
Create the objective |
remove |
Remove the objective |
setDisplaySlot |
Assign a display slot |
setDisplayName |
Set the display name |
setRenderType |
Set the render type |
Practical pattern
The usual pattern is to configure the objective once, then retrieve entity-specific score handles wherever gameplay code needs to increment, reset, or copy values.
Per-entity scores
| Function | Description |
|---|---|
set |
Set score to a value |
add |
Add to the score |
remove |
Subtract from the score |
reset |
Reset the score |
copyTo |
Copy this score to another holder/objective |
copyFrom |
Copy from another holder/objective |
