# ChatControl-Red

[此处下载](https://www.mc-market.org/resources/18217/)

ItemsAdder 表情兼容性:\
查看详情: <https://github.com/kangarko/ChatControl-Red/issues/853#issuecomment-818497610>

## 添加自定义频道前缀

如果你想设置一个在聊天中显示的图片频道前缀，请跟随此指引.

![用于Arcade频道的ARCADE前缀](https://2963347129-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M28TcKgSDvuFN510qye%2F-Mgv46AhKMt_2qo9C0pv%2F-Mgv9jF7wQCZVnrYug3D%2Fimmagine.png?alt=media\&token=265c5cfd-d2f5-4a58-b853-bee2d1cc0774)

你只需要在格式配置中设置如下内容，(比如在 ChatControl Red 的 `format/arcade.yml` 中)：

```yaml
  prefix:
    Message: ':arcade:'
```

显然你需要使用你自己的 [font\_image ](https://itemsadder.devs.beer/chinese/cha-jian-shi-yong-fang-fa/adding-content/font-images)名称，而非 `arcade` ，这只是示例。

## 文本效果

通常 ItemsAdder 的文本效果不会在 ChatControl Red 中生效。\
但如果你把下方内容添加至 ChatControl Red 的 rules 文件夹中，它们就会生效。（我放到了 `global.rs` 里）。

```
match <r\s([^>]+)>
require perm ia.user.text_effect.use.r
strip colors false
then replace #FFFFFE$1&r
    
match <w\s([^>]+)>
require perm ia.user.text_effect.use.w
strip colors false
then replace #FFFFFD$1&r
    
match <j\s([^>]+)>
require perm ia.user.text_effect.use.j
strip colors false
then replace #FFFFFB$1&r
    
match <rw\s([^>]+)>
require perm ia.user.text_effect.use.rw
strip colors false
then replace #FFFFFC$1&r
    
match <rj\s([^>]+)>
require perm ia.user.text_effect.use.rj
strip colors false
then replace #FFFEFE$1&r
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://itemsadder.devs.beer/chinese/compatibility-with-other-plugins/compatible/chatcontrol-red.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
