Inactive [MECH] PorteCoulissante - Easy and realistic portcullises

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

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

    Captain Chaos

    PorteCoulissante moved to BukkitDev!

    PorteCoulissante 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.

    PorteCoulissante - The easy and realistic portcullis plugin:

    Build redstone powered portcullises, without using commands! This is my first ever Minecraft plugin, so please be gentle! I needed a project for my first plugin, and I've always wanted a working portcullis in my town gate, so I decided to write this. I subsequently discovered that there already is a portcullis plugin (which is why I named mine after the French word that the word portcullis was derived from), but I think mine has enough distinguishing features to be useful.

    Download the latest release from the BukkitDev page.

    Also check out the new sister plugin, RetractableBridge, which does basically the same thing, only horizontally.

    • It doesn't use commands. Just build the portcullis 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 portcullis does not disappear, but moves up and down just like a real one would.
    • Build the portcullis itself by stacking rows of fences (wood or iron), at least two wide and two high.
    • Build the wall around it to contain it. Leave enough empty space above the portcullis to allow it to go as high as you want it to go.
    • Power the portcullis by powering one of the blocks adjacent to it on either side, by attaching a lever or redstone dust. For now, the power has to come from the side.
    • The result should look something like this:
    • When the block is powered, the portcullis will start moving upwards, and will keep going until it hits something and can't go any further. It moves slowly, since a portcullis is heavy!
    • Important: make sure that when it is in the up position, it is still in contact with a powered block (the same one, or a different one).
    • When the power goes off, the portcullis will drop down (a lot faster than it went up).
    • Decorate the gate by building walls in front of and behind the portcullis to cover the empty space and to make it appear the portcullis is moving in a groove. Of course you can make it look any way you want! Here is an example:

    Hints and tips:
    • The portcullis can be any size you want, as long as it is at least two blocks wide and two blocks high. It must be rectangular though, and have no holes. If the portcullis breaks, it won't move any more until you repair it.
    • Try to make the empty space above the portcullis one block less high than the portcullis itself (like in the first picture above). That way, you only need to power one block (the one in the middle on either side), since that block will always be in contact with the portcullis.
    • Of course the empty space can be even smaller, if you want. The portcullis only has to go up two blocks to let people through, or three if you want the passage to be a little less claustrophobic.
    • The portcullis will go through (and hold back) water and lava, so you can make water gates and water or lava traps with them.
    More information:

    For download links, source code, configuration information and change logs, please see the BukkitDev page:
  2. Offline

    Captain Chaos

    Are you sure that when you turn the redstone off, the portcullis doesn't also get a signal from some other bit redstone coming on? For instance, from a redstone torch from an inverter or for vertical signal transmission?

    If you build the gate from the first picture in my post, exactly as pictured, does it work?
    Of course, in real life, it might not be the best idea to have a button with which an enemy outside your gates can raise the portcullis... ;)
  3. Offline


    Wow, you just gave me an idea. By combining this, lwc and the chest trap plugin I could make a portcullis that would require a password to enter!
  4. Offline


    Don't let the circuit diagram scare you, it really is quite simple if you do it one step at a time. And one nice thing about diagrams is that they don't need to be translated! If you want to watch one being built and see what it looks like check out this video tutorial.

    @captain Chaos: Excellent point! I'd add a "LOCK" lever on the inside! :)
  5. Offline

    Captain Chaos

    No, I know what you mean. It definitely makes sense and I could have made it like that. It's just that the way Bukkit works that would have been more complicated to build, and have worse performance, so I made it like it works now instead. I think it's close enough to what you'd expect to be useful. :)
  6. Offline


    Except for the whole to infinity and beyond bit :x
  7. Offline

    Captain Chaos

    Well sure, but that's a bug in Bukkit, so that would probably still have happened, regardless of how I implemented the redstone logic...
  8. Offline


    Is that the version for 2triggers/switches and one target?
    I need this for version
  9. Offline


    The only issue I have is Water seems to prevent it from going down. Is there anyway to make it still go completely down to the the ground with Water below it instead of stopping directly above the Water level?
  10. Offline


    hehe... that was one of the first things I tested. Trying to make a water gate, eh? Yeah, it stops when it collides with a non-air block. Sure would be great if it'd go thru water & lava. Should still hold back minecarts and boats... I haven't tested it.. but it should!

    mmm.. no. That video only shows the circuit with a single button. But adding a second button is really, really easy. Just make the circuit exactly like the diagram / video tutorial. Confirm that it works. Then add the second button just 2 blocks away from the 1st and connect it to the SAME line of redstone as the 1st button. If it works, move it to its permanent location. If you cannot get it to work, send me a message. No need to clutter this thread with redstone stuff.
  11. Offline

    Captain Chaos

    Yeah, I have thought about that already. I will probably make it so that the gate will go through water. And lava. ;)

    By the way, thanks for helping out with the redstone stuff!
  12. Offline


    I've created this T-Flip-Flop with two triggers, but I wouldn't work.
    When I press the Trigger(Button), the redstone-wire before my Gate is glowing, but the Gate wouldn't open.
    When I press the Trigger(Button) again, the restone-wire isn't glowing anymore, but the Gate wouldn't open... again.
    I've built in Redstone-Repeaters (the room with the T-Flip-Flop is far away)

    EDIT: Server-Restart = now it's working :D
  13. Offline


    This may be nigh-on impossible, but any chance you can make the gate any shape other than square? I tried to make one that went into the ground on the edges and it automatically squared the gate. Not a huge deal, I've been enjoying it , but it doens't hurt to ask!
  14. Offline

    Captain Chaos

    Perhaps some day. But in the mean time I actually plan to make the portcullis work only when it's rectangular and intact, so that when a creeper blows a hole in it you can't repair it by just raising and lowering it... ;)
  15. Offline


    I would like to add a request. Portcullis are REALLY AWESOME! So first of all thanks for that :).

    But i found out that when you make it so that water starts flowing through the opening below the fence it cant be lowered again.

    Could you make it so that it stil lowers the fence in such a case? That would make for awesome floodgates :).
  16. Offline


    I've compiled CraftBukkit with your modification from the bug report and it solved the problem. Let's hope it will be included in the official build soon.
  17. Offline


    You should add some sort of config that lets us change the speed that the gate opens/closes. Its a bit too slow for me atm.
  18. Offline

    Captain Chaos

    I think it should open slowly. It's big and heavy after all. But I am thinking about having it start moving a little more quickly, so it doesn't seem as slow.
    I released a new version of the plugin (version 1.1.0), with the following changes:
    • Portcullises are now checked for integrity. That is, they must be rectangular, and have no holes or bits sticking out, otherwise they won't move!
    • The portcullis will now go through water and lava.
    • It starts moving a little more quickly (the speed once it's moving is unchanged).
    Check it out, and let me know what you think.

    Also, the bug in Bukkit that causes the sticking gates is fixed in development build 552. That's not a recommended build yet though, so you might want to wait until the next recommended build comes out (I will also change the build number in the thread title then).
  19. Offline


    This is huge. Not just because having a portcullis in-game is really really cool, but now you've just made sluicegates and the ability to redstone control fluids in a logical manner. Huge. Major props to you.

    Thanks for the update. I've been running Raphfrk's patched build. Now I can go mainstream again. [​IMG]
  20. Offline

    Captain Chaos

    Thank you. :)

    I can't take all the credit though, there was already a portcullis plugin in existence. I assume it holds back water and lava too.
  21. Offline


    Granted, but if we're thinking of the same plugin... that one unrealistically 'disappears'. I like this because it is actually plausible / workable in the game world and it is much easier to use, being able to build it like any other Minecraft structure without special console commands.
  22. Offline

    Captain Chaos

    By the way everyone, leave me a message if you're using my plugin. I'd really like to know. And if you've built something cool with it, maybe invite me to your server so I can have a look? Thanks!
  23. Offline


    lol "Porte coulissante" it's in french, my main language lol, Tu t'es pas ennuyé mon coco pour trouver le nom ^^.
  24. For some reason my portcullises have stopped working and the only thing that fixes them again is a server restart.
    Usually you can trigger them once after the restart, whereafter they wont work anymore.

    The odd thing is though that i get zero errors, none, so i have no idea what is causing it, as it was working perfectly fine a few days ago, and no changes was made to the server since then
  25. Offline


    Are they stuck in the up position? Which cb are you using? There was a very important patch integrated in [552]
  26. I'm using the recommended build, 531, as some of the more important plugins i run seem to break at 552.
    They get stuck in any position, i can only toggle them once after a restart, so it can be both
  27. Offline

    Captain Chaos

    Was this after installing version 1.1.0 of my plugin? Or did literally nothing change at all? I have never been able to reproduce sticking gates myself (without leaving the area or teleporting away, etc.) unfortunately.
  28. i updated to 1.1.0 after the bug first started happening, but updating didn't fix it sadly, which is why i decided to post about it, since it's so odd.
  29. Offline

    Captain Chaos

    Is anyone else seeing this? Greylocke, everything still working correctly on your server?

    Graloth, would it be possible for me to take a look on your server to see the problem first hand?
  30. Offline


    This is easily one of the best plugins I use, however, I'd love to see you use "Craftbukkituptodate" as that makes updating easier, and keeping the same jar name.

    That's awesome :D
  31. Offline


    I second that entire comment! Awesome plugin especially after updating to the latest craftbukkit to fix the problems. I would also like request compatibility with CraftBukkitUpToDate please.

    Show Spoiler
    My Plugin didn't supported, how i get it to work with CButD?
    Give me a permanent link to your Plugin, i will add it. That's all no changes at your SourceCode or something else, all I need is a permanent link to the newest version of your Plugin. A good place for this is or for OpenSource
Thread Status:
Not open for further replies.

Share This Page