Inactive [MECH] RetractableBridge - Easy and realistic retractable bridges

Discussion in 'Inactive/Unsupported Plugins' started by Captain Chaos, Mar 31, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Captain Chaos

    RetractableBridge moved to BukkitDev!

    RetractableBridge has moved to BukkitDev! I will no longer be updating this thread, please use the BukkitDev page to keep track of developments, download the plugin and source code, read how to configure it and other details, etc.

    RetractableBridge - The easy and realistic retractable bridges plugin:

    Build redstone powered rectractable bridges, without using commands! Much requested by the users of my PorteCoulissante plugin. If you know that plugin, this is basically the same thing, but horizontally instead of vertically... :)

    Download the latest release from the BukkitDev page.

    • 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
    • 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 west (depending on which direction it is able to move in), when they lose redstone power, it will move to the north or east.
    • 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:

    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):

    More information:

    For download links, source code, configuration information and change logs, please go to the BukkitDev page for RetractableBridge:
    kawa1107, Undrtakr, Xordaii and 8 others like this.
  2. Offline


    :D gotta love portability and no region restrictions! provided you have WiFi access! GO HAMACHI!
  3. Offline


    Ha, I'm too lazy for portability :B
    So I just start it up whenever someone's online xD
  4. Offline


    ah lol that works too!
  5. Offline


    I like the Idea of your Plugins!
    will test them this evening after i've installed my new Notebook

    An idea for your next plug or an addon or sth like that I'd like to see a escalator :)
    Is it possible? then you are my hero :)
  6. Offline

    Captain Chaos

    I don't think that's possible, at least not with just a server mod. But also, I don't think an escalator would fit very well with Minecraft's medieval/fantasy theme... ;)

    I am working on another Minecraft tool, a map painting/generator tool:
  7. Offline


    hmm, ok, just an idea :) (beacause i build a warehouse atm ;) )

    Wow, looks nice. Will take a look at it this evening, too.
  8. Offline


    Im having a bit of trouble with this mod. Your Port Cullis mod works great, however, when using this mod, my bridge goes across, but doesnt come back when i change the input.
  9. Offline


    I like your plugins, but they can mostly be done with CraftBook (or FalseBook).

    I do like the simple redstone capability, though.
  10. Offline

    Captain Chaos

    Is it still in contact with the input when it is on the other side?
  11. Offline


    I'll just plop this link down...
  12. Offline


    thx, but elevators still runs on my server but it went up straigt ;)
    i want to move diagonal. but... was just an idea.

    another question to this plugin.
    is it possible to build a bridge which has more than one block height? or should it be only one block height?

    i want to build sliding-doors.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
  13. Offline


    Yep, its still in contact.
  14. Offline

    Captain Chaos

    Well, you're the first so far to report trouble like this, so it's likely to have something to do with your particular situation. Perhaps you didn't build it correctly, or maybe another plugin is interfering. Can you post a picture of what you build? Try to take from such an angle that I can clearly see where the redstone is going.
  15. Offline



    Here it is. It originally worked, moving the bridge to where it is, and now its stuck.
  16. Offline

    Captain Chaos

    It's hard to see, but I think that the powered block is actually not in contact with the bridge anymore. Remember, you're powering a block beneath the bridge, not the bridge itself. It looks like the redstone leads to a block that the bridge has moved away from.

    Remember that you can power the block from below (by just running redstone dust underneath) instead of from the side if you wish.
  17. Offline


    VOTE 4 YOUTUBE VIDEO for build a small bridge :D my english is not so good and i dont understand all points to build this one...a small simple videobridge build :) plz xD

  18. Offline


    here's a better pic, i made note of your point, and made the bridge so the gap is one less than the bridge size, the end bridge block is always over the redstone.

    Only other mods im using atm is essentials and wormhole x-treme, and your port cullis.
  19. Offline

    Captain Chaos

    I think you're missing the point about powering a block *beneath* the bridge. What's happening now is that the redstone powers the block to the right of it. That block is beneath the bridge when it is open, so it closes, but when the bridge is closed the block is no longer underneath the bridge, so it doesn't open again. It doesn't matter that the redstone is still underneath the bridge, what counts is whether the redstone is powering a block which is beneath the bridge. (For the purposes of this plugin you can power a block by running redstone on any side of it, or beneath it.)

    If you make the bridge one block longer, or move the redstone and the blocks to the right of the redstone one block to the left, it will work.

    That's what I meant with "you're not powering the bridge itself, you're powering a block beneath the bridge". Sorry if that was not clear!
  20. Offline


    oh i see. I thought by having the redstone underneath the bridge it was fine. Thanks for your help
  21. Offline


    I found a bug! (it seems to be the first one ^^)
    Your plugin is great, but there still seems to be an issue : I have a retractable bridge that open automatically at dawn (with a lightsensor sxitch, another plugin) over a moat, which is not very deep. The point is, when it started unfolding, it hit a creeper and a zombie on it's way. AND at the same time I was the only player left and disconnected. so here's the log :
    And then I had to restart the server, it was giving me a timeout in localhost... The bridge was still working after that.
    By the way, I'm on build 612
    Thanks again for your plugin, hope you can fix this!
  22. Offline

    Captain Chaos

    I think I know what's causing this. The bridge was still moving, but the world it was in is unloaded, causing the exception. I don't think it had anything to do with the creeper or the zombie, but with the fact that you disconnected.

    It should be easy to reproduce. Just start the bridge moving and then log out (if you're the last player).

    I released a new version of the plugin, version 1.3.1, in which this is hopefully fixed. Would you like to test it? It requires Bukkit build 626 or newer though, it will crash on earlier versions due to a bug in CraftBukkit. You can download version 1.3.1 of the plugin here.
  23. Offline


    Make a vid tutorial. I have been at this for... 4 hours and IT IS F***ING P***ING ME OFF SO BAD!

    Oh Yes! I have figured it out, making a video for you right now kK?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 13, 2016
  24. Offline


    Yeah plz a video for a simple bridge.
  25. Offline


    Love this and your PorteCoulissante plug-ins:

    After playing around with using it as a water shut-off valve, I even found a fun way to detect if the water's on I thought I'd share (as well as an example of a working water shut-off and how versatile this plug-in is.)

    Water off, 2nd circuit active saying "no water here"
    Throw the lever, and the drawbridge slides to the right, no longer cutting off the water flow.
    With the water on, the boat lifts, and the pressure plate deactivates:

    Now to find a use for this other then a very delayed NOT gate. =)

    Retractable drawbridges themselves are pretty darn cool, but the added ability to control water flow with these two plug-ins adds a lot of possibilities.

    (Edit: oops, images were bigger then i intended, downsized them a bit)
    Captain Chaos likes this.
  26. Offline


    AWESOME :)
    thats actually the only reason why i needed craftbook(well it served a few other things too but..) this is just awesome!
    I like to use this to hide my chests.(yes i know there is LWC, but just for security xD)
    this suits 100% my needs haha

    thanks a lot for this mister Chaos
  27. Offline

    Captain Chaos

    I'm glad you finally figured it out! Sorry the instructions aren't clear enough. Did you end up making that video?
  28. Offline


    Need to make one too as soon I get home
  29. I would really like to see this get a config file, as it prevents me from using different half-stone blocks with the bridge, you could do it with the version before, but now all half or double-stones move.
    Preferably a config where it only moves the block of the type you specify in it (for example 43:2 would be wooden double-slabs)
  30. Offline

    Captain Chaos

    I'm not sure what you mean. You could never mix different types of material in one bridge. And if you're using one type of half-blocks to make the bridge, you can use different types of half-blocks around the bridge and they won't move.
  31. Offline


    Would it be possible to make an option so that the bridge extends out - not moves out?

    Meaning it would gain in length, not stay the same. I would also love this option for PorteCoulissante :)
Thread Status:
Not open for further replies.

Share This Page