-
Notifications
You must be signed in to change notification settings - Fork 0
Scoreboard Storage Viewer
The Scoreboard/Storage viewer lets you view scoreboard and storages as files in your editor. It is placed on the bottom of the "Explorer" tab by default and requires a connection to the language server. When you are in a world, it will display a list of all scoreboards and all loaded storages that can be opened. (when a storage namespace has not been accessed since the world was loaded, storages from that namespace won't be displayed in the viewer).
All files opened by Scoreboard/Storage viewer can be freely modified. If the file is saved and has no errors, the changes will also happen in-game.
Scoreboards are presented as JSON files. These files contain two things:
- A JSON object that contains all score-names and their values in the scoreboard.
- A JSON object that contains all configurations for the scoreboard (such as display name, criterion, number format etc.)
The language server offers completions and error detection for scoreboards as well.
Storages are presented either as unformatted SNBT text or as NBT files. Both of those only contain the storage data that /data can access. The VSCode extension chooses which of these files to open by checking whether any installed extension provides an editor for NBT files. If such an extension exists, the NBT file will be opened, otherwise the SNBT text file is opened.