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! ;)
@Durand1w
The current version already works with it. It's always best to just try it out before asking.
I was wondering if there is an update that works with the current 1.4.5 Recommended Beta update for Bukkit?
@Sorky
Thanks for pointing that out. I guess there is no reason fence type blocks should not count as solid blocks. I'll add support for it.
@catbox01
It works with the latest recommended and beta builds. I'll wait at least until there is a new beta build to check compatibility, as things frequently temporarily break in the dev builds.
In the mean time, are you sure it really stopped working? So far, every time somebody has thought that, it turned out they were making some mistake building the bridge.
Looks like this is broken as of craft bukkit dev build 2503. Strange, because the portcullis still works, and I would assume the code is similar.
From what i can tell it will not consider fence/iron bars/rail types/cobble wall as being a solid block on which the bridge can move on when using the option in config to not allow it to float in air. Can this be solved or is it due to fence having a weird height thing of 1.5 blocks?
I upgraded the mc.pepsoft.org demo server to CraftBukkit 1.4.5-R0.2, so you should be able to log in with the latest version of the client again.
You can merge two plugins? RetractableBridge and PorteCoulissante in one plugins for 1.4.2? thanks
@RonanB
It works fine on 1.3.2-R1.0. What makes you say that it doesn't? Did you have previously working bridges stop working when you upgraded CraftBukkit? Or are you trying to use it for the first time? In the latter case, are you sure you're building the bridge correctly?
Doesn't work with Bukkit v1.3.2-R1.0 #2377.
Possible to update it? I would love to use this plugin... :)
hey, epic plugin, just a quick question. is it possible to use signs as a block for the bridges? such as making a 1 think wall with signs making the 2nd wide layer? or possible to make 1 wide bridges for that matter
Works excellent. Thanks
@nlancaster212
It is still compatible with the latest version of CraftBukkit (1.3.1-R1.0). :)
My users love this on my server, pdxmc.com, Do you know if/when this is compatible with 1.3.1?
thanks, nick
I just released version 1.4 of RetractableBridge, which contains the following changes, which may be of interest to many server admins:
The first two items are achieved with the new
allowFloating
andpowerBlocks
lines in theconfig.yml
file. See the Configuration page for details.@ghostyboy5
You were correct, somehow I didn't realize that the connection wasn't fully "Connecting" all the time. I feel stupid now haha.
@Captain_Chaos
I will attempt that in my maintenance tommorrow.
@ghostyboy5
It's very unlikely that my plugin is glitching. It either works or it doesn't, there is no reason why it would spontaneously work some times and not other times. Also, you're the only one reporting this problem (and thousands of people use these plugins).
I think it's more likely that some other plugin or process is interfering with it. Or that there is no glitch at all, but the problem is user error (people not building the bridge or portcullis right, or modifying an existing one and breaking it in the process). They can be finicky, especially if you're not careful with your redstone.
Build a very simple test bridge somewhere and verify that it works. If it spontaneously stops working, check the server log for errors. If you don't see any, you could activate the RetractableBridge debug logging to see if that tells you anything (by adding the line "debugLogging: true" to the config.yml file in the plugins/RetractableBridge directory. That file/directory may not exist yet, in which case you should create it by hand).
Note that it will only log to the server.log file, not to the console. If debug logging is not enough, try enabling extra debug logging by changing the line to "debugLogging=extra". This will generate a huge volume of logging and will probably cause lag, so don't leave this enabled!
@Captain_Chaos
It actually still happens. The bridges/portuculis's will work at certain times, say for an hour after creating them, then they will not work for a while, then they will work for a while, on and off this goes on; it seems to me like the plugin may be glitching?
@ghostyboy5
Glad to hear that! What was the problem?