样式化侧边栏
本模组允许你创建动态且服务端控制的侧边栏(使用计分板),具备你所需的所有功能!支持静态、滚动(含循环)和分页的侧边栏,并完整支持 Text Placeholder API 及兼容模组。
如果你有任何问题,可以在我的 Discord 上提问。
命令(及权限):
/styledsidebars- 主命令(styledsidebars.main,默认可用)/styledsidebars reload- 重新加载配置和样式(需要styledsidebars.reload权限)/styledsidebars switch <style>或/sidebar <style>- 切换选定的样式(styledsidebars.switch,默认可用)/styledsidebars switchothers <players> <style>- 更改指定玩家的选定样式(styledsidebars.switch.others)
配置:
你可以在 ./config/styled-sidebars/ 中找到配置文件。
{
// 配置版本,不要修改,否则可能会导致损坏!
"config_version_dont_modify": 1,
"_comment": "在更改任何内容之前,请参阅 https://github.com/Patbox/StyledSidebars#configuration",
// 默认使用的样式 ID。ID 由样式文件的文件名决定
"default_style": "default",
"messages": {
// 玩家更改侧边栏后发送的消息
"changed": "你的侧边栏已更改为:<gold>${style}</gold>",
// 玩家尝试将侧边栏更改为无效样式时发送的消息
"unknown": "<red>该侧边栏不存在!</red>"
}
}
样式:
本模组允许多个样式存在,玩家可以选择这些样式(只需将它们放入 ./config/styled-sidebars/styles/ 并使用 /styledsidebars reload 命令)
格式说明使用简化文本格式,相关文档可在此处找到。
{
// 可选要求,限制对此样式的访问
// 参见 https://github.com/Patbox/PredicateAPI/blob/1.19.3/BUILTIN.md
"require": {/* ... */},
// 配置名称,用于命令中(显示用)
"config_name": "...",
// 发送更新之间的刻数(1 刻 = 1/20 秒)。
"update_tick_time": 20,
// 翻页所需的更新次数(仅在使用分页时有效)
"page_change": 5,
// 更改标题所需的更新次数(仅在使用多个标题“帧”时有效)
"title_change": 10,
// 侧边栏滚动一行所需的更新次数
"scroll_speed": 1,
// 启用平滑循环滚动侧边栏
"scroll_loop": true,
// 侧边栏标题。如果是单个字符串则不会变化(占位符除外)。
// 如果有多个,它将每 X 次更新变换一次。支持格式化
"title": [
"...",
"...2"
],
// 用于单页侧边栏的行。仅在无分页时存在
"lines": [
// 简单行,始终显示(支持与其他部分相同的格式化)
"...",
// 逻辑行,允许根据权限等隐藏它们,而不是始终显示
{
"value": [
// 简单行,不支持逻辑结构!
"..."
],
// 显示的要求,系统与样式中的要求相同
"require": {/* ... */}
}
],
// 用于分页侧边栏。将每隔 X 次更新(如上所述)切换页面
"pages": [
// 与 "lines" 定义内的值相同
[
"...",
{
/* ... */
}
],
// 另一个页面
[
"..."
]
]
}
内置占位符:
支持的占位符列表,请参阅 Placeholder API 的 wiki
下载:
Styled Sidebars
This mod allows you to create dynamic and server side sidebars (using scoreboard) with all functionality you need! Supports static, scrolling (with looping) and paged sidebars with full support for Text Placeholder API and compatible mods.
If you have any questions, you can ask them on my Discord
Also check out my other mods and project, as you might find them useful!
Commands (and permissions):
/styledsidebars- Main command (styledsidebars.main, available by default)/styledsidebars reload- Reloads configuration and styles (requiresstyledsidebars.reload)/styledsidebars switch <style>or/sidebar <style>- Changes selected style (styledsidebars.switch, available by default)/styledsidebars switchothers <players> <style>- Changes selected style of players (styledsidebars.switch.others)
Configuration:
You can find config file in ./config/styled-sidebars/.
{
// config version, don't modify as otherwise it might get corrupted!
"config_version_dont_modify": 1,
"_comment": "Before changing anything, see https://github.com/Patbox/StyledSidebars#configuration",
// Id of a style used by default. Id is determined by filename of style
"default_style": "default",
"messages": {
// Message sent after player changes the sidebar
"changed": "Your sidebar has been changed to: <gold>${style}</gold>",
// Message sent after player trying to change sidebar to invalid one
"unknown": "<red>This sidebar doesn't exist!</red>"
}
}
Styles:
This mod allows having multiple styles, that can be selected by players (just put them in ./config/styled-sidebars/styles/ and use /styledsidebars reload command)
Formatting uses Simplified Text Format for which docs you can find here.
{
// Optional requirement, limiting access to this style
// See https://github.com/Patbox/PredicateAPI/blob/1.19.3/BUILTIN.md
"require": {/* ... */},
// Name of config used in commands (for display)
"config_name": "...",
// Amount of ticks (1/20 of a second) between sending updates.
"update_tick_time": 20,
// Amount of updates required for page change (only if using pages)
"page_change": 5,
// Amount of updates required for title change (only if using more one title "frames")
"title_change": 10,
// Amount of updates required to scroll sidebar by one line
"scroll_speed": 1,
// Enables smooth looping of scrolling sidebar
"scroll_loop": true,
// Title of sidebar. If single it doesn't change (excluding placeholders).
// If multiple, it will change it every X updates. Supports formatting
"title": [
"...",
"...2"
],
// Lines used for single page sidebars. Only present when there are no pages
"lines": [
// Simple line, always displayed (supports formatting like rest)
"...",
// Logical line, allows to hide them behind permissions/etc instead of always displaying
{
"value": [
// Simple lines, doesn't support logical ones!
"..."
],
// Requirement for display, same system as style one
"require": {/* ... */}
}
],
// Used for paged sidebars. Will change page every X updates (specified above)
"pages": [
// Same values as inside "lines" definition
[
"...",
{
/* ... */
}
],
// Another page
[
"..."
]
]
}
Built in placeholders:
For supported placeholders list, see Placeholder API's wiki
Download:
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Styled Sidebars
下载 Styled Sidebars
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Styled Sidebars
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
一个基于构建器的 Minecraft 配置库!
模组
一款轻量级模组,允许服务器管理员对抗透视作弊者。
模组
通过图形界面控制模组加载。适用于需要可选功能的整合包和服务器,也适合不想手动操作文件而希望直接管理模组的极客用户。
模组
一个完整经济模组:玩家余额、动态定价商店、玩家市场、买入订单、货币物品以及网页仪表盘。
模组
? 这是 Serilum 发布的一个自定义模组整合包,请设置你的模组包实例!
评论 0
登录后参与评分
还没有评论,来抢沙发吧