介绍
Custom Commands
custom command aliases for vanillish servers written in kdl
custom commands lets server owners write a file at static_data/commands.kdl to add aliases or shorthands for special commands or triggers
current supported nodes:
– literal <name> – keyword command node
– requires [requirements] – requirements for parent node, properties determine requirements:
– opLevel – required op level to run command (permissionLevel will work but is considered deprecated)
– permission – fabric permissions api permission key required to run command
– executes <command> – sets what command the parent node executes
to do:
– [ ] allow arbitrary arguments instead of just keywords
– [ ] add more properties for requirements
– [x] vanilla op level
– [x] fabric permissions api
sample configuration:
kdl
literal "afk" { //shorthand for afk data pack https://www.planetminecraft.com/data-pack/afk-pack/
executes "trigger afk"
}
literal "giveall" { //give preset items to everyone on the server
requires permissionLevel=4
literal "diamonds" { //escaped quotes
executes "give @a diamond{display:{Name:'[{\"text\":\"happy diamond\",\"italic\":false}]'}} 64"
}
literal "magicsword" { //kdl raw strings
executes r#"give @p netherite_sword{Unbreakable:1,display:{Name:'[{"text":"magic sword","italic":false}]',Lore:['[{"text":"a sword passed down","italic":false}]','[{"text":"through the ages","italic":false}]','[{"text":"from hero to hero","italic":false}]']},Enchantments:[{id:fire_aspect,lvl:2},{id:knockback,lvl:2},{id:looting,lvl:3},{id:sharpness,lvl:5}]} 64"#
}
}
常见问题
Custom Commands 支持哪些 Minecraft 版本?
Custom Commands 支持 Minecraft Java 版 1.16–1.18,共 9 个版本,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Custom Commands 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
repulica 的其他作品
查看全部 →Less Greedy Piglins
移除俗套的猪灵交易农场
Title Scrolls
Customizable title scrolls for fabric
no fun allowed
data and component driven adventure mode location protection for showcase servers
CardStock
data driven trading cards for quilt
评论
登录后评论和评分