Command Extractor

Command Extractor

Extract available in-game commands to a JSON file

by
2.8K Downloads
fabricforgeneoforgequiltutility
Rent Server with this Mod

About this Mod

command_extractor

Command Extractor is a Minecraft mod that extracts available in-game commands to a JSON file, using the same mechanism as the Minecraft built-in data generator.

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 structures and arguments of various Minecraft commands. You can utilize the file exported by Command Extractor to make these tools aware of these custom commands.

This mod requires Architectury API mod to be installed.

Command Extractor currently supports Minecraft 1.20.1, 1.20.4 and 1.21.1, tested on Forge, NeoForge*, Quilt*, and Fabric. Use older versions of the mod for Minecraft 1.19.2 and 1.19.4. Starting from Minecraft 1.21.1, the mod is only available on Fabric and NeoForge. Note that sometimes a version of the mod may work on other patch versions of Minecraft, but I don't test all combinations. For example, the mod version for Fabric 1.21.1 also runs on Fabric 1.21.5.

Usage

Run /cmdextr command inside the game to extract commands.

The extracted JSON command tree file will be saved into extracted/commands.json in the game folder.

By default, the cmdextr command itself is not included in the output file unless /cmdextr all is used. Nevertheless, the output file contains both vanilla and non-vanilla commands.

Mods incompatibilities

Since the mod uses the built-in logic to export data, it can't gracefully ignore problematic commands. Therefore, this mod may not play well with some other mods.

In my tests, the following mods don't work with Command Extractor:

  • Spartan Weaponry (SpartanWeaponry-1.20.1-forge-3.1.3-all.jar)

Available Versions

v1.1.1 for NeoForge 1.21.1release
MC 1.21.1neoforge
April 16, 2025
v1.1.1 for Fabric 1.21.1+release
MC 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9fabric
April 16, 2025
v1.1.0 for Forge 1.19.2release
MC 1.19.2forge
January 5, 2025
v1.1.1 for Fabric 1.20.4release
MC 1.20.4fabric
January 5, 2025
v1.1.1 for Quilt 1.20.4release
MC 1.20.4quilt
January 5, 2025

How to Install Command Extractor on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.9).

3

Install Mod

Open the mod browser in the dashboard and search for "Command Extractor". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforgeneoforgequilt

Minecraft Versions

1.21.9, 1.21.8, 1.21.7 (+10 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Command Extractor server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.9). You can switch loaders with one click in the panel.

Is Command Extractor compatible with fabric and forge and neoforge and quilt?

Command Extractor officially supports fabric, forge, neoforge, quilt for Minecraft 1.21.9, 1.21.8, 1.21.7. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Command Extractor – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Command Extractor consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Command Extractor with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.21.21.11.20.4+3 more