BukkitScript
BukkitScript
Unsupported!
I have decided to stop supporting this plugin. I hereby apologize to everyone who commented or posted on the forum who I am so unceremoniously and impolitely abandonding with this action. The reason is that between my other plugins, WorldPainter and the rest of my life I just don't have the time to do a proper job (which I wasn't therefore doing anyway), and it wasn't fair to keep giving the illusion that I would, much as it pains me to have to admit it and take this drastic action...
Sorry!
I'm not going to abandon the plugin, as I'm still using it myself for mc.pepsoft.org. It does work and has some useful functionality. It's open source, so anyone is welcome to add functionality themselves, fork it, etc.. I'll keep updating it for new Minecraft releases, and may add functionality that I need myself, but I'm not going to take patches or suggestions, answer questions, or otherwise support it.
Introduction
A general-purpose scripting plugin that allows you to write scripts that can react to and influence your CraftBukkit worlds. Features:
- Scripting language: JavaScript (other languages may possibly be added in the future)
- Name blocks to easily refer to them in scripts
- Bind scripts to a multitude of in-world events
- Bind scripts to commands
- Events can also refer to named blocks
- Easy interface for getting information from the world and make changes to it
My motivation for writing this plugin is have a way to implement complex game mechanics without having to use redstone. It's not meant for regular users to use. I believe redstone is an important gameplay element for regular users, with its space, resource and personal skill requirements adding genuine interest to the game, but as an admin you often want to do things for which redstone is not adequate, and you are not interested in the gameplay elements of having to use redstone. You just want to get things done already to improve the experience of your users.
Requirements
Note that BukkitScript requires the server to run on the Oracle Java 6 JRE or higher! It relies on the included JavaScript scripting engine. Versions of Java prior to version 6 don't include scripting support, and OpenJDK does not include the JavaScript engine. It is probably possible to add scripting engines to other versions of Java (and even to support other scripting languages), but I have not yet investigated the details of this.
Documentation
Preliminary documentation here.
the first issus 2015 :) please send me the source code [email protected] thanks,if i can,i will develop it :)
@Tsugaga
uh this is bukkitscripts not skript, change .sk to .js
@dumptruckman
I have now made the source code available on GitHub. Check the Repository tab for details.
Does this plugin have any perms?
Haha. Last updated on "May the fourth be with you", international Jedi day. ;)
This plugin looks quite nice, and I seem to find javascript pretty easy, so Ill have a go
I added a script and reloaded the plugin, console says "WARNING Skipping plugins/BukkitScript/scripts/barrelmsg.sk because the extension sk is not supported".
Also /skript reload returns "Unknown command"
The script is pretty powerfull, is it possible to control mob behavior world specifically?. Example would be if I want to give zombies of a specific world potion attributes such as speed and strength.
@dumptruckman
I'm waiting until the plugin is a bit more mature until I make the source generally available (and also I haven't decided in what form yet). But I can send it to you if you're interested.
Where's the source?
@davidrockin
Would you mind using the forum and restate your questions? It's much more convenient than cluttering up the comments on this page with questions. Thanks!
How do i mass give? This dont work:
player.all.inventory.add(2);
And i dont know how to use the item.get stuff.. doesnt work??
@Captain_Chaos
Javascript :3
@itchyzombie
Well which does it say?
@FrostedDarkness
Thanks for the list, I didn't find all of those. None of them appear to have all the features of my plugin though, and some features none of them have, so I think the existence of mine might still be justified. We'll see how much usage it gets. I created it because I needed it myself, it's not actually that much work to create or extend.
Another one?! CommandHelper, Skript, VariableTriggers, ScriptBlock, EZScript, EZPlugin and now BukkitScript? Mind = Blown
@davidrockin
Of course, that's an excellent idea! In fact I just created a separate forum called Scripts where you can post examples for others to use or look at.
Omg, nice job. I'm playing with the codes. Is it cool if i make a bunch of scripts you could let others use as examples, or include the plugin? So others and learn better?
I'll create a forum topic later, i have a lot of ideas that will make this plugin amazing.
I added some documentation about a feature which was already in, but not yet documented: executing commands from scripts. You can use command.execute(command) or command.execute(command, args), or you can get a Command object with command.get(command) and then invoke execute() or execute(args) on it.
Note that in either case args is not an array!
I uploaded version 0.0.2, with the following additions: