šŸ“ƒ [0.3.0] SimpleScript - Discontinued

Planning to add more actions soon? like drop item, or teleport?

from the documentation:
Cancel
Cancels an event, if it can be cancelled. Any lines of script after cancel will not be run.
Usage: cancel

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?

Iā€™ll add more actions soon. As for cancelling an event and dropping stone, you would simply drop the stone first and then cancel the event.

Ah the format is a bit different from bukkitā€™s Skript but as long as it has similar functionality itā€™ll be neat :smiley:

1 Like

SimpleScript 0.2.0 is now available!

  • Improved error handling
  • Added BlockType property
  • Reworked aspects of variable parsing
  • Changed Permission from a VariableFunction to a VariableProperty
  • Disallow VariableFunctions from being run in a Conditional
  • Added Teleport and Drop actions
  • Allowed Conditional statements to be reversed using not
  • Many other smaller changes

Supported Sponge API: v4.x.x

Enjoy SimpleScript!

SimpleScript 0.2.1 has also been released, fixing bugs found in 0.2.0.


Please report any issues or bugs to GitHub Issues. Questions regarding script creation should be posted to the this thread.

2 Likes

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 :smile:

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:

on break:
    block has block type of "minecraft:iron_ore"
    drop 1 of stone at block location
    cancel

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.

1 Like

Ah yes, thanks!

SimpleScript 0.3.0 is now available!

  • Added linked events
  • Changed format of the drop action
  • Added set block action
  • Rewrote variable parser to be smarter
  • Other small changes

Supported Sponge API: v4.x.x

Enjoy SimpleScript!


Please report any issues or bugs to GitHub Issues. Questions regarding script creation should be posted to the this thread.

1 Like

Iā€™ve update the docs to include an examples page, and added an example script to do what you described.

1 Like

Awesome. Lemme test it out as soon as I can :smiley:

1 Like

Iā€™m testing on sponge forge 1338 not sure if it has anything to do with the version but the example script for the iron ore isnā€™t working.

I believe that you typed the script incorrectly, it worked perfect for me on the latest version. Check your indentation and make sure it is 4 spaces or 1 tab.

1 Like

I just copy pasted the example XD lemme see again

Edit: Yeah it had 3 spaces only, made it 4 and it worked. Thanks!

Iā€™ve fixed the spacing on the docs so now it is okay to copy and paste it.

1 Like

Is this plugin usable as much as Skript? from what I can tell itā€™s not that far or the docs havenā€™t been updated idk since alot of the skripts functionality is missing from simplescript which hopefully gets added at some point! Thanks keep up the great work! Iā€™m waiting for future updates!

Stuff Iā€™d want in simplescript:

  1. on right and left click
  2. on death
  3. on death mobs and items can have named ā€œExampleā€ to allow custom named items and mobsā€¦
  4. variables that allow you to store an exp system from lvl 1-100
  5. chance like in skript for a drop system with % chances
  6. and just everything from skript and beyond to make this plugin better than ever!

The project just started 2 weeks ago, so there are not many features yet. Iā€™m slowly adding features, but mostly working on things that are not noticeable to the end user to get the plugin stable first. In the future Iā€™ll add these features and more to the plugin.

2 Likes

YAML support please.

I have YAML files for each of my users and Iā€™d love to move from Skript to this plugin.

SimpleScript is not a clone of Skript. It is a completely different plugin. The language syntax is different, so scripts can not be ported simply by changing a file extension. I prefer languages other than YAML, so I donā€™t envision adding support for it. Also, SimpleScript currently does not have as many events and actions as Skript had, I am still working on implementing them.

You could write a python script that converts the YAML to HOCON or JSON.

Unfortunately, I have decided to end the SimpleScript project. I simply :wink: do not have the time to continue supporting it. If anyone would like continue the project, please contact me.

1 Like