Module luanti_utils

Utility functions for the luanti_utils module.

Provides helpers for loading files relative to the current mod path.

Functions

dofile (module) Load a Lua file from the current mod directory.

Tables

luanti_utils The module table


Functions

dofile (module)
Load a Lua file from the current mod directory.

This is a wrapper around dofile that automatically prepends the mod's path, so you can load other files in your mod without specifying the full path manually.

Parameters:

  • module string The filename of the Lua module to load (relative to the mod folder)

Returns:

    any The return value of the loaded module

Usage:

    local extend_item = luanti_utils.dofile("extend_item.lua")
    local extend_group = luanti_utils.dofile("extend_group.lua")

Tables

luanti_utils
The module table
generated by LDoc 1.5.0 Last updated 2026-03-13 21:12:31