Minecraft MineLua 2 – Lua for Minecraft mod 2026 download
logo
minecraft mod MineLua 2 – Lua for Minecraft

MineLua 2 – Lua for Minecraft

Game Version: 1.8
Total Downloads: 947
Updated: Apr 4, 2016
Created: Feb 26, 2016
Download MineLua 2 – Lua for MinecraftDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
MineLua 2.3 release 505.64 KB Apr 4, 2016 1.8 523 download MineLua 2 – Lua for Minecraft MineLua 2.3 releaseDownload
Minelua 2.2 release 504.62 KB Mar 24, 2016 1.8 134 download MineLua 2 – Lua for Minecraft Minelua 2.2 releaseDownload
MineLua 2.1 release 515.53 KB Mar 7, 2016 1.8 172 download MineLua 2 – Lua for Minecraft MineLua 2.1 releaseDownload
MineLua 2.0 release 504.08 KB Mar 3, 2016 1.8 118 download MineLua 2 – Lua for Minecraft MineLua 2.0 releaseDownload

Screenshots

Description

Share this:

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

Comments

Add a comment