Custom Commands 图标

Custom Commands

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.0
本资源为搬运资源,原资源地址: https://modrinth.com/mod/customcommands
资源信息

Minecraft 版本: 1.17-pre1 1.17-pre2 1.17-pre3 1.17-pre4 1.17-pre5 1.17-rc1 1.17-rc2 1.17 1.17.1-pre1 1.17.1-pre2 1.17.1-pre3 1.17.1-rc1 1.17.1-rc2 1.17.1 21w37a 21w38a 21w39a 21w40a 21w41a 21w42a 21w43a 21w44a 1.18

平台: fabric

标签: library utility

资源介绍

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:
    • permissionLevel - required permission level to run command
  • executes <command> - sets what command the parent node executes

sample configuration:

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"#
    }
}
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Radical Gyms & Structures [Cobblemon]

价格:0 墨喵币
下载量:0

查看详情
Armor Hotswap Paper

价格:0 墨喵币
下载量:0

查看详情
The Backrooms

价格:0 墨喵币
下载量:0

查看详情
MiniModList

价格:0 墨喵币
下载量:0

查看详情