Command Extractor
by IoeCmcomc
Command Extractor, a Utility mod by IoeCmcomc, writes the game's available commands to a JSON file that datapack tools can read.
What it does
Running the cmdextr command in game exports the list of available commands to a commands.json file. The export covers both vanilla and modded commands, and the cmdextr command is included in its own output unless it is excluded. The file defines the structures and arguments of each command, so a tool can check what a command accepts.
Datapack developers and programmers can use the exported file as a working environment for modded user-defined commands. Several command-related tools, such as MCDatapacker and the Spyglass Beet's mecha, can read a user-defined commands.json file and become aware of custom commands once they use the file exported by Command Extractor.
The mod needs Architectury API, Fabric API and Quilted Fabric API (QFAPI) / Quilt Standard Libraries (QSL) as required dependencies, depending on the loader. Command Extractor runs on client and server, so the server and every player need it. Builds are published for Fabric, Forge, NeoForge and Quilt across 13 release versions, 1.19.2 – 1.21.9, and the code is under the MIT License, so it is open source.
Key features
Command export
The cmdextr command writes every available command, vanilla and modded, into a single JSON output file.
Argument structure
The output records the structure and arguments of each command, which tools need to validate datapack code.
Custom command support
Tools can load the exported file as a user-defined commands.json, so custom commands from other mods are recognized.
Datapack development
The export gives datapack authors a shared reference for writing commands against the running game.
Compatibility
Latest build for each game version and loader.
1.21.x9 of 9 versions with builds
1.20.x2 of 2 versions with builds
1.19.x2 of 2 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 2
How it compares
Resource Extractor is a client-side only Fabric mod for 1.16.5 under the MIT License, so it only extracts data on a player's client. BedrockLocate is server required with client optional, open source under the MIT License and published for Fabric, Forge and NeoForge across 1.20.1 – 1.21.11, which makes it a server-side tool. Command Extractor sits between them, as a client and server mod that needs both sides to run it.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Command Extractor | Fabric, Forge, NeoForge and Quilt | 1.19.2 – 1.21.9 | Client and server | 2025-04-16 |
| Resource Extractor | Fabric | 1.16.5 | Client-side only | 2021-04-08 |
| BedrockLocate | Fabric, Forge and NeoForge | 1.20.1 – 1.21.11 | Server required, client optional | 2026-08-14 |
Questions
Does Command Extractor need Architectury API?
Which loaders have Command Extractor files?
Do the exported commands include modded commands?
In the catalog
Command Extractor is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 13,427 mods support Minecraft 1.21.9.
Similar mods
What the author says
This mod is useful if you are a Minecraft datapack developer/programmer working in an environment with modded or user-defined commands. Several Minecraft datapack and command-related tools, such as MCDatapacker (I made it), Spyglass and Beet's mecha, accept a user-defined commands.json file. That JSON file defines…
Official listing
- Modrinth page
- modrinth.com/mod/command_extractor
- Owner
- IoeCmcomc
- Published
- 2023-09-25
- Updated on Modrinth
- 2025-04-16
- Facts verified
- 2026-10-15
