luanti_utils

Description

luanti_utils 🔗

High level Luanti lua modding utilities that will bring your mods to the next level.

Installation 🔗

  1. Get the luanti_utils in your mod folder by downloading it from the Luanti mods UI.
  2. Add luanti_utils as a dependency in your mod.
  3. Read the docs to get started.

Documentation 🔗

You start by aquiring a module.

local util = luanti_utils.dofile('<luanti_util>.lua')

See Luanti Utils Documentation.

Docs are generated using LDoc comments.

Experimental 🔗

There is an experimental branch. These APIs are suject to change.

License 🔗

See LICENSE.txt file

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

2026-04-05 12:19 UTC

0.0.7 🔗

0.0.7

  • Add node_matches utility.
2026-04-01 12:33 UTC

0.0.6 🔗

0.0.6

  • Fix random_each by setting ratio default.
  • Prevent restarting round_robin when calling start
  • Add random_each function to loop over random items
  • Add table_shallow_copy util
  • Add debug utility
  • Allow modules to not be cached with nocache fn call
  • Use mod_proxy for register_timer.lua
  • Change round_robin fn signature for on_item callback
  • Add mod_proxy utility
  • Make strong just normal text silly
  • Add round robin util
  • Remove broken first link to old dofile page
  • Proxy optional depends register_timer
  • Prevent popping more that the queue has
  • Add vector_mod utility
  • Add random dir vector because my version of Luanti does not have it
  • Add deferred_batch helper to sync multiple async things
  • Better document register decoration types and callback
  • Update screenshot
  • Fix code formatting
2026-04-01 09:57 UTC

0.0.5 🔗

0.0.5

  • Prevent restarting round_robin when calling start
  • Add random_each function to loop over random items
  • Add table_shallow_copy util
  • Add debug utility
  • Allow modules to not be cached with nocache fn call
  • Use mod_proxy for register_timer.lua
  • Change round_robin fn signature for on_item callback
  • Add mod_proxy utility
  • Make strong just normal text silly
  • Add round robin util
  • Remove broken first link to old dofile page
  • Proxy optional depends register_timer
  • Prevent popping more that the queue has
  • Add vector_mod utility
  • Add random dir vector because my version of Luanti does not have it
  • Add deferred_batch helper to sync multiple async things
  • Better document register decoration types and callback
  • Update screenshot
  • Fix code formatting
2026-03-18 12:59 UTC

0.0.4 🔗

0.0.4:

  • Added is_buildable_to.lua to check if a node or position can be built on.
  • Added register_decoration.lua for easier decoration registration with gennotify callbacks.
  • Added caching to luanti_utils.dofile to avoid loading the same module multiple times.
  • Updated documentation setup: moved favicon.png, added ldoc.ltp template for docs.
  • Fixed minor corrections in register_node_copy.lua comments and function signature.
2026-03-16 12:05 UTC

0.0.3 🔗

0.0.3

  • Add controls.lua as proxy module for optional controls mod.
  • General improvements to module documentation.
  • Add wallmounted_to_facedir param2 util.
All releases

Threads

New thread

Thread Last Reply

No threads found

Information

Provides

luanti_utils

Dependencies

Required
No required dependencies

Information

Type
Mod
Technical Name
luanti_utils
Languages
English
License
LGPL-2.1-only
Maintenance State
Actively Developed
Added
2026-03-10 14:40 UTC
Maintainers
Bas080

Used By