Inactive [MECH] LightningRod v1.2 - anything iron or gold is dangerous [1.2.5R2-1.2.5-R4]

Discussion in 'Inactive/Unsupported Plugins' started by halley, Oct 25, 2011.

  1. Offline

    halley

    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.
    
     
    AnJ95, SomeoneLeoR and gamemaster1494 like this.
  2. Offline

    MonsieurApple

    Approved
     
    Anthony13 likes this.
  3. Offline

    EliteMouse

    maybe you add configurable list of blocks?
     
  4. Offline

    halley

    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.
     
  5. It's pretty fun, but not very good for standard use. I had some fun with it, I admit.
     
  6. Offline

    halley

    Maintenance release. No functionality changes, just tested on the 1.0.1-R2 release of CraftBukkit.
     
  7. Offline

    Austin

    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?
     
  8. Offline

    Wiinick

    Its you people that make minecraft awesome.
     
  9. Offline

    Mista Epic

    Ugh. I've been waiting for something like this. Thanks!
     
  10. Offline

    gabizou

    Would it be possible to allow damage done to players and mobs but not make a fire per say?
     
  11. Offline

    medede

    what if you are flying and your wearin and/or holding iron/gold will it hit you?
     
  12. Can I set the "attraction" to a value above 200 to have more lightning?
     
  13. Offline

    RaiTeDDy

    pls update
     
  14. Offline

    Hero683752

    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.
     
    Last edited by a moderator: May 20, 2016
  15. Offline

    aldege30

    if you have the time id "Love" to see this plugin updated.
     
  16. Offline

    halley

    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.
     
    Last edited by a moderator: May 20, 2016
  17. Offline

    OrangeCrush

    What I don't like is how it makes diamond more and more OP :/.
     
  18. Offline

    stickreid

    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
     

Share This Page