Scoreboards and Teams

Cardinal Components Scoreboard  

This module allows mods to attach components to Scoreboard and Team objects. The former can be used for storing global data, while the latter can be especially useful for implementing multiplayer systems like minigames and factions.



Scoreboard components are registered by a ScoreboardComponentInitializer, exposed as cardinal-components-scoreboard in the mod json (more information on the component registration page). Once a component factory is registered for either scoreboards or teams, its associated component will be available on every relevant instance, on both clients and servers.


Scoreboard components can be automatically synchronized from the server to the client by implementing AutoSyncedComponent - more information is available on the component synchronization page.


Scoreboard components support both server and client ticking. They get ticked at the end of the server/client tick.

CCA Dev Wiki