Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Datapack Helper Plus by SpyglassNew to Visual Studio Code? Get it now.
Datapack Helper Plus by Spyglass

Datapack Helper Plus by Spyglass

SPGoding

|
269,279 installs
| (46) | Free
Heavy language features for Minecraft: Java Edition data pack files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Datapack Helper Plus by Spyglass

Discord VSCode Marketplace Version VSCode Marketplace Installs VSCode Marketplace Rating GitHub Stars License

Spyglass aims at improving users' editing experience of Minecraft data packs by providing IntelliSense features like real-time error reporting, auto-completion, semantic coloring, and code navigation tools.

Configuration

Full documentation: https://spyglassmc.com/user/config

By default, Spyglass will look for a pack.mcmeta file containing a pack_format value. The Minecraft release version matching that pack format will be used to determine the vanilla data pack, validation schemas for JSON and NBT, command-specific checks, etc.

If you wish to override the detected version, for example when working in multi-version packs, create a spyglass.json file at the workspace root containing:

{
   "env": {
      "gameVersion": "1.20.6"
   }
}

If you want resource location completions to always include the default minecraft: namespace, use the following config:

{
   "lint": {
      "idOmitDefaultNamespace": false
   }
}

Features

Semantic coloring

All command arguments are colored semantically. This extension includes syntax-mcfunction as a dependency to get instant coloring feedback.

Semantic coloring example

Diagnostics

Spyglass provides real-time diagnostics about your commands and JSON files. It can show syntax errors as Minecraft does, and even give you more detailed warnings.

Diagnostics example

Code completions

The extension can compute completions as you type commands. Completions will automatically show when typing certain characters. Alternatively you can use Ctrl + Space (or other configured hotkey) to show completions manually.

Completions in an NBT tag Completions in an NBT path Completions in a loot table file

Definition links

You can navigate to functions, advancements, loot tables, and other resources by Ctrl-clicking on their namespaced IDs. This even works for vanilla resources.

Document links example

Peek references

You can find all the references of objectives, tags, data storages, functions, and other resources in the workspace by pressing Shift + F12 or other configured key.

Peek references example

Commands

Full documentation: https://spyglassmc.com/user/commands

Reset project cache

Spyglass uses a cache to speedup the process of validating, finding references/definitions, document links, etc. However the cache may become outdated because of various reasons, which could lead to strange behaviors. You can use the Spyglass: Reset Project Cache command to regenerate the cache manually. You can open the command prompt using Ctrl+Shift+P (or other configured hotkey).

Open cache folder

If you are still experiencing problems after running the above command, you can navigate to the cache folder by using the Spyglass: Open Cache Folder command and wiping the folder. This removes the downloaded vanilla data pack, project caches, etc.

Credits

This extension is only possible thanks to all the contributors that have worked on this project!

  • Afro
  • Calverin
  • ChenCMD
  • Jacobjso
  • Misode
  • Mulverine
  • NeunEinser
  • Nicoder
  • Spgoding
  • Trivaxy
  • Vberlier

Additionally, thanks to all the translators, beta testers, and bug reporters!

The original Spyglass logo was provided by BlackNight0315. The current logo is provided by asd988.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft