Mineuniverse
Log in Register
Plugins

MineLua 2 - Lua for Minecraft

MineLua 2 - Lua for Minecraft
by _ForgeUser6977065
Download Claim this project
1,951 downloads
0 likes
Updated Jun 30, 2026
0 hypes
Developer Tools Fun

MineLua 2 - Lua for Minecraft

MineLua 2 is the new update for MineLua. MineLua is a java based plugin there allows you coding in lua, this means you simply can create lua scripts and run them on your server. The plugin has some features as custom api and encryption there gives you extra abilities.

For developers:

The plugin is based on LuaJ 3.0.1 which is a java to lua / lua to java converter, That means do you make an addon is it a good thing to know little about LuaJ's api LuaJ Homepage Source code

Default Settings:
- Script folder: ./plugins/MineLua/scripts/ - Encrypted files folder: ./plugins/MineLua/encrypted/ - Auto encryption status: false - File extension: .lua - Encrypted extension: .clua - Auto load scripts: true

Features:

  • Custom Commands
  • Tab Complete System
  • Bukkit / Spigot API
  • MineLua API
  • Auto Encryption System
  • Simple Config
  • Skript Addon

Introduction:

You can use the bukkit javadocs: Bukkit Javadocs

Let's start:
function onEnable(plugin)
    --Plugin Infomation
    plugin:setName("MineExample")
    plugin:setVersion("1.0.1")
    plugin:setDescription("This is a example plugin")
end

function onDisable(plugin)
    --Disable code here....
end
Now lets hook a event:
function onEnable(plugin)
    --Plugin Infomation
    plugin:setName("MineExample")
    plugin:setVersion("1.0.1")
    plugin:setDescription("This is a example plugin")
    --Hook event
    plugin:hookEvent("PlayerJoinEvent", onjoin)
end
function onJoin(event)
    event:setJoinMessage(nil)
    local player = event:getPlayer()
    broadcast("§4" .. player:getName() .. " §chas joined the game!")
end
Let's try make a command:
function onEnable(plugin)
    --Plugin Infomation
    plugin:setName("MineExample")
    plugin:setVersion("1.0.1")
    plugin:setDescription("This is a example plugin")

    --Make a command
    plugin:bindCommand("test", command)
end

function command(player, args)
    broadcast("Command executed by " .. player:getName())
    player:sendMessage("Arg 1 of command is: " .. args[1])
end
Let's add a tabcompleter:
function onEnable(plugin)
    --Plugin Infomation
    plugin:setName("MineExample")
    plugin:setVersion("1.0.1")
    plugin:setDescription("This is a example plugin")
    --Hook event
    plugin:hookEvent("TabCompleteEvent", tabComplete)

    --Make a command
    plugin:bindCommand("test", command)
end

function command(player, args)
    broadcast("Command executed by " .. player:getName())
    player:sendMessage("Arg 1 of command is: " .. args[1])
end

function onTabComplete(event)
  if event:getCommand():getName() == "test" then
    local List = luajava.new(luajava.bindClass("java.util.ArrayList"))
    List:add("help1")
    List:add("help2")
    List:add("help3")
    List:add("help4")
    event:setResult(List)
  end
end
MineLua 2.3
MC 1.8
Release 2016-04-04 Get
Minelua 2.2
MC 1.8
Release 2016-03-24 Get
MineLua 2.1
MC 1.8
Release 2016-03-07 Get
MineLua 2.0
MC 1.8
Release 2016-03-03 Get

You Might Also Like

WorldGuard Custom Flags
WorldGuard Custom Flags
97,851
HoloAPI
Advanced and powerful holographic displays
93,959
Minequery
Minequery
91,099
SQLibrary
SQLibrary aims to streamline driver wrappers in Java for every database engine
85,675
WolfyUtilities
Utils and APIs: Config, Language and Inventory API, Protection Utils: WorldGuard, LWC, PlotSquared
84,728
DisguiseTester
Experiment with disguises!
9,677