RetractableBridge
Build redstone powered rectractable bridges, without using commands!
Features:
- It doesn't use commands. Just build the bridge and it will work.
- Stateless, i.e. it does not have to save anything on the server.
- It's redstone powered, giving you flexibility in controlling it.
- It is realistic. The bridge does not disappear, but slides in and out just like a real one would.
- Holds back water or lava... ;)
- Configurable speed by applying more or less redstone power
Demo server: mc.pepsoft.org
Check out the PorteCoulissante and RetractableBridge demo Minecraft server at mc.pepsoft.org. It shows examples of both plugins in use, so you can see what you can do with them, and how you use them.
Note that you can't build or break anything or go too far from the town. You can use chests, beds, furnaces, etc. Hostile mobs won't spawn inside the walls at night, but they do spawn outside the walls. If you want to have some fun, there is food in the inn's kitchen, and weapons in the armoury. Note that the gates don't open from the outside!. If you lock yourself out or you get stuck, use the /kill command to kill yourself and respawn. Please let me know if you encounter any problems, if the server is full, or if you find any evidence of griefing!
Server admins, feel free to direct your users to this demo server so they can see how to use the plugins!
Usage:
- Build the bridge itself, out of slabs/half-blocks or double slabs.
- Make sure there is at least one block adjacent to the bridge on three sides, so that it can't move in that direction.
- For the direction in which you want it to move, make sure there is a block to stop at the distance you want it to move to.
- Power one of the blocks underneath the bridge with redstone. Please note: you are powering a block underneath the bridge, not the bridge itself! Note that for the purposes of this plugin, just running redstone wire underneath a block will power it.
- If you power more than one block, the bridge will move faster! Two blocks doubles the speed, and three blocks doubles it once more (so four times as fast as one block).
- Make sure that when the bridge is fully extended it is still in contact with redstone power underneath. It can be the same blocks, or different ones.
- When the blocks receive redstone power, the bridge will move to the south or east (in other words, increasing x or z coordinates; depending on which direction is free), when they lose redstone power, it will move to the north or west (in other words, decreasing x or z coordinates).
- Here is an example. If you build this, it will work. The bridge in this picture is three blocks wide and four blocks long. Note that it only has one powered block, so the bridge will move at its slowest speed:
Tutorial:
Check out this tutorial created by the folks of UK Gaming Troops:
Hints and tips:
- The bridge has to be at least two blocks long on each side, and it must be rectangular. It can't have holes or bits sticking out. It also can't abut any other blocks of the same height and material (when open or closed), since the plugin will think they are meant to be part of the bridge.
- I highly recommend to make the distance the bridge can move less than its length. That way, the blocks at the forward edge of the bridge (when it is open) are always in contact with the bridge, so you only have to power one of those blocks.
- The bridge will go through (and hold back) water and lava, so you can make water gates and water or lava traps with them.
- The blocks that stop the bridge when it retracts can be steps or stairs. This way you get a smooth walking experience when the bridge is closed, without having to jump, if you are using slabs/half-blocks for the bridge. Here is an example to show what I mean (the bridge is closed in this example, and there are wooden stair blocks on each end):
Source code:
The source code for the plugin is hosted at sourceforge.net. See the Source Code page for details.
Configuration:
The plugin is configurable via a configuration file. See the Configuration page for details. The aspects of the plugin you can configure include: the speed of the bridge; the materials from which you can make it; the materials that are allowed as power blocks (the blocks directly underneath the bridge through which it receives redstone power, by default this can be any solid block), whether or not bridges are allowed to float in thin air and various aspects of the sound effects.
Feedback:
Please let me know what you think of this plugin! Are there any bugs? What can I improve about it? Leave a comment on this page to let me know. And if you're a server admin and you're using my plugin I'd love an invitation! ;)
Hey dev. Love the plugin and have used it for years. Any chance of this getting updated for 1.18+?
LOVING IT ON 1.11.2 STILL! The UNBREAKABLE plugin!
Still working strong for 1.9!
Hey Captain_Chaos!
A great plugin, my son (11) and his buddies have gone wild with it.
I had a flash (but code is not my thing)
Since just about everyone has tried elevators, how about taking your code and tweaking the movement to up/down. Assuming a 4x4 platform, a solid block above or below on at least one of the edges could determine direction of travel and/or where to stop. Maybe trigger with power to an edge or 2 or 3 or 4?
Great work! Marc
So funny thing is when I saw the video, I thought, "Huh, that seems like the same mechanics as the PorteCoulissante plugin I use and love." And then I clicked on the author's name and lo and behold, same author. Kudos to you, man for making two great plugins. I use the PorteCoulissante in conjunction with Wireless Redstone and it works wonderfully. Keep up the great work.
Haan ok :)
Id 126 is sufficient. for color wooden half slab,
Thanks
@Max633
126:2 is not a valid block ID. A block ID is a single number. You can't specify data values (and no, I have no plans to add that possibilty because I don't think it's necessary).
126 is the wooden half slab, which RetractableBridge already supports out of the box. Why are you trying to add that to the configuration?
Hello
I added an object id 126:2 and it made me an error log.. Help me
Thanks
Is there a version of this coming out for 1.6.4, I would really like to use it on my server.
@catbox01
The plugin works fine with CB 1.6.2. You can see it working on mc.pepsoft.org, which runs CraftBukkit 1.6.2-R0.1, and my own test world (which has bridges in all directions) does not show any problems either.
Have you made sure that the plugin really does not work by building a simple test bridge? If so then maybe there's a conflict with another plugin. Try disabling all plugins except mine (and WorldGuard if you're using that, as I know RetractableBridge works with it) temporarily to see if that fixes the problem. If so, add the other plugins back in one by one to find the one that's causing the problem.
You should also check the log file to see if there are any errors reported by the RetractableBridge plugin (the lines will have [RetractableBridge] in them).
Players are reporting that this plugin is broken with 1.6.2. It could be that the bridges are no longer responding when placed in certain orientations, as has happened before. Are there any plans to update this to 1.6.2, or is it going to be abandoned at this time?
I've submitted a patch to Captain_Chaos to add size limits to retractable bridges. Retractable bridge on a flatland can crash a server.
@joehot200
Because that would sound nothing like a sliding bridge deck?
But anyway, the plugin has sound effects! You have to use SpoutPlugin on the server though, and SpoutCraft to login.
Adding a sound effect should be easy - why not just create a sound /smoke effect / mobspawner flames at the location of each block?
@richturd
No, only back and forth.
Can the bridge move up and down?
New plugin!
I just created a new plugin, which may interest people here. It is called BlockySmoke, and it allows you to make, well, blocky smoke... Specifically, smoke made from cobweb blocks, which actually moves and billows.
(Note that the "chimneys" can be made from any material; they just happen to be brick in this screenshot.)
The plugin is command based, and as you can see it is highly configurable, allowing for small puffs to huge clouds of smoke and thin tendrils to thick, dense plumes. You can use other block types, constrain the wind direction, etc. For more information, see the plugin page: http://dev.bukkit.org/server-mods/blockysmoke/. For a demonstration, visit my demo server in Minecraft: mc.pepsoft.org.
@hookamenace
Are you sure that when the bridge is extended it is still in contact with a power block (the same one(s) that caused it to extend, or different one(s))? And are you using the latest version of the plugin (version 1.5.1)?
Hey, thanks for the mod.
Have a little trouble, I can't get the bridge to retract. I have the same model as the first picture
Thank you!