BlockAction--A Powerful Block-Script Plugin [API 5.x/6.x/7.x/7.1.x]

BlockAction

BlockAction is a Block-Script Plugin for Sponge,Functionally similar to ScriptBlock on bukkit servers.
BlockAction has more features and is more powerful!

V1.2 released, new features please visit the link below!

Features

  • Create script
  • Attach a script to block
  • Multiple scrips on one block
  • Multiple commands on one scrip.
  • Walk / click a block to execute scripts on the block
  • Delete scripts on a block.
  • Change the script-content of the last script of a block
  • Message/economy/permission supports
  • Powerful and Flexible script-content-settings

Downloads

GitHub Release V1.11(API5-6) && V1.2(API7+)

Commands

/ba (or /blockaction)
/ba setmode [disabled/viewmode/deletemode/clearmode/aabbmode] [Player]
/ba getmode [Player]
/ba create [Script-Content]
/ba change [Script-Content]
/ba createfrombook [change/create]
/ba remove X Y Z R [World]
/ba find X Y Z R [World]
/ba clear [World]
/ba clearall
/ba getitemname [Item-Storage Token](This Token will Only be used in this Plugin)
/ba itemstorage list
/ba itemstorage remove token1 token2 token3...
/ba itemstorage clear
/ba reload
/ba reload config
/ba reload data
/ba autosave [state/start/stop]
/ba aabbseter info [name]
/ba aabbseter create [name]
/ba aabbseter remove [name1] [name2] [name3]...
/ba aabbseter apply [name1] [name2] [name3]...
/ba aabbseter clear [world1] [world2] [world3]..
/ba aabbseter clearall

Permissions

blockaction.commands.info
blockaction.commands.reload
blockaction.commands.createfrombook
blockaction.commands.rangeremove
blockaction.commands.find
blockaction.commands.clear
blockaction.commands.clearall
blockaction.commands.create
blockaction.commands.aabb.clear
blockaction.commands.aabb.clearall
blockaction.commands.aabb.create
blockaction.commands.aabb.apply
blockaction.commands.aabb.info
blockaction.commands.aabb.list
blockaction.commands.aabb.remove
blockaction.commands.change
blockaction.commands.setmode
blockaction.commands.getmode
blockaction.commands.getitemname
blockaction.commands.itemstorage.list
blockaction.commands.itemstorage.clear
blockaction.commands.itemstorage.remove
blockaction.commands.autosave
blockaction.excute.click
blockaction.excute.walk

Script-Content Setting Nodes

@Command
@Message
@Server
@Bypass
@Player
@Perm
@Group
@Amount
@Value
@Delay
@Cooldown
@Hand
@Item
@Punish
@SuccessStop
@FailStop
@CloseInfo

Simple Usages && Examples

You may use /ba create to create a script.
For example:

/ba create @Command:/weather clear;/give @a apple 2;/give @a diamond 2 @Bypass @Walk @Click

This will create a script who can be executed by both click / walk on a block which has this script,and the player who executes it will be given 2 apples and 2 diamonds,also the weather is clear. @Bypass will force the command to be executed by server-console.

Full Function

Tutorials:
Chinese Simplified (You may need Google Translate)
English(Under Building…)

Dependencies

Economy Plugin(TotalEconomy Recommended)
Permission Plugin(LuckPerms Recommended)

:warning:Bugs

If you find a bug or are having a problem with BlockAction, please create a ticket at GitHub or just reply here.

4 Likes

What about @Override and @EventHandler?
jk cool plugin man! Really useful for adventure maps and such! :wink:

@Override and @EventHandler are only used in Java Codes and will not be used in Script Content…
the '@'s which can be used are listed above…

1 Like

I know, I create my own mods :stuck_out_tongue:
It was just a joke. But I’m definitely using this on my server! Definitely. This is useful in so many ways, too many that I can’t even think of at the top of my head at the moment!

…Hmm…I didn’t catch it…

1 Like

You know how to fix this?

https://pastebin.com/ALC6er4d

When i enter in my server, this will crash every time…

Yeah…I fixed it…long time ago
If you have read about the chinese Tutorials you might already know it.

anyhow I updated it here now