Spellwords

模组

· 作者 cloverskid

将单词和短语转化为指令。

0 本站下载 0 关注 更新于 5 个月前

最新 1.0 · 1.21.11 · Fabric

一键开服(送7天)

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 版本。

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源