command_extractor
Command Extractor 是一款 Minecraft 模组,它使用与 Minecraft 内置数据生成器相同的机制,将游戏中可用的命令提取到一个 JSON 文件中。
如果你是 Minecraft 数据包开发者或程序员,且工作环境包含模组添加的命令或用户自定义命令,此模组会非常有用。几个 Minecraft 数据包和命令相关工具(如我开发的 MCDatapacker、Spyglass 以及 Beet's mecha)都接受用户定义的 commands.json 文件。该 JSON 文件定义了各种 Minecraft 命令的结构和参数。你可以利用 Command Extractor 导出的文件,使这些工具识别这些自定义命令。
本模组需要安装 Architectury API mod。
Command Extractor 目前支持 Minecraft 1.20.1、1.20.4 和 1.21.1,已在 Forge、NeoForge*、Quilt* 和 Fabric 上测试通过。对于 Minecraft 1.19.2 和 1.19.4,请使用该模组的旧版本。从 Minecraft 1.21.1 开始,该模组仅在 Fabric 和 NeoForge 上可用。请注意,有时模组的某个版本可能也能在其他 Minecraft 小版本上运行,但我并未测试所有组合。例如,适用于 Fabric 1.21.1 的模组版本也可以在 Fabric 1.21.5 上运行。
使用方法
在游戏中运行 /cmdextr 命令以提取命令。
提取出的 JSON 命令树文件将保存至游戏文件夹中的 extracted/commands.json。
默认情况下,除非使用 /cmdextr all,否则 cmdextr 命令本身不会包含在输出文件中。不过,输出文件会同时包含原版和非原版的命令。
模组不兼容问题
由于该模组使用内置逻辑来导出数据,因此无法优雅地忽略有问题的命令。因此,本模组可能与某些其他模组存在冲突。
在我的测试中,以下模组与 Command Extractor 不兼容:
- Spartan Weaponry (SpartanWeaponry-1.20.1-forge-3.1.3-all.jar)
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)
下载 Command Extractor
下载 Command Extractor
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Command Extractor
下载 Command Extractor
下载 Command Extractor
下载 Command Extractor
下载 Command Extractor
下载 Command Extractor
下载 Command Extractor
下载 Command Extractor
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧