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! ;)
This may have been asked before but is there a single-player version of this anywhere?
@FalseR3mix
Correct, that is the latest version. But if you're getting the error you're reporting then you're not running that version. Could it be that there is more than one version of the plugin in the plugins directory, or something like that? Can you quote me the section of the server.log file where it logs the plugin version?
But where do I get the latest version?? I downloaded this version: http://dev.bukkit.org/server-mods/portecoulissante/files/9-v1-4-1/ ?? That is the latest version you have posted.
New plugin!
I just created a new plugin, which may interest people here. It is called BlockySmoke, and it allows you to make, well, blocky smoke... Specifically, smoke made from cobweb blocks, which actually moves and billows.
(Note that the "chimneys" can be made from any material; they just happen to be brick in this screenshot.)
The plugin is command based, and as you can see it is highly configurable, allowing for small puffs to huge clouds of smoke and thin tendrils to thick, dense plumes. You can use other block types, constrain the wind direction, etc. For more information, see the plugin page: http://dev.bukkit.org/server-mods/blockysmoke/. For a demonstration, visit my demo server in Minecraft: mc.pepsoft.org.
GOOD +1
@FalseR3mix
Even though you're 100% sure, I'm afraid this really does mean that you're running an old (pre-1.4) version. Double-check the "[PorteCoulissante] Enabling PorteCoulissante" line in the server.log file. The version should be 1.4.1.
I run a server and have had portecoulissante for about 8-12 months now. I have waited for an update until now because it is just annoying. I am 100% sure that I have the latest version. I just don't know what is wrong. If you want to check it out I am posting the IP and the error:
IP: 98.201.128.20:25568
ERROR: 2013-02-23 08:13:19 [SEVERE] [PorteCoulissante] Exception thrown while handling redstone event! java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/inventory/CraftItemStack
at org.pepsoft.bukkit.portcullis.PortcullisBlockListener.dropPortcullis(PortcullisBlockListener.java:267) at org.pepsoft.bukkit.portcullis.PortcullisBlockListener.onBlockRedstoneChange(PortcullisBlockListener.java:106) at sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:114) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:170) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:170) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:170) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:170) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:170) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:170) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.a(BlockRedstoneWire.java:170) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.l(BlockRedstoneWire.java:45) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:291) at net.minecraft.server.v1_4_R1.World.m(World.java:483) at net.minecraft.server.v1_4_R1.World.applyPhysics(World.java:459) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.l(BlockRedstoneWire.java:53) at net.minecraft.server.v1_4_R1.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:291) at net.minecraft.server.v1_4_R1.World.m(World.java:483) at net.minecraft.server.v1_4_R1.World.applyPhysics(World.java:457) at net.minecraft.server.v1_4_R1.BlockLever.interact(BlockLever.java:200) at net.minecraft.server.v1_4_R1.PlayerInteractManager.interact(PlayerInteractManager.java:385) at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:657) at net.minecraft.server.v1_4_R1.Packet15Place.handle(SourceFile:58) at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290) at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113) at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39) at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598) at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224) at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.ClassNotFoundException: org.bukkit.craftbukkit.inventory.CraftItemStack
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:70) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 38 more
@GrandRiver
You're at least the third person to report that problem, so I'm inclined to think there's really something going on. Unfortunately I can't reproduce it, and the others never got back to me. I just tried again with CraftBukkit 1.4.7-R1.0 and PorteCoulissante 1.4.1 (you have updated to the latest version, right?), and my portcullises work when powered from all directions.
I would like to observe the problem in person. Can you reproduce it with some bare bones, simple examples and give me a server address and location where I can see them?
Edit: never mind. One of your colleagues showed me the problem and it turned out the plugin wasn't the latest version. It's working again now!
There seems to be some sort of directional bug caused with changes to CraftBukkit for 1.4.7. I held off mentioning it until the RB was released and now that it has the bug persists. It seems (from our observations anyway) that gates can only be powered from the north or west not east or south. Previously working gates in these cases have stopped working and needed to be rewired.
@Andarne
I tried it myself, and I still get the sounds. I have the SpoutCraft client set to "Latest Stable". Are you still having trouble with the sounds? If so, do sounds from other plugins still work?
@RavenWT
R0.2 hasn't been released yet. I only officially support beta builds (it used to be recommended builds, but those are too rare now). When 1.4.7 R0.2 officially comes out as a beta, let me know if it still doesn't work.
Hi!
I'm running 1.4.7 RO-02 and it doesn't work anymore... :(
Will you update soon? thx :)
@Andarne
That's strange. The plugin reports in the log file when the server starts whether it has enabled sound. What does it say?
Hey there Captain_Chaos!
The plugin's been working faithfully for some time on my server, yet recently the sound has stopped working completely.
Both I, and my two admins, are using Spout - we heard the sound before, and then it stopped!
@Dale_Doe @Ruphies
Well I tested it just to make sure and I can't reproduce this. Here's a picture of portcullises being powered from every cardinal direction, and they all work:
This is on CraftBukkit 1.4.6-R0.3. If you are sure you are building the portcullises correctly, and that another plugin isn't causing the problem (by running the server with only my plugins installed and seeing if it works then), I'm willing to come take a look on your server.
@Ruphies
To fully test it, I made four gates. 2 East/West and 2 North/South.
When the Lever was on the North side and East side of their respective gates(yes, opposite the, in this case, iron bars) It would work. When it was on the South and West sides of their respective gates, they would not work.
So it seems that it's the direction the redstone current comes from that matters.
I copied rotated and pasted a couple gates. Could it be a plugin conflict??? I can send you my list if you want but this plugin doesnt seem like it should conflict with anything.
@Dale_Doe
Thanks for the heads up. I'll look into it. You're supposed to be able to build a portcullis in any direction so if this is true it's definitely a bug, although it seems unlikely that I could have missed such a severe bug.
Are you sure you're testing it right? Remember that although you can build a portcullis in any direction, the redstone always has to be to the side of the powerblock relative to the portcullis (not in front or behind). In other words the redstone that powers the portcullis has to be on the opposite side of the frame as the fence blocks.
@ikimberly
No, the fences attaching to the sides of blocks is a purely visual effect done by the client. Bukkit blugins have no control over it. So there will be no change with that.
@Ruphies
Correction: It only works if POWERED from the north or east side. My original assumption was correct in that the South/West rule applies.