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! ;)
It work great with 1.4 beta build, if you add 139 in portcullisMaterials you'll be able to use cobblestone walls and mossystone walls too (but we can't mix the two in one portcullis :/)
@Kiewwie
There is no official 1.4 release of Bukkit yet.
However, as far as I can tell both plugins work fine on the latest beta. Have you tried it? Usually the plugins work fine on new releases of Bukkit, it's always best to try it out before asking.
update for 1.4?
Just wanted to say 'thank you' for keeping this one up to date. Been using it since it was released about a year ago.
@RonanB
It works fine on 1.3.2-R1.0, as far as I can tell. You also posted on the RetractableBridge page, so let's continue the discussion there. What goes for RetractableBridge likely also goes for PorteCoulissante.
Doesn't work with bukkit v1.3.2-R1.0 #2377 please update... :)
@Captain_Chaos Remember us from Lord of the Craft about 4 months ago? Well, I sent you a PM wih an infersting proposition for you.
@tobast
I built one too, it's so awesome :D
Hey, I've noticed a possibility of PorteCoulissante (that may or may not be altered by the option to disable "floating" portcullises, I didn't tried it). It's quite easy to build an elevator this way! I used four portcullises of 4 long by 2 high, it works perfectly even if it is a bit long!
I just released version 1.3 of PorteCoulissante, 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.@CraveMode
I've been looking into Redstone2 support, and unfortunately it looks like that would be hard. I thought it was a Bukkit mod, but it's not, making it much more complicated to interface with it. Since demand is not very high for this, and there is a workaround (although I admit not a very satisfactory one: make the last block, the one touching the PorteCoulissante power block, a normal redstone wire block. This does mean you can't use it to wire the entire side of the portcullis), I'm going to let it rest for now. Hopefully Redstone2 will be ported to Bukkit, which would make it much easier to support (it might even happen automatically).
@CraveMode
In principle PorteCoulissante doesn't care where the redstone power comes from, it just reacts to redstone power change events it receives from CraftBukkit. At first glance it would therefore seem that RedPower2 is not firing the right events, otherwise it would just work. You might take it up with the author of RedPower2 as well. But I'll look into it as well, perhaps supporting RedPower2 is easy to do. I can't promise anything though.
Hello Chaptain, I run a server with Tekkit and Bukkit. We have been a fan of your gate and bridge mod since you first released it in our medieval builds. Now, with Tekkit, it adds RedPower2 mod which introduces alloy wiring that pretty much replaces redstone, and I have not had to use regular redstone for anything except this mod. I can not get it to trigger the gate when I run redpower2 or any of the mod's blocks.
I really want to use RP2's alloy red wire because I can run it up along the entire facing so it will always receive power from every block (or not), and I can use bundled cables to control several gates from one input.
Would it be possible to code it to accept the redstone power from alloy wiring?
To all Minecraft server admins and world operators:
This is to announce a new Bukkit plugin that I have created which may interest you. It has nothing to do with PorteCoulissante, I just want to plug it here once since many of you might be interested in it. It is called BukkitScript, and it allows you to run JavaScript scripts on the server, binding them to in-game events or commands and allowing you to influence the world and the players in it in various ways.
The idea is to be able to implement complex game mechanics without having to write an entire custom plugin for it or having to build complex redstone contraptions (if what you want is even possible with redstone). It is not meant for use by regular players, this is a plugin for the admins or operators to customise the gameplay of their worlds.
I am using it myself to reset the mc.pepsoft.org server (the demo Minecraft server for the PorteCoulissante and RetractableBridge Bukkit plugins) after the last player logs out, so that it is fresh and correctly configured (all gates closed, all doors, fence gates and trap doors closed, chests stocked, etc.) when someone logs in again. This is the kind of thing I envision people using it for, but of course you can be as creative as you want.
The kind of events you can currently bind scripts to are some particular time of day, a player interacting with a block, a command, the world becoming idle (the last player logging out), etc. The script can detect the presence or absence of redstone power, whether a block is present at some location, the contents of player inventories or chests, whether levers are on or off, etc., and actions it can perform include throwing switches and pushing buttons, opening or closing doors, fence gates and trap doors, editing inventories, sending messages, etc., both for individual blocks or players and for all blocks of a certain type in an area, or all players.
It is still in alpha stage; i plan to expand it with more events, properties and actions based on user feedback. If you are interested, take a look at the plugin at http://dev.bukkit.org/server-mods/bukkitscript/. If you think it would be useful to you if only it had some event, property or action that it is currently missing, post it in the forum on that page (with a short motivation).
We now return you to your regular scheduled programming...
Thanks!! You made one of my inhabitants a very happy young man. :D Watching rogue gates disappear into the blue yonder was also quite entertaining. LOL
@Captain_Chaos
Alright i understand thanks anyway
@deathwing911
That is correct, the portcullis has to be entirely the same material (including colour). That is not likely to change, because it is a performance measure. You see the plugin does not move every block of the portcullis every time, it just adds a row on top and removes a row below, or the other way around. This keeps the number of block updates to a minimum, but obviously it only works if the portcullis is made of the same blocks throughout.
Moving every block would generate far more lag, especially for large portcullises, so I don't think I will be adding support for that, sorry.
@Captain_Chaos
this is what i mean good sir.
http://i.imgur.com/HOOUc.jpg dosent works
http://i.imgur.com/AUOJg.jpg Works
i need a mix of the 2 and it dosent seems to react when its a mix of color. On dirait qu' une mixture de couleur ne fonctionne pas
Config: portcullisMaterials: [85, 35]
@deathwing911
I just tried it and it works fine:
If white wool works, any other wool works too. If it doesn't, something else is wrong.
@fjutte
i found out that only putting "35" dosent work at all it just lift the white which is 35 the black dosent lift.