ToggleBlock
Introduction
A simple plugin that allows players to register blocks and then toggle on and off (all blocks to air). Useful for dams, bridges, traps, secret areas, controlling redstone via commands and much more.
Features
- Multi-world support
- Block data support (wool colours, wood types, container positions etc)
- All regions are saved and accessible after a reload
- Regions are easily backed up
- Supports tbon and tboff commands from the console and players
- Can be used to activate redstone via a command (redstone torch in a region)
- Useful for draw-bridges, moats, traps, secret areas and more
- All regions are global and can be accessed by anyone
- Redstone activation (region on only when powered)
- Redstone can be inverted (region off when powered)
- Use /tb to list all regions
- Can be used to wirelessly activate redstone
Upcoming Features
- Fix dupe issue by protecting blocks in a ToggleBlock region
- Take user requests (comment below)
- Will be available in Polish for the 1.4 update
Current Bugs/Issues
- See above concerning duplication issue
Commands
Possible commands:
- /tb [name] - Starts/stops edit mode for a specific region of blocks
- /tbon [name] - Resets all blocks in the specific region to their original state
- /tboff [name] - Turns all blocks in the region to air.
- /tbr [name] - Links a sign (look at it) with a region to support redstone
- /tbrd - Remove linked sign that you're looking at
Source Code
This may be helpful for those wishing to learn Java or for the approval process. See http://dev.bukkit.org/server-mods/toggle-blocks/pages/code/
-
View User Profile
-
Send Message
Posted Oct 6, 2012Not timed redstone but a timed delay, say for example i make a door and when people press the button i want it to open and closed after some seconds = timed delay.
-
View User Profile
-
Send Message
Posted Oct 6, 2012@LeChuuck
Could you clarify? Timed redstone toggles?
-
View User Profile
-
Send Message
Posted Oct 6, 2012Hey
Great plugin, got a request but dunno if it is doable. Some kind of timer so when you press the sign or button etc the blocks will be put in a different mode then they where off->on or on->off.
-
View User Profile
-
Send Message
Posted Oct 5, 2012BETA Version - 0.4.2 http://dev.bukkit.org/server-mods/toggle-blocks/files/6-toggle-block-v0-4-2/ This version is for experience users only! This build has the potential to destroy your redstone sign data (the format has changed, but I've written an untested converter which *should* automatically detect and attempt to convert the data). I'd rather you used fresh redstone sign data (region data is fine and not affected) TBH :)
All permissions are listed below. If you already have regions, you need to run "/tb" after you install to setup a config file. Then do a reload, edit the config file and type "/tbon force reload" to load your changes. Regions without an owner can only be edited/removed/touched by admins with the appropriate permissions.
Full Changelog
toggleblock.region.edit.all (Allow users to edit other users regions)
toggleblock.region.list (allows you to list region names and owners)
toggleblock.region.delete.any (allows user to delete anybody's region)
toggleblock.region.delete.own (allows user to delete own region)
toggleblock.region.delete.all (allows user to delete all region information)
toggleblock.forcereload (allows you to use "/tbon force reload" to reload config file changes)
toggleblock.toggle.any (allows user to toggle other people's regions)
toggleblock.redstone.delete.all (allows user to clear all redstone sign data)
toggleblock.redstone.create (allows user to use /tbr to create redstone ToggleSigns)
-
View User Profile
-
Send Message
Posted Oct 4, 2012@Orngix
I'm hoping to work on the new version over the weekend :)
-
View User Profile
-
Send Message
Posted Oct 3, 2012When will permissions be available? This is a great tool for ops on my server but I don''t want any of my players using it for mischievous hijinks (Infinite tnt).
-
View User Profile
-
Send Message
Posted Sep 27, 2012@TheOnlyShad0w It doesn't need updating. It is fully compatible with 1.3.2 ;)
-
View User Profile
-
Send Message
Posted Sep 27, 2012Wow. Can you update this plugin?
-
View User Profile
-
Send Message
Posted Sep 19, 2012@mima19
does it work like controller block? (change blocks) Yes
Can you change them via placing something on something (redston on iron block) No, but you can use a redstone sign and the /tbr command to emulate this to an extent
-
View User Profile
-
Send Message
Posted Sep 19, 2012does it work like controller block? (change blocks)
Can you change them via placing something on something (redston on iron block)
-
View User Profile
-
Send Message
Posted Sep 17, 2012@mima19
What do you mean? I'm kinda confused. You want just a block? I went with commands + regions because they're easier to keep track of.
-
View User Profile
-
Send Message
Posted Sep 16, 2012@lol768
Oh, alright. Do you think you could simplify it (make it easier to use) with something like controller block used to have?
-
View User Profile
-
Send Message
Posted Sep 15, 2012@mima19
My description isn't great :)
TL;DR: Regions can override others
-
View User Profile
-
Send Message
Posted Sep 15, 2012@mima19
It will swap blocks if you have more than one region. Basically, if I make a region called red, and place a red wool in a particular place. Then I make a region called blue and place a blue wool block in the same location as the red wool was.
Doing /tbon red will change it to red /tbon blue will change it to blue.
It only sets it to air if you use /tboff [region]
This can also be used for signs, and changing their text.
-
View User Profile
-
Send Message
Posted Sep 15, 2012Does it have the ability to swap blocks like in controllerblock? or is it just to air like it says at the top
-
View User Profile
-
Send Message
Posted Aug 27, 2012@Orngix
I've written the code, I'm just tweaking it a bit to polish it.
I've been considering per-player toggle blocks. Is this something you'd be interested in?
-
View User Profile
-
Send Message
Posted Aug 27, 2012I love this plugin as it is a good alternative to ControllerBlocks though I do feel that it is lacking some things. Mainly permission support. Will it be expected to be included in the 1.3 update?
-
View User Profile
-
Send Message
Posted Jul 25, 2012@meteostrike3
Might I suggest using something like this? http://dev.bukkit.org/server-mods/lightdetector/
-
View User Profile
-
Send Message
Posted Jul 24, 2012@meteostrike3
Like a light sensor? Sounds like an awesome idea.
-
View User Profile
-
Send Message
Posted Jul 24, 2012@rezemika
Thanks :)