Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Mod for Luanti: Highlighter Pen

I wrote a novel Luanti mod, that works in any game. I have tested it specifically in the following games.

Description

This mod for Luanti adds highlighter pen tools. A player can highlight nodes, and erase highlights. The highlights persist after a safe server restart.

The canonical scm repo for this mod is at https://bgstack15.ddns.net/cgit/luanti/highlighter_pen, and an additional repo suitable for collaboration is at https://gitlab.com/bgsack15/highlighter_pen.

Using

Craft a highlighter pen. Right-click a node with the tool to set a highlight. Left-click to remove a highlight on a node.

Craft and use a blotter to remove highlights in a small radius (default radius is 3).

Dependencies

  • Vendors node_highlighter because that is not in ContentDB. You can also use that mod, and it will load that instead of using the vendored components.

Optional dependencies

Screenshots

Crafting recipe for a highlighter pen

Crafting recipe for a blotter

Screenshot of some highlight strokes in the world

Settings

  • How many nodes can a highlighter pen be used in survival mode on before the pen runs out (default 200)
  • Highlighter pen can erase all highlight-colors from a node (default true)
  • Using a highlighter in the air (an empty node) erases this color entirely, on all nodes (default false)
  • Blotter radius, where 1 is the single node that was right-clicked (default 3)

Current weaknesses

  • The blotter is the only component that respects core.is_protected, and only on the center of the usage.
  • Unifieddyes does not produce highlighter pens for each color variant for creative mode inventory; you have to craft them.

Comments