CommandIt
Bind Lua scripts to any block! This is the successor to CommandSigns with an entirely new syntax build around a popular scripting language.
NOTE: This project is still in development and so all details and instructions are not final.
Commands
All commands are subcommands of either /cmdit or /commandit.
/cmdit line[x] [line contents] - Set the contents of clipboard
/cmdit edit - select a sign for editing
For now, most of the commands are remaining similar to CommandSigns. Just note that all code run on the sign is in Lua, not the old format.
If you wish to keep your old CommandSigns, you can copy your signs.yml file into your CommandIt plugin folder and run /cmdit import signs.yml
Basic process
Step one, set lines to be put using /cmdit line[x] [contents]
For example, try /cmdit line1 player.op()
Right click on the block you want to bind this code to.
Now, whenever someone clicks that block, they'll become op.
Scripting
All scripting is done in lua. (http://www.lua.org/) Libraries are currently in development, but a few apis are currently implemented: player: methods pertaining to the player who clicked the sign. block: methods pertaining to the block that this script is being run from server: methods for the server as a whole
All methods exposed to scripts are available for inspection here: https://github.com/zonedabone/CommandIt/tree/master/Specification.txt
Development
You can view our progress on this plugin at https://github.com/zonedabone/CommandIt/
-
View User Profile
-
Send Message
Posted Apr 20, 2013@zonedabone
You didn't mention the most important feature of all: Functions. That's part of what makes Lua so user-friendly. I've been using Lua a lot via ComputerCraft, and I couldn't live without functions. xD
-
View User Profile
-
Send Message
Posted Apr 4, 2013@zonedabone
Again, will the sudo be able to have the #, * and ^ features as CommandSigns did? I don't know anything about the Lua programming language, and the specification didn't specify whether sudo would run commands with all permissions.
-
View User Profile
-
Send Message
Posted Mar 30, 2013LOLds
-
View User Profile
-
Send Message
Posted Mar 29, 2013It will support all features of the Lua programming language. Ifs, loops, whiles, everything will be supported.
-
View User Profile
-
Send Message
Posted Mar 26, 2013Will the sudo be able to have the #, * and ^ features as CommandSigns did?
-
View User Profile
-
Send Message
Posted Mar 3, 2013How will conditions be supported?
Will it support loops?
Thanks.
-
View User Profile
-
Send Message
Posted Feb 11, 2013Any word on when it'll be released? Or a beta released?
-
View User Profile
-
Send Message
Posted Feb 4, 2013Cant wait.
-
View User Profile
-
Send Message
Posted Jan 30, 2013@lANTHONYl
I am, too. We're making great progress, as well. The lua interpreter is implemented and works, and CJxD is working on the converter. Of course, we'll probably work on cleaning stuff up after we're done before releasing to make sure everything is clean.
Just a reminder, don't run the current versions on a server. It'll probably break your configs or something like that. This is by no means a completed plugin.
-
View User Profile
-
Send Message
Posted Jan 30, 2013I'm glad to see you guys got this up!
-
View User Profile
-
Send Message
Posted Jan 29, 2013@TaxConsumption
I most certainly think so. Once the scripting in built well we can expand it to support more than just blocks, essentially allowing players to code with the entire Bukkit api, in Lua.
(I'm mainly thinking hooking events, but there are obviously more things we can do with this.)
-
View User Profile
-
Send Message
Posted Jan 28, 2013This looks very... Promising..