SimpleScript is Sponge plugin that allows users to create scripts, using a simple syntax that somewhat resembles the English language. For example, sending a hello message to a player when they join is as simple as writing two lines of text:
send "Hello!" to the player
Script overhead is minimal, with a 53 line script adding only 2 to 3 milliseconds of delay to the event.
If you have any suggestions or feedback, please reply to this thread!
I am looking for someone to help write the SimpleScript documentation. Having someone else to help write the documentation will allow me to spend more time developing SimpleScript. Please send me a PM if you have any questions or are interested in helping out.
This is the first version of SimpleScript publicly available, so there may be some bugs or issues that I have not caught. If you find a bug, please report it to GitHub Issues. The documentation is not perfect, so if you have any questions just ask on this thread. If you would like to help document the plugin, please send me a PM.
Planning to add more actions soon? like drop item, or teleport?
from the documentation:
Cancels an event, if it can be cancelled. Any lines of script after cancel will not be run.
And what if i want to cancel, say, block break event of iron ore, from my suggestion above, then have an action run such as drop stone (if you’re going to implement dropping like on the bukkit Skript), wouldn’t cancel also cancel that? or not?
How do I write a script with what I said above before? on break iron_ore: drop 1 of stone at block location cancel
?? doesn’t seem right. got confused by the documentation sorry XD
more examples would be nice
That isn’t quite right, I apologize for the poor documentation. I’ll try to add more examples in the future. If anyone who is decent at writing documentation would like to help please contact me.
Here is a script that would cancel the break of iron ore and drop a stone:
block has block type of "minecraft:iron_ore"
drop 1 of stone at block location
The script will leave the iron ore there, because cancelling a break event will prevent the block from being broken. I believe that you want the iron ore to actually break, and just cancel the drop of iron ore. I’ll make this a possibility in the next release.