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! ;)
@deathwing911
use item id 35 (wool)
@Captain_Chaos
aah i see , thanks for the tip,no i was just adding them manualy.
And the "wool" dosent seems to work : /
@deathwing911
I assume you're talking about adding additional block types to config.yml? Why not just add wool, do you really need to restrict it to just one colour of wool?
hi ,just starting using this and was wondering if you can add the wool color such as 35:14 etc it seems it cant handle the : character. thanks
There have been some additions to the demo server (mc.pepsoft.org) recently:
@LordValgor
What I said amounts to a NOR gate, so I think we mean the same thing, but just to be sure I made a picture of what I mean. In this picture the master hub is forcing the gate closed:
Edit: image display seems very unreliable on this wiki, unfortunately. For me at least, the image is not displaying properly (much too large and only the left part), but you can right-click on it and choose "view image" or your browser's equivalent to view all of it.
@Captain_Chaos
I think I understand what you are saying, but I still don't think that that would allow the master switch to override the lever.. However if I set up a Nor Gate... Ok well I guess that solves it lol. Thanks!
@LordValgor
I see what you're saying, but I still don't think reverse polarity would make much difference. Such a network would require at the very least repeaters and probably a lot more complex redstone circuitry anyway. Adding a few inverters (or even one inverter) near the gate wouldn't make much difference. You could combine the signal from the lever with that from your master hub before the inverter. That would allow you to force the gates closed instead of open, and it would make the lever function more logically (lever up = gate up, lever down = gate down).
@Captain_Chaos
Ya I thought of that, but lets say I want to set up a redstone gate network for my city. If I have a master hub I would rather it override to close the gates rather than override them to open. The way it is now, if I had a switch at the gate and one at a master controller (hub), the master controller could not force the gate to close if the switch by the gate were on.
Make any sense?
@LordValgor
I'm glad you like it!
I don't think it's necessary to make the polarity of the gates configurable, when it's trivial to just invert the redstone signal you're using the power them.
This plugin is awesome! Thanks a ton.
Also, I have one feature suggestion. If you could add a config (or even just a command) that allows the gates to be powered oppositely (so off makes them go up and on makes them go down) that would be even more awesome!
Anyways, let me know if that even seems like a good idea :P
@ottokas
It works fine on the latest version of Bukkit. Always try it out, usually it will work fine.
Hey love your plugin. Have been searching for one like this forever but could you update it. To the latest version of bukkit.
I created a demo server where you can see the PorteCoulissante and RetractableBridge plugins in action! It's at mc.pepsoft.org. Check the top of the page under "Demo" for details.
@Captain_Chaos
Thank you! You saved me from insanity. I was having such an issue with it. My friend and I spend hours trying to get it to work. I got a working model last night but once up only parts of the bridge would come back down and just end up broken when you try raise it again. We discovered that the gate just acts as separate pieces like you explained!
I thank you for your tutorial! Now I can continue building my diagonal bridge with diagonal gates! =) I will post back my results and a picture!
@tgbigboss
It can be done (I've seen it working), but you have to be very careful. A diagonal gate essentially consists of a staggered series of separate, two block wide gates, each of which has to receive its own redstone signal to raise and lower.
What usually causes trouble is that the redstone signal for some of the gates interferes with other gates. You have to be very careful with your redstone layout. Remember that a block next to the gate has to receive redstone power, and that that power has to come from the side.
No other redstone should be touching any block to either side of the gate, from any direction, or it will confuse the situation! In practice this means it is necessary to have the power come from alternating sides of the gate.
It's hard to explain, so I will try to come up with a picture to clarify the situation.
Edit: I created a wiki page which explains how to do this: DiagonalPortcullises
I love this mod! Has anyone figured out how to do the gates diagonally? i got some of it to work but always one post doesn't raise up. i saw a post with pics of it but idk if they ever resolved the same issue i was having.
@sabretoooth
It really does work. Make sure the plugin is actually being loaded. And check my answer to SkylaWinsong below for some pointers to common mistakes and things to check.
I'm having trouble getting it to work in 1.2.5 I've used it before in 1.1 but I seem to be doing something wrong. Providing power to an adjacent block does not power the portcullis
Thanks Captain Chaos,
You pointed me in the right direction. Everything works great now that I figured out where my error was. What wasn't shown was the redstone that went up to the third block on the gate side to power it up and down. which works perfectly. Since my wall was 3 wide, I placed a button on the exterior and interior and in the middle location ran the redstone down to my circuit.. the problem is the redstone touched the bottom side of the gate and thus caused to powered inputs and as you said, multiple connections confused it. When I moved the button one block away from the gate it worked as I expected. Push button it goes up and then comes down after a few seconds.
Again great plug in and excellent job. Keep up the great work.