ScriptBlock
Welcome on the ScriptBlock v0.8.0 project page !
ScriptBlock is a CraftBukkit plugin inspired by the great Fluff's plugin Annotate and CommandSign !
It allow you to bind text, commands, or MANY commands to any block (levers, buttons, doors, Signs, etc...), triggered by clicking or walking on it !
Here is a Tutorial video made by Kunoichi Kitteh ! Thanks to here !
LiekMudkipzz also made a cool video of ScriptBlock ! It's a bit outdated, some commands have changed ! but Thanks to him too !
Here is the link !
Regarding Donators
Those who help me maintain motivation for Keeping this project updated !
I really Thanks them !
S4h4rk
StefanPelskamp
Slipswhitley
About 0.8.0...
Lot of change in the codes, in the commands, to make possible and easily, for other devs, the add of Options, and the use of ScriptBlock Options for other Minecraft Event than walk , and interact trigger ! ( ask for sources, and for help if you want to do one ! )
Also a New BIG and FULLY customizable permission system. See changes log for more informations !
Features
- Adding any text, command, or set of commands to a block (levers, buttons, doors, signs, etc...) with Various Options !
- Read any Text and execute any commands or command Script. that has been bound to a block with right or left-click !
- ScriptBlock use the Vault API ! You need to download it even if you don't want to use the Economy and Permissions features !
Download Vault - Support all permissions plugins supported by Vault or if you don't like permissions, it can be Op based only !
- Most of Economy plugins support (if Vault support it, ScriptBlock support it too ! ).
- MultiWorld Support.
- Player can use a bound command, even if he usually doesn't have the permission to use it, with the help of the @bypass prefix.
- You can edit scripts with a simple Text editor like notepad
++
. - Look at Changes Logs for more Infos !
Commands
Trigger:
- /sbinteract
is used for "on block interaction triggered" scripts ! - /sbwalk
is used for "on block walk triggered" scripts !
After you've choosen the kind of trigger you want , you need to choose the type of commands you want to send to ScriptBlock !
Types:
- create
Use this command to create a script and follow displayed informations ! - add
Use this command to add a command, or a script to an already created one, or to an already bound one. - remove
Use this command to remove a script from a block. - view
Use this command to view the script you've bound to a block ! - reload
This command let you reload the save file, to refresh the scripts bound on blocks !
Usefull when editing script in the BlocksData.yml save file while server is still running !
exemples:"/sbinteract create" , "/sbwalk create", "/sbinteract remove", "/sbwalk remove", etc...
Options
There is a lot of cool options you can use for your scripts ! You MUST at least use one option with your script to make it work !
Options List
Permissions
ScriptBlock Permissions system have a lot of possible customisation. You can use simple permissions nodes if you are admin and want full power, without taking the time to set up all the permissions for your players. Or you can take the time, and fully customize the way you want your players to use ScriptBlock.
Upcoming Features
- Per Player Cooldown.
Economy plugins support- Copy/paste Scripts. (low priority)
Add a Config file to edit Script that has been bound.More Permission NodesA command that let you know what commands you've bound to a block.- WorldGuard / Residence support. (low priority)
- Custom messages
- Chat color
@aelodia
scriptblock.interact.use for and scriptblock.walk.use ! My bad, I forgot to write it in the doc... Permissions are more complicated to use, but it's the price to increase possibilities :/
what is the permission to allow a group to only use all scriptblock, but not allow them to create one please ? Im kinda lost with this new update xD
thx for this plugin !
@sheepwool7 @rlgura
You are right ! I forgot the folder creation, before the file creation... It's fixed in 0.8.1! I updload it right now !
@rlgura
Have you updated Vault to the latest version.
@Shereis
Yes there is a issue with permADD@ and group manager
I am getting the same error as @rlgura
Just added ScriptBlock 0.8 to my server, but on startup, it won't create it's configuration files:
[INFO] [ScriptBlock] interact_Scripts.yml created ! [SEVERE] java.io.IOException: The system cannot find the path specified
I get similar errors for all 4 files and the files don't get created...
UPDATE: I downloaded 0.7.2 and started up with that version - it created config files, stopped server, updated to 0.8.0....so looks like you lost some code with 0.8.0 to create initial files
EDIT: 0.8.0 incoming !, needs approval !
@Slipswhitley
It's nice to offer your help ! But don't worry ! helping people and answer them is not that take me the much time ! Also, I don't use Skype... =p
Why don't you simply use the '@permADD:' option for this kind of script, Do you have issues with it ?
Hey Shereis
I would be happy to teach anyone who needs help since I know you don't have alot of time too. I have used scriptblock since you you started building it and suggested the @group and @amount Commands. Also use advanced scripts on my dedicated server to manage donations selling player plots and player permissions.
Heres a example of a advanced script I use to let people who donate $100 level 1 of there mcmmo skills up to level 1000
First add custom.mcmmo to groups permissions [@perm custom.mcmmo] [@bypass /ccmd manuaddp <player> -custom.mcmmo] <- This means the command is sent to the console using a secondary plugin and the negitive permission means they no longer have that permission (Group manager) [@bypass /mmoedit <player> <skill> 1000]
Skype Name: Slipswhitley
@NinjaWhoPwns
You can use the @amount command at the end of the script. Example: /sbcreate [$cost:100] [@amount:1]
Hey, Is there a way for you to make it so you can only perform a script once? Besides putting like '@cooldown:100000000'. I really need to know. Thanks!
Very nice plugin :) If there would be a way to activate a redstone cicuit with scriptblock, that would be awesome!
I love this plugin. Thank you so much for creating it. May I suggest a few commands/enchancements? Where is the best place to submit those?
EDIT: nevermind, I found the Tickets section. :)
Thank you so much for the help. :D I'll be sure to invesatigate more before asking a question which can be answered so easily. Thanks again.
@Rawker31994
the good syntax for this is : /sbcreate /give <player> diamond 1
if you want to bypass permissions, you can also add this option :
/sbcreate @bypass /give <player> diamond 1
You should really check the Options page... it explain how it works ! and there are also few examples !
@yuhhaur
I have modified a lot some things in the code you should check before continuing the modding ! sources
I also added a new permissions... it's fully fonctionnal, but I think I will do some little change on nodes....
and my recoding isn't fully done yet, I will modify the blockcoords.class, and probably the way options are handled, to make possible the addition of options without modifying the code of Scriptblock.
(And your source would be cool to see if your options made major change in the Read.class, to see how I will make my api)
About the per-player cooldowns, I prefer do it myself ! but if you have some ideas, feel free to make suggestion !
<<reply 694619="">> @Rawker31994
try:
/sbcreate @bypass [/give @player diamond 1]
Note: [ ] is important
@Shereis your plugin is great, now I modded it to include checking on:
TownyAdvance - is player resident/mayor/assistant?
Deathcounter - how many zombie kills the player did?
The next things I want to try is help you in the per-player cooldown. I'm still thinking how to do that.
If you want the source I am willing to share. :)
Is it possible to perhaps have the command script do the command to a specified player? for example:
/give <playername> diamond 1
or something of that nature? This way any player can use it? This is just an example, I was planning on combining this and the ColorKeys mod in combination.
@jorisk322
open a ticket and post it :
- the name of your permission plugin .
- the part concerning the script that have an issue in the blocksdata.yml .
- the version of VAULT, Bukkit, and of your permission plugin .
The @bypass and @bypassPERM don't seem to work for me.. I tried using @permADD and @permREMOVE in the same script, but the permission wan't removed. There aren' t any errors in console or something. I have no idea what the problem might be. EDIT: I'm using the lates version BTW
@Shereis
That would be awesome. I love this plugin