All Mods Resource Packs Data Packs Shaders Modpacks Plugins
CommandCrafter

CommandCrafter

by Papierkorb2292 • Downloads: 0 • Followers: 0
Description
Gallery
Changelog
Versions

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.

How to Install CommandCrafter (Mod)

CommandCrafter by Papierkorb2292 is verified for Fabric across Minecraft versions 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6 (latest release: 0.8.3+26.3, file size: 4.3 MB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6) and platform (Fabric).
  2. Make sure you have the compatible loader or environment installed for Fabric.
  3. Move the downloaded CommandCrafter file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3
Fabric
1mo ago 1
26.3
Fabric
2mo ago 1
26.3
Fabric
2mo ago 1
26.3
Fabric
2mo ago 1
26.2
Fabric
3mo ago 1
26.2
Fabric
3mo ago 1
26.2
Fabric
4mo ago 1
26.2
Fabric
5mo ago 1
26.1.x
Fabric
8mo ago 1
1.21.11
Fabric
9mo ago 1
1.21.11
Fabric
9mo ago 1
1.21.11
Fabric
9mo ago 1
1.21.11
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.9
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.5
Fabric
last yr. 1
1.21.5
Fabric
last yr. 1
1.21.5
Fabric
last yr. 1
1.21.4
Fabric
last yr. 1
1.21.4
Fabric
last yr. 1
1.21.x
Fabric
last yr. 1
1.21.1
Fabric
last yr. 1
Fixes:
  • Fixed tab characters not being allowed at the start of function lines
  • Restored compatibility with adventure-platform-fabric
Fixes:
  • Fixed an incompatibility with the PackTest mod
Fixes:
  • Fixed that auto reload did not detect all (new) reloadable file types
  • Fixed that there was no analyzer for dimension files
  • Fixed a network error that happened when a reload removes tags that a dynamic registry entry references
  • Fixed completely missing auto-completions for item slots in chat after typing at least one character
  • Debugger should use "step" as stop reason after stepping
  • Correctly handle trailing whitespace after an inline function in the editor
  • Updated to 26.3

Changes:
  • Added the command_crafter:term context int/float provider type, which allows evaluating mathematical expressions (and can be transpiled to vanilla providers)
  • Added highlighting, diagnostics, hover, and "Go to definition" support for substitutions in translate text components

Fixes:
  • Fixed angry_at tag missing from auto-completion
  • Fixed rare disconnect from Minecraft server due to large log messages
  • Fixed analyzing missing the last character in a macro in @language vanilla easyNewLine mode
Changes:
  • Added support for color pickers in VSCode
  • (block-)entity NBT can now be read in everywhere (selectors, data merge, etc.)
  • Added support for auto-completing NBT paths
  • All of the mod's NBT auto-completions are also available in chat now (if this conflicts with other mods, it can be disabled in the config by setting add-ingame-suggestions to false)
  • Selectors, NBT paths, Commands and Macros inside NBT or JSON strings are also parsed now
  • The macro cache now detects if only a single macro was changed, in which case only that macro has to be reparsed
  • Added warnings for unknown/unused JSON or NBT keys
  • Added @ as trigger character for completions
  • Added "SavedFileAutomaticReloadDelay" setting in VSCode
  • Added the /commandcrafter:datagen clientside command, which uses Minecraft's datagen to produce files similar to mcmeta (commands.json,blocks.json and registries.json), which can be loaded into Spyglass. The corresponding Spyglass config is also generated in the output folder if there isn't already a Spyglass config present.
  • The data generation can also be invoked on server start by setting the -Dcc_server_datagen_dir=path/to/output JVM argument
  • "Go to definition" now also works if the cursor is exactly at the end of an id
  • Some performance improvements

Removed:
  • Removed SNBT highlighting for strings that just look like SNBT but Minecraft doesn't actually parse them as SNBT

Fixes:
  • Fixed SNBT builtin functions not being highlighted
  • Fixed SNBT incorrectly suggesting commas in some places
  • Fixed missing suggestions for tag entries
  • Fixed that the mod suggested some unicode name in "\N{...}" that aren't actually accepted by Minecraft
  • Fixed particle argument analyzer in vanilla easyNewLine trying to read nbt in lines following it
  • Fixed that max_format suggestions in pack.mcmeta specified a minor version, which isn't forwards compatible
  • Fixed some thread pools not being shutdown when Minecraft exits and leading to a watchdog timeout

Fixes:
  • Fixed missing serverside autocompletions inside inline functions
  • Fixed nbt paths compiling incorrectly
Fixes:
  • Fixed datapack loading error when a function tag referenced another tag using "required": false but the referenced tag wasn't present
  • 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
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)
Fixes:
  • Fixed nbt arguments (except compound arguments) being transpiled incorrectly by /datapack build
  • Fixed Modrinth metadata not including dependencies since v0.6.0 >.<
Fixes:
  • Fixed tag references in block predicate arguments being transpiled incorrectly by /datapack build
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
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
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
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
CommandCrafter Icon
Download CommandCrafter
Select game version
Select platform