
咒语词
将单词和短语转换成命令。
SpellWords
将单词和短语转换为指令。
创建自定义聊天触发,当玩家发送特定消息时执行指令。
功能
- 从聊天消息触发指令
- 每个条目支持多个触发词
- 每个触发词独立冷却系统
- 基于权限的触发(支持 LuckPerms)
- 可选择性取消原始聊天消息
- 冷却和权限的备用指令
- 完全服务端运行
- 支持任何语言(包括非拉丁文字)
配置
触发属性
| 属性 | 描述 | 默认值 |
|---|---|---|
| words | 激活触发的单词或短语列表 | [] |
| command | 触发时执行的指令(支持 {player}) |
"" |
| cooldownCommand | 触发处于冷却时执行的指令(支持 {cooldown}) |
"" |
| denyCommand | 玩家缺少权限时执行的指令 | "" |
| exactMatch | 要求完整消息匹配 | false |
| ignoreCase | 忽略大小写匹配 | true |
| cancelMessage | 取消原始聊天消息 | false |
| cooldownSeconds | 冷却时间(秒) | 0 |
| runAsConsole | 以服务器/控制台身份执行指令 | false |
| permission | 可选权限节点 | "" |
示例
{
"triggers": [
{
"words": ["fireball"],
"command": "execute as {player} at @s run summon fireball ~ ~1 ~ {ExplosionPower:30}",
"cooldownCommand": "tellraw {player} \"等待 {cooldown} 秒后再使用此法术。\"",
"denyCommand": "tellraw {player} \"你不是法师!\"",
"exactMatch": true,
"ignoreCase": true,
"cancelMessage": true,
"cooldownSeconds": 10,
"runAsConsole": true,
"permission": "spellwords.fireball"
},
{
"words": ["坏词", "另一个坏词", "плохое слово"],
"command": "tellraw {player} \"抱歉,该词已被禁止!\"",
"cooldownCommand": "",
"denyCommand": "",
"exactMatch": false,
"ignoreCase": true,
"cancelMessage": true,
"cooldownSeconds": 0,
"runAsConsole": true,
"permission": ""
},
{
"words": ["AvAdA kAdAbRa"],
"command": "kill {player}",
"cooldownCommand": "",
"denyCommand": "",
"exactMatch": true,
"ignoreCase": true,
"cancelMessage": false,
"cooldownSeconds": 0,
"runAsConsole": true,
"permission": "spellwords.awadakadabra"
}
]
}
备注
此模组最初为个人服务器创建,现公开分享给任何想使用的人。
更新主要根据服务器需求驱动。
目前不计划向后移植到旧版 Minecraft,但偶尔可能会进行。
欢迎报告错误、问题或建议。
允许并欢迎移植到其他 Minecraft 版本。
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。