promotional bannermobile promotional banner

LuaMine

A lightweight Lua scripting engine
Back to Files

1.3-Beta

File nameluamine-1.3-Beta.jar
Uploader
User447uiUser447ui
Uploaded
Aug 12, 2026
Downloads
9
Size
418.5 KB
File ID
8633896
Type
B
Beta
Supported game versions
  • 1.21.11

What's new

v1.3-Beta

Added

  • Fluent command builder: mc.command(name):execute():description():usage():tabComplete():permission():register() — adds tab-completion and permission-gated commands without growing registerCommand's argument list. mc.registerCommand(...) still works unchanged for simple cases.
  • require("json") — encode/decode Lua tables to/from JSON, plus json.save(name, table) / json.load(name) for persisting data to plugins/LuaMine/config/.
  • World interaction: mc.setBlock(x, y, z, type), mc.getBlock(x, y, z), mc.spawnEntity(type, x, y, z).
  • player:giveItem(item, amount), player:hasItem(item, amount).
  • mc.hasPermission(sender, node).
  • New events: onPlayerDeath, onPlayerRespawn, onPlayerQuit, onBlockPlace, onEntityDeath, onInventoryClick (supports return "cancel" like onChat).

Known limitation

  • A command registered via mc.command()/registerCommand keeps tab-completing its name and showing up in /help for the rest of the server session, even after a script stops defining it — it just reports itself as unavailable if actually run. This is an intentional trade-off for reliable command updates on Paper.

This mod has no related projects