1.3-Beta
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 growingregisterCommand's argument list.mc.registerCommand(...)still works unchanged for simple cases. require("json")— encode/decode Lua tables to/from JSON, plusjson.save(name, table)/json.load(name)for persisting data toplugins/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(supportsreturn "cancel"likeonChat).
Known limitation
- A command registered via
mc.command()/registerCommandkeeps tab-completing its name and showing up in/helpfor 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 additional files

