[FUN/MECH] ThunderTower - Make Towers to Catch Lightning [1.5.1]

Discussion in 'Archived: Plugin Releases' started by rominos2, May 1, 2011.

  1. Offline

    rominos2

    ThunderTower - Catch Lightning Strikes
    Version : 1.3.8 (Conductivity Edition)

    This plugin is now on BukkitDev


    Old Post


    Construct Tower in a specific Material to catch the Lightning Strikes
    Can also be used with my plugin Battery to store energy

    Features :
    • Construct, increase, reduce, destroy Thunder Towers (With Permissions)
    • Catch a certain percentage of the Lightning Strikes from a certain distance (that you put in configuration file)
    • On Strike, active a redstone wire just under the tower for a configurable time
    • On Strike, damage player (configurable) in a radius (configurable)
    • To avoid damages you've have to cover the tower with NonConductiveMaterial blocks (configurable)
    • Added to Minecraft UpToDate
    Commands :

    • /tthelp : See the information to build a correct tower, such as heights, material, ...
    Permission :

    • Create a Tower or access to /tthelp : thundertower.create
    • Destroy a Tower : thundertower.destroy
    Download Links :
    ThunderTower v1.3
    Other Versions (open)

    Screenshots :
    Screenshots (open)

    [​IMG]
    [​IMG]
    [​IMG]

    TODO :
    • Any Ideas ?
    Known Issues :
    • No more ^^
    Changelog :

    Version v1.3 (Conductivity Edition) (04-09-2011)
    • Config file in now a YAML file
    • Add configs for making damage to players in a radius of the tower on strike
    • Add NonConductiveMatrial list to make a tower safe from damaging players
    Changelog (open)

    Version 1.2.3 (02-09-2011)
    • Add in-build permission system support
    • Fix for the last time the OutOfBoundsError
    Version 1.2.2(21-07-2011)
    • No more OutOfBounds Errors, I assure you
    Version 1.2.1(02-06-2011)
    • No true changes, just compiled for 818
    Version 1.2(12-05-2011)
    • MultiWorld Support
    • Redstone support
    • Functions with others weather plugin (tested with WeatherGod)
    Version 1.1(03-05-2011)
    • Catch Percentage
    • Minimum Altitude
    • Configurable Colors of messages
    • /tthelp command
    Version 1.0(01-05-2011)
    • Just the release of this awesome plugin !


     
  2. Offline

    rominos2

    bellardie likes this.
  3. Offline

    max001

    Only missing a plugin ! A powered furnace (powered whits redstone) :(

    sorry my english isn't very good because i live in germany ...
     
  4. Offline

    rominos2

    bellardie likes this.
  5. Look at this screenshot... It's something wrong? the redstone doesnt work when lightning strikes... help!
    [​IMG]
     
  6. Offline

    rominos2

    @JM120897
    Just put the wire UNDER the tower
     
    bellardie likes this.
  7. Ok thanks! but only one more question... how can I activate the furnace with the battery?
     
  8. Offline

    rominos2

    Just put th furnace on th e right face on the battery
     
    bellardie likes this.
  9. Offline

    rominos2

    @Spidi

    Yeah
    You've good ideas
    Send me complete vids I'll post them

    For this one I'm not sure it is awesome
    But might be the next one better
     
    bellardie likes this.
  10. yeah once we get a server event setup that uses them i will be sure to send them :) this one as i said was just to prove how easy it was to setup and run :) Thanks man
     
  11. Offline

    rominos2

    @Spidi
    No Problem
    I really apreciate your feedbacks
    I want a LOT of vids ^^
     
    bellardie likes this.
  12. Bug, not sure if it's TT or in WR, never seen it before.

    Code:
    19:38:40 [SEVERE] Could not pass event LIGHTNING_STRIKE to WeatherRestrictions
    java.lang.NoSuchMethodError: org.rominos2.ThunderTower.ThunderTowerSettings.getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
            at de.crannk.xPaw.RandomWeatherWeatherListener.onLightningStrike(RandomWeatherWeatherListener.java:124)
            at org.bukkit.plugin.java.JavaPluginLoader$85.execute(JavaPluginLoader.java:840)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.WorldServer.strikeLightning(WorldServer.java:121)
            at org.bukkit.craftbukkit.CraftWorld.strikeLightning(CraftWorld.java:337)
            at com.nisovin.magicspells.spells.LightningSpell.castSpell(LightningSpell.java:69)
            at com.nisovin.magicspells.Spell.cast(Spell.java:204)
            at com.nisovin.magicspells.Spell.cast(Spell.java:170)
            at com.nisovin.magicspells.MagicPlayerListener.onPlayerInteract(MagicPlayerListener.java:96)
            at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:314)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
            at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:139)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:805)
            at net.minecraft.server.Packet18ArmAnimation.a(SourceFile:35)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:89)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:453)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  13. Offline

    rominos2

    @Joy
    The error is in the WR plugin
    He is trying to call an in existing method in my plugin
    BTW I never heard nothing about devs hooking in ThunderTower
    If they want an API they can just ask for it
     
  14. Offline

    Tux2

    @rominos2 I think I'm the only one hooking into ThunderTower at the moment and I didn't think it would be worth the hassle for you to implement an API for one plugin. Basically I'm just trying to keep from blowing up the thunder towers with my plugin whenever my plugin wants to do a super charged lightning bolt that blows a big hole in the ground. Guess I need to download the newest version of ThunderTower and re-link.
     
  15. Offline

    rominos2

    @Tux2
    I see that in your code and you should just replace the getProperty("active", "true"') (wich I never used) to getActive() that returns a boolean

    For the API what do you want more in it ?
    Perhaps you want a JavaDoc instead ?
    All the methods for the configs are public
     
    bellardie likes this.
  16. Offline

    Tux2

    @rominos2 if I had an API the only thing I would really want in it is a simple way of seeing if a thunderbolt I'm handling is striking a thunder tower, like this:
    Code:
    thundertower.hitTower(location);
    
    and would return true or false, depending of if that lightning bolt hit a tower. It would definitely clean up my code although it is not necessary.

    FYI: It was actually quite fun trying to figure out how your plugin worked when I was integrating it with WeatherRestrictions. I was using Eclipse and looking through all the methods that it said were available for your plugin.
     
  17. Offline

    rominos2

    @Tux2

    Hmm so you want like an event listener calling each time there is a thunderbolt catch by my towers ?
    I've seen a tutorial on how to do that
    I'm going to look in it
     
    bellardie likes this.
  18. Offline

    Tux2

    No, just a way to see if the lightning bolt event I'm receiving is hitting one of your towers. If you look at my code, that's all I'm checking.
     
  19. Offline

    rominos2

    Yeah but when will I modify the method ?
    At the strike ?
    When do you get the lightning strike event ? I got the same
    So when would I set the .isHitingTower ?
    I prefered create Listener and event, btw I'll discover that and you'll just need to create a ThunderTowerListener
     
  20. Offline

    Tux2

    I get the lightning strike after you, but all I'm checking is to see if the location of the lightning strike is hitting the top of a tower.
    You don't, I just need to know if there is a tower at that location.
    Well, if that were to happen then I would have two events listening for lightning bolts that I would have to coordinate to make sure the Thunder Towers didn't get blown up.

    You see, every lightning event I get has a chance of becoming a supercharged one, so if it is one that you generated to hit your tower, then BOOM the thunder tower gets destroyed. I just need a simple check to see if the location that the lightning is hitting is a thunder tower.

    I guess a isThunderTower(Location loc); would have been a better wording...
     
  21. Offline

    rominos2

    You just want to know if there is a thundertower at the location ?
    No problem
    The location will be where I send the thunder strike
    So ok it will be done
     
  22. Offline

    Fr0zenfr0g

    my towers dont work :(
    /tthelp dont work :(
     
  23. Offline

    rominos2

    @Fr0zenfr0g

    What do think I can do for you without details ?
     
  24. Offline

    Fr0zenfr0g

    i have no idea :D
    i build a tower but all the lightnings is missing the tower :D
     
  25. Offline

    rominos2

    @Fr0zenfr0g
    I need details like configs screens ....
     
  26. Offline

    Fr0zenfr0g

    Ok i can fix that later
     
  27. Offline

    rominos2

    Release of the version 1.3.1
    ----

    have fun !
     
    bellardie likes this.
  28. Offline

    kingglass565

    is there a download for this????!!!
     
  29. Offline

    Tux2

  30. Offline

    rominos2

    bellardie likes this.

Share This Page