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)
下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Kontrolo (Forge)

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

查看详情
Fastcraft+Ruins Patch

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

查看详情
Better than Adventure! Russian

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

查看详情
Chocolate bars pack

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

查看详情