Lukkit 2.1.0

Create Bukkit plugins quickly and easily using the lua scripting language.

  1. AL_1
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    https://github.com/artex-development/Lukkit
    Contributors:
    UnwrittenFun, jammehcow, mathhulk
    What is Lukkit?
    Lukkit allows developers to create plugins for the Spigot API quickly and easily using the Lua scripting language. Lua is a simple and easy-to-use scripting language that makes it easy for newer developers to get started with plugin development.

    Why should I choose Lukkit?
    • Lua is a very friendly language for beginners and even experienced developers
    • It is very easy to make simple, or even complex, Lukkit plugins
    • Lukkit supports the entire Spigot API right out of the box
    • Lukkit can be used to do almost anything that a normal Spigot plugin can
    Creating a Lukkit Plugin
    Create a folder inside of your plugins folder. You can name this folder whatever you like as long as it has the .lkt extension. For example, MyFirstLukkitPlugin.lkt would be a great name to start with. Inside of the folder you have just created, create two more new files named main.lua and plugin.yml. These files will be used to control and configure your Lukkit plugin.

    Plugin Configuration
    The plugin.yml file is where information on your plugin, such as the description, author and version will be stored. The format of this file follows the same structure as that of the Bukkit or Spigot plugin.yml. However, unlike the plugin.yml in Bukkit and Spigot, you are not required to fill out the commands section. More information on the plugin.yml file can be found here, do not include the commands section as it will cause errors.

    An example of a plugin.yml file looks like:

    Code (YAML):
    main: main.lua
    version
    : 1.0
    name
    : My-First-Lukkit-Plugin
    description
    : My very first Lukkit plugin.
    author
    : YourName
    Spaces in plugin names are no longer supported by Bukkit.

    Main Lua File
    The main Lua file is defined in your plugin.yml file and is the first file that is run when your plugin starts. This file does not have to be called name, as long as the name defined in your plugin.yml file matches that of your main file.

    An example of a main Lua file with the onEnable and onDisable events looks like:

    Code (Lua):
    plugin.onEnable(function()
      logger.info("My first plugin is enabled!")
    end)

    plugin.onDisable(function()
      logger.info("My first plugin is disabled!")
    end)
    Both the onEnable and onDisable events are located inside of the plugin global. The plugin global contains all events and methods relating to the plugin.

    Commands
    Creating commands in Lukkit is simple and requires only three lines of code. When creating a command in Lukkit, information about the command is stored in objects, such as the name and description. More information about commands can be found here.

    An example of a main Lua file with a command looks like:

    Code (Lua):
    plugin.onEnable(function()
      logger.info("My first plugin is enabled!")
    end)

    plugin.onDisable(function()
      logger.info("My first plugin is disabled!")
    end)

    local testCommand = plugin.addCommand({name="hello",description="Hello world"}, function(cmd)
       plugin.getServer():broadcastMessage("Hello, world!")
    end)
    Events
    Just like creating commands, listening for events in Lukkit is very simple and only requires three lines of code. With events and commands, you can also get information about the player or other information that is returned in the event. More information about events can be found here.

    An example of a main Lua file with an event looks like:

    Code (Lua):
    plugin.onEnable(function()
      logger.info("My first plugin is enabled!")
    end)

    plugin.onDisable(function()
      logger.info("My first plugin is disabled!")
    end)

    local testCommand = plugin.addCommand({name="hello",description="Hello world"}, function(cmd)
       plugin.getServer():broadcastMessage("Hello, world!")
    end)

    plugin.registerEvent("BlockBreakEvent", function(event)
       event:getPlayer():sendMessage("You broke a block")
    end)
    Wiki
    The docs and plugin examples can be found on the wiki at https://lukkit.net

    Better than Skript

Recent Updates

  1. Lukkit 2.1.0
  2. Change download URL
  3. Lukkit 2.0. Complete rewrite

Recent Reviews

  1. Aeternum
    Aeternum
    5/5,
    Version: 2.0
    Wow, this is super interesting. Reminds me of robloxz. Very cool. #dominateSkript
  2. winnipeg21
    winnipeg21
    5/5,
    Version: 2.0
    8/8 m8 even tho I had no clue how to write Lua. So maybe I should learn Lua? It's been a long day so maybe tmr. Wait! I got work tmr, next week I'm busy. So next year? Anyway about time you released Lukkit.
  3. mathhulk
    mathhulk
    5/5,
    Version: 1.1.3
  4. CookieCraft
    CookieCraft
    5/5,
    Version: 1.1.3
    Nice! Really cool idea. Good Job!
    100 Chars: ------------------------------------------------------------------
  5. MonkeyMatt
    MonkeyMatt
    5/5,
    Version: 1.1.2
    So? If I understand correctly your making an IDE To convert Lua code into Bukkit code!? That's awesome :)
    1. AL_1
      Author's Response
      Not an IDE, not sure if you've messed up the meaning of IDE there, but all good. It allows you to write fully-fledged Bukkit plugins using the Lua language and Lukkit is the middle man in the relationship between the two. Cheers!
  6. BrettPlayMC
    BrettPlayMC
    5/5,
    Version: 1.1.2
    First! :D Can't wait to use this!