跳到正文

Styled Sidebars

作者:Patbox

Customisable sidebars for your Minecraft server!

收藏

截图

介绍

中文介绍正在准备中,下面暂时显示原文。

Logo

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!

example

Commands (and permissions):

  • /styledsidebars – Main command (styledsidebars.main, available by default)
  • /styledsidebars reload – Reloads configuration and styles (requires styledsidebars.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 支持哪些 Minecraft 版本?

Styled Sidebars 支持 Minecraft Java 版 1.19.3–26.3,共 26 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Styled Sidebars 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Patbox 的其他作品

查看全部 →