Warning: file_put_contents(/www/wwwroot/nmbt.106988770/cache/modrinth_versions_wmV4ewCG.json): Failed to open stream: Permission denied in /www/wwwroot/nmbt.106988770/resource_detail.php on line 53
PolarBooks - 墨喵 Minecraft 资源
PolarBooks 图标

PolarBooks

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.3
本资源为搬运资源,原资源地址: https://modrinth.com/mod/polarbooks
资源信息

Minecraft 版本: 1.21.1

平台: fabric

标签: management utility

资源介绍

PolarBooks

This mod is aimed at allowing servers to create books that allow you to inform players through a simple book GUI.

The mod has three main components that you can include for every piece of text you add:

  • text itself
  • A link, if you wish for the text to lead to a website
  • A color for the text.
  • A command to run upon clicking the text.

Sidenote: A link takes precedence over a command, make sure to only include a command or a link.

If you do not wish to include a color, a command or a link, you can omit them in the config file.

This mod also allows you to dynamically add commands to access the different books, which can also be configured in the JSON files.

The default config looks as follows:

{
      "Pages": [
        {
          "text": [
            {
              "text": "Visit our store:\n",
              "color": "1B41FF"
            },
            {
              "text": "Click me",
              "link": "https://www.minecraft.net/en-us",
              "color": "CDFF00"
            }
          ]
        }
      ]
}



The configs work as follows:

By adding a new dictionary inside "pages" (A dictionary is anything wrapped in {}), you will add a new page with the text components you add in the text list.

When you run the command to get the book, it will automatically load all the pages and text contents inside it.

?️ Adding new commands

If you wish to add a new command using this mod, you need to create a new file with the same format as the default config. Upon restarting your server, they will be loaded in.

In the following example, a website and store command will load:

![Example Image](https://cdn.modrinth.com/data/cached_images/efacbe2f1ffb48cc0d22fc0d63aab702c0ab2ffd.png)
下载与版本
评论(0)
请 登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

赞助作者

请 登录 后赞助作者。

🔥 相关推荐
MCSkyblock

价格:0 墨喵币
下载量:0

查看详情
Trajectory Guard

价格:0 墨喵币
下载量:0

查看详情
Lesbian Pride Flag Tooltip (7-Color)

价格:0 墨喵币
下载量:0

查看详情
Wonderous Sea - Endless Ocean

价格:0 墨喵币
下载量:0

查看详情