ReSpec

Description

Respec 🔗

Respec, from "Relative Formspec", is a formspec library for Luanti.

Respec suppots all features from the Luanti Formspec API with two trivial exceptions (see at bottom)

Respec provides:

Respec's system of positioning and sizing of elements uses relative positioning, which is inspired by and strongly based on Android's Constraint Layout, with which Respec shares many similarities (e.g. chains).
However knowledge of Android or Constraint Layout is not required.

Getting Started 🔗

Getting Started, with examples - on the Github Wiki

API 🔗

The API docs can be read online here.

Unsupported Formspec Elements 🔗

  • real_coordinates[<bool>]
    Reason: This is set to true by default past formspec v2, and Respec's layout algorithm is build with the assumption that this is always enabled. There is also no functional difference in what can be achieved with formspecs by not supporting this element, so Respec assumes real coordinates are always on, and turning them off is not supported.

  • Size-less field[]
    Reason: This element only has an edge-case usage for trivial forms that don't require any laying out of elements. Note that regular field[] elements and all their functionalities are fully supported.

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

Release 1.0.0

Download

Luanti 5.1+

2025-06-15 13:05 UTC

Release 1.0.0 🔗

Added element: Tables - ReSpec now supports all Formspec elements!

Full notes

All releases

Threads

New thread

Information

Provides

respec

Dependencies

Required
No required dependencies

Information

Type
Mod
Technical Name
respec
Languages
English
License
LGPL-2.1-or-later
Maintenance State
Beta
Added
2025-06-12 19:01 UTC
Maintainers
ZenonSeth

Used By