MCLuaBukkit
Ever wanted to make a Bukkit plugin, but didn't know how? Want to edit code in-game and test it right away? MCLuaBukkit allows use of the Bukkit API with Lua, a simple, yet powerful, scripting language.
Quick Start
Example Code
Overview
MCLuaBukkit provides a Lua VM with mappings to the Bukkit API, and a few ways to load code into the VM. It allows developers to create Bukkit plugins in Lua. This means plugins with less mistakes, more security, and smaller size. Here's an example of an MCLuaBukkit plugin:
events.onPlayerInteract:add(function(p) x,y,z = p:getTargetBlock(100) p:getLocation():lightning(x,y,z) end)
This simple plugin strikes lightning where players click. It could easily be made to work only for certain players. MCLuaBukkit provides 3 ways for server operators to load Lua plugins:
- By Files Files ending in ".lua" inside MCLuaBukkit's data folder will be loaded as Lua plugins.
- By Chat The /lua command will run Lua code in-game.
- By Book And Quill The /luaload command will run Lua code contained inside a book and quill.
Lua APIs Added
- Server API
- Event API
- Player API
- World API
- Config API
- Inventory API
Commands
- /lua <code> Runs specified code.
- /luaload Runs code from a book and quill in the player's hand.
Permissions
- mcluabukkit.lua Allows execution of Lua code in-game.

-
View User Profile
-
Send Message
Posted Apr 28, 2013Nice plugin! I still have some problems to make working the events but the plugin is amazing! :)
-
View User Profile
-
Send Message
Posted Apr 15, 2013@pitchblac
MCLuaBukkit's Event system is custom, you can find out about it in the documentation file included with the MCLuaBukkit. You don't need any knowledge of the Bukkit API, just the APIs included in the MCLuaBukkit documentation.
-
View User Profile
-
Send Message
Posted Apr 13, 2013im a total noob and :\ i dont understand any of the events how to make things work if any one can point me to a place to help me learn about lua and bukkit apis and things to make a basic lua script/plugin
-
View User Profile
-
Send Message
Posted Apr 12, 2013@battlecz
Thanks for the support. Right now, I'm working on adding an API for player inventory access. Any suggestions for new APIs are much appreciated.
-
View User Profile
-
Send Message
Posted Apr 12, 2013I love this plugin, but need more apis to play with :) I can also test this plugin.
-
View User Profile
-
Send Message
Posted Apr 12, 2013@SuperWeegee1
I was thinking more about development suggestions, testing in production and money.
Got the new download - eager to see what you got done. Also how are the possibilities of module/library support? aka... luasocket, mysql, etc...
-
View User Profile
-
Send Message
Posted Apr 1, 2013@KcinLP
Soon. Currently, we just have about 3 things to add before first public release. We'll try to post a video before that, though.
-
View User Profile
-
Send Message
Posted Apr 1, 2013When comes the Download? I will help you with finding bugs and other!
-
View User Profile
-
Send Message
Posted Mar 27, 2013@NodexServers
We don't need any coding help, but you can support the plugin by downloading it, sending us suggestions, and reporting any bugs you find! :)
-
View User Profile
-
Send Message
Posted Mar 27, 2013Will support this project in any way possible if promising.