Download (776 KB)

How do I install this?

Server Rules 🔗

This mod adds a nice rules interface that is displayed to players, with several key features including a split-screen view to edit the rules in-game.

Features: 🔗

  • Supports hypertext formatting
  • Rules can be modified using /set_rules
  • Split-screen GUI to set the rules allows previewing the formatted hypertext
  • Rules are saved to rules.txt in the worldpath
  • Players must agree to the rules when they join for the first time to gain interact

Commands: 🔗

  • /rules shows the rules.
  • /set_rules edit the rules. (requires server privilege)

Using hypertext 🔗

The rules support hypertext formatting. Take a look at https://api.luanti.org/formspec/#markup-language for more info on how to use hypertext.

Note: Hypertext is only supported for >5.2.0 clients.

Basic usage:

  • <b>Bold text</b>
  • <i>Italics</i>
  • <u>Underlined text</u>
  • <center>Centered text</center>
  • <style color=#ff0000>This text will be red</style>
  • <style size=20>Bigger text</style>
  • <style font=mono size=20>Bigger text with mono font</style>

Licenses 🔗

Source code is licensed under the MIT license.

Reviews

Review

Do you recommend this mod?

  • English

    Simple and functional

    Thanks for this simple mod, I worked with others in the past but this one was most easy to set up and with the help of Claude i was able to tailor it to my needs. <3

    1 comments