« Back to search

Mod

Voxrame Lua Helpers

by lord-games · score 2.5 · license: MIT

Voxrame Lua Helpers

Download latest release

Helpers are a set of auxiliary Lua functions for comfortable work in your project.

library

Lua Helpers (Voxrame component)

Maintained By: Lord Team Donate: Boosty License: MIT


Detailed documentation:


Made with ❤️ for the Luanti community
© 2026 Lord Team


Overview

String

string:lower()
string:upper()
string:is_one_of()
string:first_to_upper()
string:title()/:to_headline()
string:starts_with()
string:ends_with()

string:contains()
string:replace()
string:remove()
string:reg_escape()
string:vxr_split()
string.or_nil()

Table

table.keys()
table.values()
table.has_key()
table.contains/.has_value()
table.keys_of()
table.has_any_key()
table.equals()
table.is_empty()
table.is_position()
table.each_value_is()
table.count()
table.generate_sequence()

table.only()
table.except()
table.merge()
table.join()
table.overwrite()
table.merge_values()
table.map()
table.walk()/.each()
table.multiply_each_value()
table.add_values()
table.sub_values()
table.mul_values()
table.div_values()

Math

math.limit/clamp()
math.is_within()
math.is_among()
math.is_in_range()
math.is_near()

math.quadratic_equation_roots()
math.point_on_circle()

Debug

__FILE__()
__LINE__()
__FILE_LINE__()
__DIR__()
__FUNC__()
print_dump() / pd() / pdt()

debug.get_stack_frames()
debug.render_backtrace()
debug.print_backtrace()
debug.measure()
debug.measure_print()

Exception

exception.try()
:catch()

Global

errorf()
errorlf()
assertf()

IO

io.file_exists()
io.dirname()

io.write_to_file()
io.read_from_file()
io.get_file_error()

OS

os.DIRECTORY_SEPARATOR


Development

All contributions should be made to the main repository: https://github.com/Voxrame/Voxrame

Support

Debug Configure

Configure clickable file-links for you IDE

  1. Ensure that your terminal supports ANSI OSC8 Codes.

  2. Configure custom scheme for your OS, examples for Linux:

  3. Enable links in minetest.conf:

    • set config setting debug = true
    • set config setting debug.editor_x_scheme_tpl for your IDE, examples:
      • debug.editor_x_scheme_tpl = clion://open?file=${file}&line=${line}
      • debug.editor_x_scheme_tpl = vscode://file/${file}:${line}?project=${project}
      • debug.editor_x_scheme_tpl = kate://open?file=${file}&line=${line}&project=${project}

    Supported variables in scheme template:

    • ${project} - full path to project
    • ${file} - full path to file
    • ${file_relative} - path to file from project root (from ${project})
    • ${line} - line number in the file