LightningRod Rain isn't just a pretty sound or a dreary sky anymore. If you hear the rumblings of thunder on the horizon, watch out! Make sure not to hold that iron bucket, or tromp around in those gold boots... or you'll get zapped. Any iron or gold items exposed to the sky are vulnerable to the elements. Whether it's in your hand, or worn on your body, built onto your house, or even those poor minecarts and rails... BOOM! Now in Release status, tested on CB 1.2.5-R2, on the dev.bukkit.org site. Bukkit Project Page link: LightningRod Bukkit Download: LightningRod.jar Permissions lightningrod.immune - your ops' only defense Configuration Code: enabled: true lightning: redstone: true # powers wire next to base block of attractor damage: true # not fake lightning effect, but the real deal weather: attraction: 75 # 0-100 - percent of natural bolts hitting rods # 100-200 - additional lightning during rain worlds: all: true # or name individual worlds here attract: hand: true # iron or gold held in active inventory slot minecarts: true # empty or laden carts, on tracks or not armor: true # all four armor slots, any metal is dangerous blocks: true # all tracks, iron fences, gold blocks, etc.
EliteMouse, have considered it, and the code is set up so it's easy for me to add that when I get some time. Right now, it's ALL blocks made of gold or iron that is both grounded and exposed to sky-- including the extension half of a piston if the piston is activated. Likewise with things that a player holds in hand, or wears. Chainmail, iron, gold armor; compasses, buckets, etc.
Very cool! I am using this! Perhaps add a height variable as well? Higher metal blocks take priority over lower metal blocks. how exactly does the percentage work? Is that 75% for all the blocks in the server? Only what is loaded?
won't load.... Look what happens: 19:22:20 [SEVERE] Could not load 'plugins/LightningRod.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.VerifyError: class cc.halley.bukkit.CommonPlugin overrides final method getName.()Ljava/lang/String; at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:150) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:207) at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:541) at org.bukkit.Bukkit.reload(Bukkit.java:182) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:469) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:596) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:565) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.VerifyError: class cc.halley.bukkit.CommonPlugin overrides final method getName.()Ljava/lang/String; at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:139) ... 13 more EDIT by Moderator: merged posts, please use the edit button instead of double posting.
planning to update in time for 1.3 release I have an update of the plugin for 1.2.5, and have worked out a number of API changes to bring it in line with the latest out there. If someone could give it a whirl, I'd appreciate it. I haven't checked the pre-release 1.3 API changes yet, but wanted to get close. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Glorious, wonderful, superb! three out of of the thousands of compliments this plugin deserves.. amazing idea.. well thought out.. going to make a skyscraper's lights flicker on and off everytime there is thunder