Skip to content

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/add This function should be called by the #minecraft:load.json when the datapack is started. All scoreboards are created in this file and initial values are set for the scoreboards.
  • <namespace>:scoreboard/remove This function should be called by the <namespace>:uninstall function when the datapack is removed. In this file, all scoreboards that were previously created are removed so that no artifacts are left behind.
Clone this wiki locally