LuaCraft
LuaCraft allows players to run Lua scripts in Minecraft.
Setup
- Place the plugin JAR in the server's
plugins
folder. - Start the server.
- Start creating scripts in the
lua
directory!
FAQ
"I need new documentation"
- If this is not your first time and you would like new documentation, delete the
lua
folder from your server root directory (and backup any scripts before doing so).
"I want to use modules"
- Most of the time you can copy all of these modules and put them into the
lua
directory. You can then call these modules from anywhere executing Lua code. Just make sure therequire
paths are correct. Callingrequire('vec3')
for example would have to mean that there's avec3.lua
file in thelua
directory.
Commands
/loadscript <filename>
: Loads and executes a specified Lua script from thelua
directory./listscripts
: Lists all available Lua scripts in thelua
directory./loadstring
: Everything following this command will be interpreted as code to execute.
You can easily and remotely load scripts like this:
loadstring(LuaCraft.httpGet('https://example.com/script.lua'))()
License
This project is licensed under the Apache License 2.0.