模组介绍
ChatBox 是一款专为 Minecraft 设计的对话框模组,其灵感来源于 Galgame(美少女游戏)中的对话系统。你可以使用数据包对其进行配置:
-
预设多种对话框主题,并可通过命令随时切换。
-
自定义对话框、选项框、历史记录按钮以及角色立绘的外观、位置和大小。
-
角色立绘支持多种类型:图片、玩家头像和物品纹理。你可以为这些立绘定义自定义入场动画,其中图片自带 3 种预设动画。
-
配置每行对话的文本及多个选项。点击选项可触发自定义命令并跳转至其他对话。
-
所有文本元素(对话、选项)均支持翻译键。
由于所有对话配置均通过数据包实现,你可以直接使用 /reload 命令重新加载所有对话设置。无需修改任何代码,即可打造精美的对话系统!
内置命令
切换主题:
/chatbox theme
跳转至特定对话:
/chatbox skip
打开对话框:
/chatbox open
事件系统
对于 KubeJS 用户,该模组提供了预定义的事件:
//client_script
// 在对话框渲染之前触发。提供 GuiGraphics 用于自定义渲染。可取消。
ChatBoxEvents.renderPre(event=>{
let getGuiGraphics = event.getGuiGraphics()
event.cancel()
})
// 在对话框渲染之后触发。提供 GuiGraphics 用于自定义渲染。
ChatBoxEvents.renderPost(event=>{
let getGuiGraphics = event.getGuiGraphics()
})
// 当跳转到对话时触发。提供对话元数据以支持自定义功能。
ChatBoxEvents.skipChat(event => {
let { chatBoxScreen, resourceLocation, group, index } = event
})
附加信息
示例数据包和文档可在 GitHub 上找到。即将推出的功能:作者正在开发基于 Web 的 JSON 生成器,以简化对话配置。敬请期待!
Wiki:
Mod Introduction
ChatBox is a dialog box mod designed for Minecraft, inspired by the dialog systems found in Galgames. You can configure it using data packs:
-
Pre-set multiple themes for dialog boxes and switch between them anytime using commands.
-
Customize the appearance, position, and size of dialog boxes, option boxes, history buttons, and character portraits.
-
Character portraits support multiple types: images, player avatars, and item textures. You can define custom entry animations for these portraits, with images having 3 preset animations.
-
Configure dialog text and multiple options for each line. Clicking options can trigger custom commands and jump to other dialogs.
-
All text elements (dialogs, options) support translation keys.
Since all dialog configurations are implemented through data packs, you can reload all dialog settings directly using the /reload command. Create beautiful dialog systems without modifying any code!
Built-in Commands
Switch themes:
/chatbox theme
Jump to a specific dialog:
/chatbox skip
Open dialog box:
/chatbox open
Event System
For KubeJS users, the mod provides predefined events:
//client_script
// Triggered BEFORE dialog rendering. Provides GuiGraphics for custom rendering. Cancellable.
ChatBoxEvents.renderPre(event=>{
let getGuiGraphics = event.getGuiGraphics()
event.cancel()
})
// Triggered AFTER dialog rendering. Provides GuiGraphics for custom rendering.
ChatBoxEvents.renderPost(event=>{
let getGuiGraphics = event.getGuiGraphics()
})
// Triggered when jumping to a dialog. Provides dialog metadata for custom functionality.
ChatBoxEvents.skipChat(event => {
let { chatBoxScreen, resourceLocation, group, index } = event
})
Additional Information
Example data packs and documentation are available on GitHub. Upcoming feature: The author is developing a web-based JSON generator to simplify dialog configuration. Stay tuned for its release!
Wiki:
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 chatbox for mc
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧