Перейти к содержимому
Mineforgian

CommandCrafter

Useful Minecraft command tools in a Fabric mod and VSCode Extension (syntax highlighting, completion, debugging, etc.)

Загрузки
2K
Подписчики
31
Обновлён
16 июня 2026 г.
Лицензия
MIT

Опубликован 11 августа 2024 г.

Github Repo Version on VSCode Marketplace

A video typing a macro command into a function file making use of CommandCrafter's auto-completion

This mod and the corresponding CommandCrafter VSCode extension connects your editor to Minecraft, giving you lots of useful features for datapacks, such as:

  • Syntax Highlighting (including macros)
  • Auto-completion
  • Error checking
  • A debugger that lets you set breakpoints and step through functions and evaluate arguments while paused
  • Viewing and editing scoreboards/storages in your editor
  • Viewing the client's and the server's log in your editor
  • Reload datapacks, resourcepacks or shaders with VSCode commands (can be bound to keyboard shortcuts or configured to happen automatically upon saving a file)

CommandCrafter differs from traditional datapack extensions in that everything it does is provided by the mod, which means it can use all the data available inside Minecraft. For example the auto-completion for commands can for the most part use the vanilla suggestions, which means you see all scoreboards that exist in a world or all functions known to Minecraft. CommandCrafter can detect any commands or dynamic registries added by other mods as well. This connection to Minecraft is also what makes the debugger and other features, which require deep integration with Minecraft, possible.

Additionally, the mod includes an extension of the vanilla function syntax, which optionally makes it possible to write multiline commands without backslashes and write inline functions/tags. This new function syntax can be transpiled to a vanilla datapack by the mod using the /datapack build command.

For more info on how to use this mod, visit the Getting Started page on its wiki.

Ченджлог

0.6.4+26.2Релиз26.2 · 16 июня 2026 г.
  • Updated to 26.2

Fixes:

  • Fixed incorrect/duplicated errors for particle arguments
  • Fixed missing "Load namespace:" entries in scoreboard/storage viewer
  • Fixed incorrect or missing auto-completions inside item stack/predicate arguments
0.6.3+26.1Релиз26.1, 26.1.1, 26.1.2 · 24 марта 2026 г.

Updated to 26.1

Changes:

  • Auto completing a JSON or SNBT key no longer inserts a space after the colon. This is because typing the space manually allows VSCode to also load auto-completions for the value

Removed:

  • Removed warning for missing block_pos tag when summoning a BlockAttachedEntity, since it doesn't prevent the entity from spawning

Fixes:

  • Fixed completely missing nbt completions for {equipment:{|}} in summon
  • Fixed that it was impossible to build datapacks for multiple versions with datapack build. Overlay directories will be included in the built datapack now (as well as all other files in the datapack folder such as .vscode) and it is now possible to skip function validation at specific locations using @language vanilla noBuildCheck
  • Fixed pack.mcmeta analyzer not reading "filter" section
  • Fixed that multiline arguments at the end of a @language vanilly easyNewLine command were missing suggestions in the following lines if the argument had an error
  • Fixed completely missing analyzing of pack.mcmeta specifically on Windows (eww)
0.6.2+1.21.11Релиз1.21.11 · 8 марта 2026 г.

Fixes:

  • Fixed nbt arguments (except compound arguments) being transpiled incorrectly by /datapack build
  • Fixed Modrinth metadata not including dependencies since v0.6.0 >.<
0.6.1+1.21.11Релиз1.21.11 · 25 февраля 2026 г.

Fixes:

  • Fixed tag references in block predicate arguments being transpiled incorrectly by /datapack build
0.6.0+1.21.11Релиз1.21.11 · 14 февраля 2026 г.

Changes:

  • Added syntax highlighting and autocompletion for macros!! (it's literally magic)
  • Added trigger characters for autocompletion (so VSCode automatically requests completions when you type a space or { or something like that)
  • Automatic reloading supports worldgen devtools
  • Automatically add basic feature keys to feature config, to make it easier to configure the extension without digging through the docs
  • Made it possible to copy held items or hovered items as /give commands with F3+I (press shift to copy default components)
  • Suggest Minecraft's current pack format in pack.mcmeta
  • Added support for dynamic registries from the Fabric API (meaning if other mods add dynamic registries, CommandCrafter will provide autocompletion and diagnostics for them in datapacks)
  • Only register semantic tokens for relevant languages to not mess with other extensions too much
  • Added analyzer for particle type arguments
  • Made the following command argument analyzers more lenient: Entity selectors, item stack arguments, item predicate arguments, block states, nbt, nbt paths
  • Handle many consecutive changes to a file better by (potentially) only analyzing it once instead of multiple times
  • Some performance improvements
  • The cursor is now placed in the center when autocompleting {} or []
  • Existing keys in JSON/NBT will also be suggested now, if it's the one you're currently editing
  • The debugger now keeps processing packet handlers on the main thread and processing the chat while the debugger is paused
  • Added autocompletion for \N{...} in SNBT strings
  • Changed the icon to look a bit nicer

Fixes:

  • Fixed incomplete suggestions from packrat parsers
  • Fixed missing suggestions for tag ids in JSON/NBT
  • Fixed missing semantic tokens for some score holder arguments
  • Fixed some incorrect semantic tokens in nbt paths
  • Fixed missing highlighting for '#' at the start of item predicates
  • Fixed some more errors when analyzing certain entity nbt
  • Fixed missing suggestions in empty enchantments component
  • Fixed some bugs related to /datapack build
  • Fixed lines in @language vanilla easyNewLine not being allowed to end in align <swizzle>
  • Fixed scoreboard/storage file system not updating while the server is paused by vanilla
  • Fixed missing completion for vanilla advancements and recipes when not in a world
  • Fixed debugger not removing dynamic breakpoints when stopped during a pause
  • Fixed debugger taking ages to pause in nested calls...
  • Fixed debugger sometimes not reading in breakpoints correctly
  • Fixed missing command feedback when executing commands in the Minecraft console whilst directly connected to a serverside service
0.5.5+1.21.11Релиз1.21.11 · 11 декабря 2025 г.

Updated to 1.21.11

Fixes:

  • Added missing analyzers for: assets/blockstates, assets/waypoint_style, data/tags/dialog, data/tags/timeline, data/trial_spawner, data/instrument, data/test_environment, data/test_instance, data/worldgen/multi_noise_biome_source_parameter_list. CommandCrafter will now provide autocomplete and errors for files in these folders.
  • Fixed that the language server was still registering semantic tokens even when the analyzer.semanticTokens feature was off. This caused conflicts with other VSCode extensions even when CommandCrafter wasn't really providing semantic tokens, because VSCode would still prioritize CommandCrafter's empty token list over other extensions depending on the order in which the language servers started. Now, if CommandCrafter's highlighting is turned off, VSCode will always use the highlighting from other extensions
  • Fixed that the shorten nbt gamerule didn't affect the ellipsis added for too much depth
  • Fixed that inline item tags in predicates always matched all items...
  • Fixed that SNBT literals sometimes messed things up for the @language vanilla easyNewLine language by reading too far ahead

Changes:

  • The shortenNbt Gamerule is now named command_crafter:shorten_nbt
0.5.4+1.21.9Релиз1.21.9, 1.21.10 · 15 ноября 2025 г.

Fixes:

  • Fixed network error when a datapack had very large registry files (on the order of megabytes)
  • Fixed registry sync not being cleaned up when an error happened and causing huge error logs on subsequent syncs due to duplicate entries
0.5.3+1.21.9Релиз1.21.9, 1.21.10 · 18 октября 2025 г.

Fixes:

  • Fixed shader reloading getting stuck
  • Fixed error log messages when analyzing nbt data for entities attached to blocks and there was an missing/incorrect block_pos tag (a warning will be added to the diagnostics instead)
  • Fixed missing nbt suggestions in item predicates

Комментарии

Загружаем…