- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
Scoreboard
        Mqx edited this page Feb 20, 2025 
        ·
        3 revisions
      
    If your datapack creates scoreboards, the following directory structure should exist:
Datapack/
├─ pack.mcmeta
└─ data/
   └─ <namespace>/
      └─ function/
         └─ scoreboard/
            ├─ add.mcfunction
            └─ remove.mcfunction- 
<namespace>:scoreboard/addThis function should be called by the#minecraft:load.jsonwhen the datapack is started. All scoreboards are created in this file and initial values are set for the scoreboards.
- 
<namespace>:scoreboard/removeThis function should be called by the<namespace>:uninstallfunction when the datapack is removed. In this file, all scoreboards that were previously created are removed so that no artifacts are left behind.