BlockScripts (Your own events)
This mod allows you to bind BlockScripts to blocks, with which you can do numerous things! BUKKIT_1.4.2-R0.1
Latest Version: BlockScripts V1.4.2
- lots of new Options
- minecraft version 1.4.2!
Hello I'm Shellofchaos and this is the first mod im uploading to bukkitdev, this mod is also still in beta stage and will be expanded.
What does it contain:
- The ability to teleport between multiple blocks randomly or in order and with more options!
- The ability to spawn any mob also randomly or in order.
- The ability to change the block its itemid from multiple itemids also randomly or in order.
- The ability to control any of the above actions from an remote block which can also control multiple blocks or a whole bunch at once.
- The ability to make blocks give an output only once (this will reset on server: reload, shutdown, start up or the special command.
- Blocks can't be destroyed.
What will it contain soon:
blocks spawning items on activation.A command to lookup blocknames.Full permission support (now everything is default op except for using the blocks (clicking destroying and walking over them)).per block permissions and per action permissions
Ability to add commands to blocks.Ability to activate blocks with redstone.A timer script so blocks can activate when the timer has ran out of time.A freeze script which will toggle on block activation.- Good idea's are always welcome.
Recently added
- reseting changed blocks; /setoption [blockname] setreset [time in seconds]
- cooldown for block activating /setoption [blockname] setcooldown [time in sec]
- keys for activating blocks /setoptiong [blockname] setkey [itemid for key]
- Broadcasting /setthen [blockname] broadcast
- setlist [blockname] [message you want]
- Redstone activation /setif [blockname] onpower
- Add timers to blocks /settimer [blockname] [timeinseconds] [true(will repeat)/false(will not repeat)]
- Adding and activating commands with blocks.
- item spawning from blocks
- setting an blocks health (amount of actions needed before activating.)
Permissions
BlockScripts.set.timer = /settimer [blockname] [time]
BlockScripts.get.name = /blockname
BlockScripts.create.break = /setbreak [blockname] [false/true]
BlockScripts.create.option = /setoption [blockname] [option] [true/false]
BlockScripts.create.list = /setlist [blockname] [list]
BlockScripts.create.event = /setthen [blockname] [teleport/spawnmob/changeblock/activateblock/docommand/spawnitem/freezeplayer]
BlockScripts.create.if = /setif [blockname] [onhit/onwalkover/ondestroy/onpower]
BlockScripts.create.delete = /delblock [blockname]
BlockScripts.create.add = /addblock [blockname]
BlockScripts.do.onwalkover
BlockScripts.do.onhit
BlockScripts.do.ondestroy
BlockScripts.use.spawnitem
BlockScripts.use.spawnmob
BlockScripts.use.changeblock
BlockScripts.use.activateblock
BlockScripts.use.teleport
BlockScripts.use.docommand
BlockScripts.use.freezeplayer
Commands:
- /addblock [blockname]
- /delblock [blockname]
- /setif [blockname] [onhit/onwalkover/ondestroy/onpower]
- /setthen [blockname] [teleport/spawnmob/changeblock/activateblock/docommand/spawnitem]
- /setlist [blockname] [list]
- /setoption [blockname] [option] [true/false]
- /setbreak [blockname] [true/false]
- /reloadblock [blockname]
- /blockname
- /sethealth [blockname] [health]
/addblock [blockname] *look at a block and execute this command* the block doesn't do anything yet example: /addblock test1
/setif [blockname] [onhit/onwalkover/ondestroy] *set what the block will react to.* the block still doesn't do anything yet example /setif test1 onwalkover
/setthen [blockname] [teleport/spawnmob/changeblock/activateblock/docommand] *will set the action for a block after one of the above actions has been "acted"* example /setthen test1 teleport
/setlist [blockname] [list] *now you can insert a row of names or item ids in the [list] part.*
if your block has teleport ((/setthen [blockname] teleport)) then set the names of blocks to teleport too. example /setlist test1 blockname2 blockname3
if your block has spawnmob ((/setthen [blockname] spawnmob)) then set the names of mobs to spawn. example /setlist test1 cow creeper sheep
if your block has changeblock ((/setthen [blockname] changeblock)) then set the itemids for the block to change too. example /setlist test1 1 69 4
if your block has activateblock ((/setthen [blockname] activateblock)) then set the names of the blocks to activate. example /setlist test1 blockname1 blockname2
if your block has docommand ((/setthen [blockname] docommand)) then set the command to activate. (you can only have one command for each block) example /setlist test1 blockname1 blockname2
/setoption [blockname] [option] [true/false] *if posible will set the the option true/false for the given block*
- /setoption [blockname] random [true/false] *Will pick an random item from the list and use it as output*
- /setoption [blockname] once [true/false] *Will only pick every item on the list once* can be reset with /reloadblock [blockname]
- /setoption [blockname] all [true/false] *Will pick all the items from the list and use them as output* *do NOT! use this for teleport script!!!(results in lag)((will be given an fix soon))*
/setbreak [blockname] [true/false] *Set if an block can be broken.The Blockscript will stay at the location so just replace the block to activate it again*
Example usages.
- you can create semi random spawnpoints for your world/arena
- you can make it generate waves of mobs for arenas
- make hidden-entrances/retracting bridges by changing blocks
- make spawnpoints for you hungergames/skyblock map so everyone get their own spawn/island
- make portals between places/worlds
- delay everything or repeat it with the help of timers.
- any thing you think off with teleportation/mobspawning/blockchanging
Installation
to install download the BlockScript.jar and put it in your plugins folder.
@shellofchaos
hey again, so i got the teleport to work didnt know about needing the cords
as for the docommand still no luck, i tryed it out on some eazy command like (day) as seen http://i48.tinypic.com/35k73ua.png as u see in that photo i got a msg saying somthing wrong with /setlist block1 day so i made a new block block2 and redid the same steps but with the command (time set day) didnt get a msg that time saying somthing was wrong but it didnt work and got the msg (there is no command set) still
I tryed it in photo with onpower but i have also done it with other types aswell the one im going for is ondestroy
@noraver
Hello thanks for your post. the /setthen [name] teleport give you a block that teleport you. but this block doesn't haver any teleport location yet. you add those with /setlist [name] [otherblockname] [etc..] [etc..]
same for docommand you add the command with /setlist [name] [command here] ((only one command at a time without the "/"))
next the reloadblock doesnt reload the config but reloads the given block if it has the "once" option. and yes the sethealth didnt have an save its updated in the new version. http://dev.bukkit.org/media/files/644/192/BlockScripts.jar
Hey shellofchaos,
i seem to be having problems with some of the blocks command for V1.4.2, Latest Version of everything installed.
I love this plugin and use the docommand alot in the rpg server im making so i hope to hear some feedback thannks =)
@willkiller1234
i am not sure what you mean but i think: on an action the block has to change that same action has to set an timer for the block to change back.
to do this make 2 blocks at the same location and make them both activate on the same action. now make one of the blocks the "changeblock" with and list of the block to change too and to change back too. for example id 1 and id 2 you do /setlist [name] 1 2
and the other block is an "activateblock" block created with an timer /settimer [name] [time in sec] false
and just make it activate the first block so it changes back after the timer ran out.
If you make it change block how can you make the block reset back to its normal state on its own?
@shellofchaos
Amazing. I'm gonna check it out asap. ;)
@user_996761
i can notify you that i changed the way Redstone activated blocks are handled so in the V1.3.0 you can activate commands with them.
@shellofchaos
Great then, thanks for the info and for the fix!
I'll test if it works as intended in a couple of hours, then. If there's some kind of problem I'll comment here later. And thanks again!
@user_996761
i forget to mention something the onpower event cant do teleports or commands.
@user_996761
update V1.1.5: http://dev.bukkit.org/media/files/638/658/BlockScripts.jar
@user_996761
Hey thanks for the information due to someone else sendding me an personal message i noticed there were some bugs with block if there were multiple blocks pressend at a certain location. ive uploaded a fix right now ill post link in next post
Hello,
I don't know if I'm doing something wrong but at this time the plugin is not working on my server. First of all, I haven't set any perms just because I'm the owner/admin/op and the only one who will use this. The commands for the plugin work fine, though (I receive the messages in chat), so I guess is not a problem with permissions.
So, what I'm trying to do is to set up a block so once it's powered it does a command. But I don't know if I'm doing right.
I start with:
/addblock Test - /setif Test onpower - /setthen Test docommand - /setlist Test eb spawn ZombieKing here (example command) - /settimer Test 1 false
I also tried with "/" and different kind of commands, like /weather sun or other admin commands (basic commands), but still doesn't work. Then I thought I was using the plugin in a wrong way and tried with a teleport:
I add a block named Test1 and one named Test2
/addblock Test1 - /addblock Test2 - /setif Test1 onwalkover - /setthen Test1 teleport - /setlist Test1 Test1 Test2
It doesn't work, so maybe I'm doing something wrong. Could you help me?
Thanks in advance!
Erethrian
i make a video after i ave donet i post im her .
@Fexer
what kind of problems?
yes they ar no problem on console . just in game
@Fexer
i dont see a problem there.
plugins
09:31:46 [INFO] Plugins (36): MultiWorld, WorldEdit, EpicBoss, VanishNoPacket, C
ommandBook, Buycraft, Vault, PermissionsEx, TerrainControl, Jail, DeathChest, Mo
reRecipes, iConomy, Nordic, SkylandsPlus, Tropic, TreasureChest, ZavAutoMessager
, Lockette, MonsterBox, WeatherMan, ProtectBlock, MobArena, CrazyCore, Lift, Cit
izens, CreeperHeal, ChatManager, iZone, CrazyLoginFilter, ScriptBlock, PluginsBa
ker, CrazyLogin, iGates, ChestShop, AntiCheat
http://pastebin.com/SX9Q6ktP
@Fexer
are you sure it isnt compatible i did some testing and it seems to work fine do you have the pluginbaker plugin and vault installed?
@Fexer
Igates doesnt load or are the commands not working?
@Fexer
is broke the IGate but is steal a good plugins . Good job