FenceLamps
This plugin changes fences into wires, that can apply current from redstone circuit into your lamp!
Why?
They are many questions / requests about making street lamps that can be turned on/off from redstone circuit.
How it works?
Just like on a picture:
Basic usage
Create a fence pilar (lower or equal to 5 blocks), put redstone lamp over it. Apply the power from the bottom, via powered block or directly - and viola, you've got a working street lamp!
For v0.2x please use Glass block instead of redstone lamp. Plugin will keep old config on updating to >= 0.30, so you will need to edit it by hand, or delete to allow recreate with new defaults.
Advanced usage
You can customize lamp ON and OFF blocks, how far is current transfered and type of fence used, by config.yml:
#maximum vertical current length MAX_V: 5 #0 - normal fence; 1 - netherbrick fence FENCE_TYPE: 0 LAMP_ON: 125 LAMP_OFF: 124 #try to change this if you have problems LAMP_DATA: 12
Example with glass & glowstone:
Commands and permissions
/fencelamps reload - fencelamps.reload - allows to reload config file from game
More info
This is my very first bukkit plugin and java program too. Was tested on two servers and it's working ok, but I'm afraid that code is not perfect - and i'm open to any suggestions about how can I improve it. Source is available on my GitHub: https://github.com/kitor/FenceLamps
Support & Thanks
We also invite all Polish-speaking user to our server: http://mc.dlk.pl. And here I want to thank kolorafa for his support when I started changing idea of this plugin into working code.
I like this plugin, but I wish the fences would also transmit power horizontally into any block that the fence links to (such as solid blocks or other fences of the same type).
Some updates?
@poiNt3D
This is planned feature ,as well as make those "pipes" work like real redstone (so current decreasing with length, instead of fixed length in config file)
@Unterbilker
java.lang.UnsupportedClassVersionError: pl/kitor/FenceLamps/FenceLamps : Unsupported major.minor version 51.0
Upgrade Java to 1.7. This plugin won't work on 1.6.
Is it possible to make fence act like redstone and transmit power up and down?
@_kitor
2013-04-16 15:56:55 [INFO] This server is running CraftBukkit version git-Bukkit-1.5.1-R0.1-21-g49b0699-b2754jnks (MC: 1.5.1) (Implementing API version 1.5.1-R0.2) 2013-04-16 15:56:56 [SEVERE] Could not load 'plugins/FenceLamps_v0.30a.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: pl/kitor/FenceLamps/FenceLamps : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_5_R2.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_5_R2.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R2.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R2.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:381) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.UnsupportedClassVersionError: pl/kitor/FenceLamps/FenceLamps : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:634) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:277) at java.net.URLClassLoader.access$000(URLClassLoader.java:73) at java.net.URLClassLoader$1.run(URLClassLoader.java:212) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:264) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
@Unterbilker
Which version of FL do you use? Just checked on 1.5.1-R0.2 and
[INFO] [FenceLamps] Loading FenceLamps v0.3
[SEVERE] Could not load 'plugins/FenceLamps.jar' in folder 'plugins'
Craftbukkit Version 1.5.1-R0.1
With current 1.5 dev build everything's working still fine.
@hammerdruid
How exactly they steal lamps? On our server with CB1.4.7 and Residence plugin there's no such problem.
some one know a fix for players who can steal the lamps ? even when its protecten
@_kitor
kool beans there is also the Wall blocks u mit be able to use to i used to use a plugin called Blocks on glass its not updateing anymore and that broke most of my Mechines i bin looking for a replacement for that for ages so i hope u continue to develop this plugin as i am defantly keeping my eye on it and iam curantly useing it as for the Redstone update i cant wait for that to xD i hope u do well on ur finals good Luck!
@King_lucifer and others.
As for now, I'm waiting for announced 'redstone update', cause it may change almost everything, and I'm during finals in college.
About nether brick, I tought about two different sollutions - in one normal fence would transport power upwards, nether downwards; in other they would act just like redstone wire. Both of them has many pros and cons.
Hello i run a SteamPunk Sever called skyeden and i love this plugin i do have some sugetions if u are still willing to develop this
1. make the (pipe) able to change shapes like a 4 light lamp
2 . being able to use Neather Brick fence
3 make the Top block of the pipe able to send power to near by redstone
this would make this plugin Badass and alow for some CrAzY redstone Mechines
Thankyou for makeing this plugin
I'm sorry but I haven't got time to look at this. I will, but can't tell when.
I have an idea how to achieve that, but I think that this type of fence pipe should work only vertically, such like now - will power block only on top of pipe.
Then if you need to transfer it to multiple levels or spread the current around - you will need to do something like:
power source -> fence pillar over it -> redstone torch on top of it -> fence on top of this torch
and so on. This will be quite easy to be done (if my idea is right, I'll release preview this coming week), and most likely will not affect existing redstone circuits.
@_kitor
Ok, finally figured out how to update to java 7 without blowing up the server! Yay me! ;)
The plugin works great! Sry about my mistake before.
Heres my vote for red-stone power transmitting through the fences!
Would love to use them to power series of lights. Like for hanging chandeliers. Or even just use them for transmitting power to higher/lower levels in a structure.
@MikeC2103
According to PM:
This error means that you have Java 6, plugin was compiled for Java 7 - you should update it.
Working fine under 1.4.5-R0.3 (Build #02490).
Thanks!
Awesome! This is exactly the plugin I have been looking for! :D
Using CB 1.4.5r2 FL 0.30a, it errors on startup and it doesn't create any config files.
Same issues with cb 1.4.5r3 Build 2490
Edit: My fault. Still running Java 6