PorteCoulissante
Build redstone powered portcullises, without using commands!
Features:
- 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.
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 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:
Tutorial:
Check out this tutorial created by the folks of UK Gaming Troops:
Hints and tips:
- It is possible to create diagonal portcullises! You do it be having a series of small, two block wide portcullises next to each other in a staggered fashion. You have to be careful with the redstone layout though. See the DiagonalPortcullises page for details. There are also two examples on the mc.pepsoft.org Minecraft server.
- 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.
Configuration:
The plugin is configurable via a configuration file. See the Configuration page for details. Aspects you can configure include: the hoisting and dropping speed; which materials the portcullis can be made from; which materials are allowed as power blocks (the frame blocks through which the redstone power is delivered to the portcullis; by default they can be any type), whether "floating" portcullises are allowed and various aspects of the sound effects.
Known problems:
- If a chunk containing a moving portcullis is unloaded by the server (because you log out, or leave the area, or teleport away), the portcullis stops moving. When you come back, it may be half way up. Just power cycle it to raise or lower it fully again. If it stopped while not being adjacent to any redstone powered block, you may have to stick a button or lever on the side temporarily to get it to move. (I recommend to build it in such a way that the portcullis is always adjacent to a redstone powered block; the same one, or different ones.)
Source code:
The source code for this plugin is hosted on sourceforge.net. See the Source Code page for details.
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! ;)
Hello,
I am having a problem with PorteCoulissante. I've downloaded the latest release for MC 1.1 R6, but the plugin doesn't seem to be working. I am playing on Minecraft 1.2, and everything was fine prior to this Minecraft update. What is wrong?
@xorvious
Thanks for the encouragement! Rest assured, I have no plans to abandon these plugins and fully intend to keep supporting them for as long as Minecraft exists.
(This is for everyone:) If you want to show your support and appreciation in a more concrete way, don't forget the Donate button at the top right of each plugin's page!
Hi, just wanted to say I would love to see you continue to support this mod in the future! I would hate to lose all the fun things on my server that we have built with both this and RetractableBridge. Thanks for your time!
Legacy downloads removed
Please note: I have removed the legacy download locations for PorteCoulissante and RetractableBridge! They are now only accessible through BukkitDev. This means that any auto updaters you may have been using which don't access BukkitDev directly, such as CraftBukkitUpToDate, will no longer work.
oh, could you make it work with nether fence ? thx :)
@moose517
the old method is gonna be deprecated in 1.1R5, indeed.
@captain_chaos
do you plan to maintain this plugin ? it is honnestly amazing, as it add a fancy option to city gate ... it would be a shame to not be able to move those porticulis :)
thx :)
@Captain_Chaos, the new event system is much quicker than the old one for starters. the old method will be deprecated, don't know when yet but i would rather see plugins being updated now than after its too late and it no longer works :(. These 2 plugins of yours are absolutely loved on my server and it would be a real shame if they stopped working( i mean i could always update it myself but would rather let the dev do it for everybody!)
@link38110
Thanks, I'm glad you like it. Take a look at RetractableBridge, my other Bukkit plugin. And as long as I'm plugging my stuff, I might as well mention WorldPainter. :)
yea it is :P but i can get use to this :D
Nevermind, I got it to work!!!!!! Thank you!!!! :D and i love this plugin man!!! i will totally spread the word about this :3
@link38110
Nobody said anything about extracting! You place the .jar file you downloaded, unextracted, in the plugins folder. I'm guessing this is the first Bukkit plugin you're installing? ;)
@Captain_Chaos
Ok I extracted the files to the plugins folder. So I got 2 files and they are called META-INF and org. Ok now on the bottom where all the JAR files are the portcullis one gave me a YML file called plugin, and im just wondering if that's suppose to happen? and when I open up the server.log it's just a blank notepad. sorry if im making this complicated O.o haha I just really want this plugin, its soooo coool!
@link38110
Just place it in the plugins folder, that's all that is required to install the plugin. You can check the server.log to see if it's being loaded. If it is but you still can't get it work, check whether you are building the portcullis correctly. Build exactly what you see in the picture above (pay special attention to where the redstone wire goes) and it should work.
ELLO!
I would love to get this plugin, but when I try to install it, it's not working, I don't know what I'm doing wrong, so can you tell me the steps to installing this awesome plugin?!?! O.o
@plumblum
Hey, thanks for finding that out! I guess Electricraft is mistaking the portcullis frame for a light post. I don't know why that should hang the server though. Have you tried running with just Electricraft to see if the server hangs then when you try to raise the portcullis (which obviously won't work when PorteCoulissante is not loaded, but should still trigger Electricraft)?
If so then the bug is definitely in Electricraft and the shape of the portcullis is confusing it. If not then the problem is some kind of interaction between Electricraft and PorteCoulissante.
I didn't know about Electricraft yet, by the way. Looks like a nice plugin that goes well with mine.
@Captain_Chaos
Got it!
it actually didnt take that many restarts :) this is the plugin interfering: http:dev.bukkit.org/server-mods/electricraft/ and i also figured out why :)
this is why: http:dev.bukkit.org/server-mods/electricraft/pages/main/structures/light-post/
but since i dont care much for the light-post i disabled it in the config and tried again, now both plugins works flawlessly. not sure if this helps in any way :P but it sure helped me!
p.s let me know if you want an invite to my server, i noticed the last line now ^^
@Captain_Chaos Yeah i was thinking of that :) ive got a few guesses of wich plugins are interfering.
ill report back later :)
@plumblum
OK, thanks for the feedback. I'm glad to hear the plugins work on their own, although of course that doesn't help you. I'm afraid I have too little experience with other plugins to be able to tell which one from that list could be triggering this problem. It's especially strange that RetractableBridge isn't affected, since it is virtually identical in its inner workings as PorteCoulissante.
Hopefully you will have time soon to search for it. You could save time by doing a binary search. I.e., you don't enable or disable a single mod at a time, but half of them. If it works, you enable half of the rest, if it doesn't work, you disable half of the ones you enabled, etc. That way you have to restart the server or reload the plugins a lot less often to find the culprit.
@Captain_Chaos
sorry for the delay its been a busy week :)
Yes the plugin works like a charm when used alone. i just cant figure out what plugin could cause the server freeze, i'm also using the other one you made (retractable bridge) and that one works flawlessly. and no the console dosnt give me any errors, and neither does the log files.
and the server instant hangs just as i flip the switch to lower/raise the gate, the gate im testing on was made a couple of bukkit versions ago, but that should not change anything ?
i currently dont have time to pinpoint the plugin thats causing the problem, maybe i will have enough time during the weekend :)
anyway heres a pastie of the plugins in use: pastie.org/3301157
@plumblum
As far as I know, yes! The fences are always connected to a block around it, since the portcullis is always contained in a frame. The connecting planks to surrounding blocks are just cosmetic, it doesn't prevent the block from being changed or removed at all.
So you're saying your server hangs as soon as you try to raise a portcullis? Are there any errors logged in the server.log file? Can you try running with just the PorteCoulissante mod, to check whether another plugin might be causing the probelm?