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} \"Wait {cooldown} seconds before using this spell again.\"",
"denyCommand": "tellraw {player} \"You are not a magician!\"",
"exactMatch": true,
"ignoreCase": true,
"cancelMessage": true,
"cooldownSeconds": 10,
"runAsConsole": true,
"permission": "spellwords.fireball"
},
{
"words": ["badword", "anotherbadword", "плохое слово"],
"command": "tellraw {player} \"Sorry, but that word is banned!\"",
"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 版本。
你是这个资源的作者?登录后可认领此资源。
相似资源
玉Jade ?
Snownee
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
实用前置
324
物品管理器Just Enough Items (JEI)
mezz
查看物品与配方
前置实用
229
KubeJS
Lat
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
前置实用
206
Xaero的小地图
thexaero
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
冒险交通
196
Applied Energistics 2
shartte
AE2:一款流行的自动化与存储模组
存储科技
165
开放派对与认领Open Parties and Claims
thexaero
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
前置实用
153
评论 0
登录后参与评分
还没有评论,来抢沙发吧