Моды/PolarBooks
PolarBooks

PolarBooks

Allows you to dynamically add commands that open customizable book GUIs

39
1

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.

If you do not wish to include a color 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


❓ Need Help?

You can either DM me on Discord @polarplar or join my development Discord and ask your questions there! Also, check out my other projects!

Discord Modrinth

Совместимость

Minecraft: Java Edition

1.21.1

Платформы

Поддерживаемые окружения

Сервер

Ссылки

Создатели

Детали

Лицензия:MIT
Опубликован:5 месяцев назад
Обновлён:4 недели назад
Главная