截图
介绍
Command Actions provides an interface to automatically run .mcfunction files at particular events. They are loaded from the filesystem on every event call, ensuring that they are as up to date as they can be.
How to run functions?
- Open / create the
.minecraft/config/command-actions/functionsfolder - Add function files or folders containing function files with the proper event names
- Functions are detected either without an extension or with the
.mcfunctionextension. - All files in subdirectories are detected regardless of extension (or lack thereof)
- Subdirectories are recursed to find functions
Current capabilities
Some preprocessing occurs on the input. All preprocessing directives are preceded with a hash (#),
and any line preceded with a hash that is not a preprocessor is marked as a comment.
Preprocessing directives:
if,elif,else,endif– check if a given macro evaluates totrueor1, if a number is nonzero, if an equation results in a nonzero answer, or if two values are equal or unequaldefine– define a replacement to be replaced later. Not recursiveundef– remove the definition of an already defined macro. This also works for system-provided macros.
Current events
Built-in macros are listed, and all builtins (including those provided by other mods) are preceded with C_
server-ready– called after the server reports it’s ready for playersserverNameisSinglePlayeronlinemotdplayer-join– called when a player is placed into the server- All macros provided by
server-ready playerNameandplayeras shorthandplayerUUIDauthfirstJoin
常见问题
Command Actions 支持哪些 Minecraft 版本?
Command Actions 支持 Minecraft Java 版 1.19.2,可用的加载器:Quilt。下载时注意选择和你游戏版本一致的文件。
Command Actions 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。
sschr15 的其他作品
查看全部 →Quilt Kotlin Libraries (QKL)
Quilt 官方 Kotlin 前置库
Conflict in Harmony Backported
Allowing conflicting keybinds for some older versions of Forge
Quilt Kotlin Libraries (QKL)
Quilt's official Kotlin libraries
Fabricated Legacy Forge
Load Forge mods on Fabric Loader.
评论
登录后评论和评分