Mods Other

Command Extractor

  • 1,296 views • 1 today
  • 48 downloads • 0 today
  • 3
  • 0
  • 2
IoeCmcomc
Level 35 : Artisan System Sus
12
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) and Spyglass, 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.

This mod currently supports Minecraft 1.20.1 and 1.20.4, tested on Forge, Quilt, and Fabric. Use older versions of the mod, available on Modrinth, for Minecraft 1.19.2 and 1.19.4.

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)
Progress100% complete
Game VersionMinecraft 1.20.4
Tags

2 Update Logs

Command Extractor v1.1.1 : by IoeCmcomc 01/05/2025 3:28:51 amJanuary 5, 2025 @ 8:28 am UTC

Update to Minecraft 1.20.1 and 1.20.4.
LOAD MORE LOGS

  Have something to say?

ThePancakeFlipper
10/11/2024 11:43 pm
Level 1 : New Miner
Hi there, Any plans to update this on 1.20
1
IoeCmcomc
10/17/2024 1:41 am
Level 35 : Artisan System Sus
While I'm busy recently, I have plans to update it eventually.
1

Welcome