截图
介绍

Datapack Commands
Your commands, your rules.
Turn any datapack function into a real slash command — no client mod, no restart, no hassle.
Players get tab completion out of the box. You stay in control.
What it does
/cgen create heal utils:heal_player — that’s it.
Players can now type /heal and your datapack function runs. Instantly. For everyone.
Commands persist across restarts, show up in tab completion, and can be removed just as easily.
Commands
/cgen create <name> <namespace:function>
Registers a new slash command that runs a datapack function.
/cgen create heal utils:heal_player
/cgen create "shop haste" mypack:give_haste
Players can now type
/healor/shop haste— no client mod needed.
/cgen remove <name>
Unregisters a command immediately. Gone from tab completion too.
/cgen remove heal
/cgen list
Shows all registered commands and what they map to.
Registered commands:
/heal -> utils:heal_player
/shop -> mypack:open_shop
/cgen feedback <on|off>
Toggle whether "Executed function: ..." appears in chat when a command is used.
Off by default. Persists across restarts.
/cgen check
Returns 1 if the mod is loaded. Use this in your datapack to verify Datapack Commands is running.
Good to know
- Requires operator level 4 to use
/cgen - Registered players (without OP) can use the created commands freely
- Commands are saved to
"world"/datapackcommands.json - Command names: alphanumeric + underscores, max 32 characters
- This should pair well with Filiment
Server-side only — players don’t need to install anything.
This Mod may be used in modpacks and as dependencies for any datapacks/mods
常见问题
Datapack Commands 支持哪些 Minecraft 版本?
Datapack Commands 支持 Minecraft Java 版 1.20.5–26.3,共 19 个版本,可用的加载器:Fabric / NeoForge / Quilt。下载时注意选择和你游戏版本一致的文件。
Datapack Commands 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
Charken Inc. 的其他作品
查看全部 →
Sword Blocking
Adds the old sword blocking back so you can say hello and It is completely server-sided!!
Faster Paths
This Mod/Datapack gives you speed 2 on path blocks
Upgraded Stair Recipes
Makes stair recipes a lot better and is more logical
Real Life Heights (RLH)
This Datapack/Mod allows anyone to be their height in real life but in minecraft
评论
登录后评论和评分