本模组需要 Cloth Config API。
聊天动作 (Chat Actions)
Chat Actions 是一个允许你在聊天中触发特定条件时发送消息或执行命令的模组。它类似于 Chat Triggers,但无需任何编程知识或导入模块,尽管功能稍有限制。Chat Actions 完全在客户端运行,因此你可以放心地在任何服务器上使用。所执行的宏操作仅限于聊天框,这意味着它在大多数服务器上都是被允许的。
使用方法
按 I(或你配置的其他快捷键)打开配置界面。在那里,你可以编辑你的动作和触发器。

动作是当满足触发条件时将执行的操作,而触发器是在聊天中必须满足的条件,以便执行相应的动作。

特殊动作
通常情况下,动作只是在聊天中粘贴你设置的消息或运行命令。然而,在 1.20 及更高版本中,你可以使用这些特殊动作通过在输入框中编写对应的特殊动作并后跟你的输入来执行某些任务,如下所示:

以下是截至 1.20 版本可用的特殊动作。
- displayClientMessage <text>: 显示仅你能看到的消息,例如:

- displayTitle <text>: 在你的屏幕上显示标题。
- displaySubtitle <text>: 在你的屏幕上显示副标题。
- playSound <sound>: 播放声音。
- 提示:你可以通过 /playsound 命令查看可用声音列表,以了解有哪些声音可用。playSound 中的声音格式与 Minecraft 的 playsound 命令完全一致。因此,如果你想播放环境牛叫声,你的动作应如下所示:playSound:minecraft:entity.cow.ambient
一些示例用法
该模组的一些示例用法包括:
- 当玩家在服务器上说出禁止的内容时,自动封禁/静音他们
- 当你暂时离开键盘(AFK)时,如果朋友在聊天中说话,自动回复他们并告知他们你的情况
- 上一局游戏结束后自动重新排队进入游戏
- 在游戏结束后发送 GG
这仅仅是使用该模组的众多可能性中的一部分。
需要注意的事项
- 触发器和动作是一一对应的。触发器 #1 将触发动作 #1,动作 #2 将对触发器 #2 做出响应,以此类推。
- 要添加新的触发器/动作,请关闭界面并重新打开。将出现两个新的空白框供你使用。
- 要移除触发器/动作,请将对应的框留空。如果两个匹配的触发器/动作都为空(例如动作 #1 和触发器 #1),它们将被自动移除。
- 模组进行的是精确匹配,而不是查找包含触发词的消息。
- 触发器区分大小写。
- 自 1.20 版本起,该模组会自动从触发器中移除颜色格式化代码。
- 某些服务器(如 Hypixel)会对消息进行颜色格式化。模组无法识别这种格式化,因此可能无法在这些服务器上监控玩家聊天——但是,服务器消息(例如“你输了”)仍然会被触发。
This mod requires Cloth Config API.
Chat Actions
Chat Actions is a mod that allows you to send messages and run commands when a trigger is sent in chat. It's similar to Chat Triggers, but without any coding knowledge or importing modules required, albiet more limited. Chat Actions is completely client-sided, so feel free to use it on any server. The macros that are performed are limited to the chat box, meaning that it should be allowed on most servers.
How to Use
Press I (or whichever keybind you have configured) to open the configuration screen. From there, you can edit your actions and triggers.

Actions are actions that will be performed when the trigger is met, and triggers are the conditions that have to be met in chat for an action to be performed.

Special Actions
Normally, actions just paste the message you set in chat or run a command. However, in 1.20 and above, you can use these special actions to perform certain tasks by writing the corresponding special action in the box, followed by your input, like such:

These are the possible special actions that you can use, as of version 1.20.
- displayClientMessage <text>: Displays a message that only you can see, like such:

- displayTitle <text>: Displays a title on your screen.
- displaySubtitle <text>: Displays a subtitle on your screen.
- playSound <sound>: Plays a sound.
- Tip: You can look through the available sounds in /playsound to see what the available sounds are. The sounds in playSound are formatted exactly like those in Minecraft's playsound command. So, if you were to play an ambient cow sound, this is what your action would look like: playSound:minecraft:entity.cow.ambient
Some Example Usages
Some example usages for this mod are:
- Automatically ban/mute players on your server when they say things that are not allowed
- Respond to your friends if they say something in chat while you are AFK and let them know about your situation
- Requeue into a game after the last one has endedd
- Say GG after a game
These are just some of the opportunities you have with this mod.
Good Things to Know
- The triggers/actions match each other. Trigger #1 will trigger action #1, and action #2 will respond to trigger #2, etc.
- To add triggers/actions, close the screen and re-open it. Two new blank boxes will appear that you can use.
- To remove triggers/actions, make the box blank. If two matching triggers/actions are blank (so action #1 and trigger #1, etc) they will automatically be removed.
- The mod looks for exact matches, not messages that contain the trigger.
- Triggers are case-sensitive.
- As of 1.20, this mod automatically removes color formatting from the triggers.
- Some servers, such as Hypixel, format their messages to color them. The mod will not pick up on this formatting, so it may not be possible to monitor player chat on these servers - however, server messages (such as 'You Lost') will still fire.
下载 Chat Actions
下载 Chat Actions
下载 Chat Actions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Chat Actions
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Chat Actions
下载 Chat Actions
下载 Chat Actions
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧