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:
{
"commands": {
"store": {
"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:
There is a dictionary full of commands. From the example above, you can see that the commands the dictionary has a "store" element, which turns into a command upon running the mod.
The "store" command will open a book with a bunch of pages, each one of which will map to one of the elements in the Pages list
Inside each page, you can add text, which is a list filled with dictionaries with text, color, and link keys, which are fully customizable.
Adding new commands
If you wish to add a new command using this mod, you need to create a new element with the command's name inside the "commands" dictionary, then all other components that you can see in the config example.
Problems?
If you have any problems making the mod work, please contact me on discord via "polarplar"