BetterChatting 数据包
使用 BetterChatting 数据包提升你的 Minecraft 聊天体验!该数据包为各类聊天消息添加了交互性和视觉吸引力,包括悬停效果、可点击操作以及自定义格式。
重要提示
在 1.20.X 版本中,点击事件无法像往常一样正常工作
功能
- 交互式聊天消息:悬停在消息上以查看工具提示,并点击执行操作。
- 自定义格式:不同聊天类型拥有独特的后缀和样式。
- 剪贴板集成:一键复制预设文本。
- 命令建议:通过点击聊天消息快速建议命令。
- 朗读支持:通过屏幕阅读器的朗读键改善无障碍访问体验。
安装
- 下载 发布页面中的最新数据包版本。
- 放置 下载的文件到 Minecraft 世界的
datapacks 文件夹中:
<world_folder>/datapacks/
- 重载 世界或在游戏内运行以下命令:
/reload
支持的聊天类型
该数据包增强了以下聊天类型的功能:
| 聊天类型 |
前缀 |
功能 |
| chat.json |
[P] |
灰色文本,悬停时提示 /me agreed。 |
| emote_command.json |
[*] |
白色斜体文本,悬停时提示 /me D:。 |
| msg_command_incoming.json |
[Player -> you] |
红色文本,悬停时可复制 "Talk to you later"。 |
| msg_command_outgoing.json |
[you -> Player] |
红色文本,悬停时可复制 "Talk to you later"。 |
| say_command.json |
[OP] |
白色粗体文本,悬停时提示 /me OK。 |
| team_msg_command_incoming.json |
[TeamName] |
蓝色粗体文本,悬停时提示 /teammsg agreed。 |
| team_msg_command_outcoming.json |
[-> TeamName] |
蓝色粗体文本,悬停时提示 /teammsg agreed。 |
使用示例
公共聊天
- 消息:
[P] Steve: Hello! [like]
- 悬停提示:
[P] 点击同意。
- 操作: 点击后建议
/me agreed。
表情命令
- 消息:
[*] Steve waves [D:]
- 悬停提示:
[*] 点击发送 'D:'。
- 操作: 点击后建议
/me D:。
私信
- 消息:
[Steve -> you] Hi there! [ttyl]
- 悬停提示:
[C] 点击复制 'Talk to you later'。
- 操作: 点击后将 "Talk to you later" 复制到剪贴板。
要求
- Minecraft 版本: Java 版 1.20 或更高版本。
- 数据包格式: 兼容数据包格式 15–94。
- 世界权限: 必须拥有操作员权限才能安装和重载数据包。
配置
要自定义聊天消息的行为:
- 编辑
data/minecraft/chat_type/ 目录中的 JSON 文件。
- 根据需要修改
translation_key、style 或 click_event 字段。
- 运行
/reload 应用更改。
许可
本项目采用 MIT 许可证授权。
联系方式
如有问题、建议或反馈,欢迎联系:
- 作者: FeSo4a
- GitHub: @FeSo4a
- Modrinth: @FeSo4a
享受 BetterChatting 带来的风格化聊天体验!
BetterChatting Data Pack
Enhance your Minecraft chat experience with the BetterChatting data pack! This pack adds interactive and visually appealing chat messages with hover effects, clickable actions, and custom formatting for various chat types.
IMPORTANT
CLICK EVENT CANNOT WORK AS USUAL IN 1.20.X
Features
- Interactive Chat Messages: Hover over messages to see tooltips and click to perform actions.
- Custom Formatting: Unique prefixes and styles for different chat types.
- Clipboard Integration: Copy predefined text with a single click.
- Command Suggestions: Quickly suggest commands by clicking on chat messages.
- Narration Support: Improved accessibility with narration keys for screen readers.
Installation
- Download the latest version of the data pack from the releases section.
- Place the downloaded file into your Minecraft world's
datapacks folder:
<world_folder>/datapacks/
- Reload the world or run the following command in-game:
/reload
Supported Chat Types
The data pack modifies the following chat types with enhanced features:
| Chat Type |
Prefix |
Features |
| chat.json |
[P] |
Gray text with hover tooltip suggesting /me agreed. |
| emote_command.json |
[*] |
Italic white text with hover tooltip suggesting /me D:. |
| msg_command_incoming.json |
[Player -> you] |
Red text with hover tooltip to copy "Talk to you later". |
| msg_command_outgoing.json |
[you -> Player] |
Red text with hover tooltip to copy "Talk to you later". |
| say_command.json |
[OP] |
Bold white text with hover tooltip suggesting /me OK. |
| team_msg_command_incoming.json |
[TeamName] |
Bold blue text with hover tooltip suggesting /teammsg agreed. |
| team_msg_command_outcoming.json |
[-> TeamName] |
Bold blue text with hover tooltip suggesting /teammsg agreed. |
Usage Examples
Public Chat
- Message:
[P] Steve: Hello! [like]
- Hover Tooltip:
[P] Click to agree.
- Action: Suggests
/me agreed when clicked.
Emote Command
- Message:
[*] Steve waves [D:]
- Hover Tooltip:
[*] Click to send 'D:'.
- Action: Suggests
/me D: when clicked.
Private Message
- Message:
[Steve -> you] Hi there! [ttyl]
- Hover Tooltip:
[C] Click to copy 'Talk to you later'.
- Action: Copies "Talk to you later" to clipboard when clicked.
Requirements
- Minecraft Version: Java Edition 1.20 or later.
- Pack Format: Compatible with pack formats 15–94.
- World Permissions: Must have operator permissions to install and reload datapacks.
Configuration
To customize the behavior of the chat messages:
- Edit the JSON files in the
data/minecraft/chat_type/ directory.
- Modify the
translation_key, style, or click_event fields as needed.
- Run
/reload to apply changes.
License
This project is licensed under the MIT License.
Contact
For questions, suggestions, or issues, feel free to reach out:
- Author: FeSo4a
- GitHub: @FeSo4a
- Modrinth: @FeSo4a
Enjoy chatting in style with BetterChatting!
评论 0
登录后参与评分
还没有评论,来抢沙发吧