[FUN/MECH] Battery - Store and Release the Power of Redstone [1.5.1]

Discussion in 'Archived: Plugin Releases' started by rominos2, Jun 23, 2011.

  1. Offline

    rominos2

    Battery - Store and Release the Power of Redstone
    Version : 1.5 (Power Plant Edition)

    This plugin is now on BukkitDev

    Old Post


    Create batteries.
    Catch any redstone activity in a battery and release it later with a lever.
    For example, you can use it with my ThunderTower plugin.

    Features :
    • Create Batteries with a block, a sign, and a lever
    • Save it in a flatfile
    • Charge your battery
    • Uncharge it
    • Full configurable
    Download Links :

    Battery v1.4.3


    How To Use :
    • Place a Battery Block (configurable)
    • Put a Sign with the first line [Battery]
    • Optional : See the Parameters section to make special batteries
    • Let's charge with redstone on the left side (redstone wire) or with an active furnace
    • Click on the Sign yo power on the right side (redstone wire) or a to active a furnace
    Parameters on Sign :

    All the Parameters can be written on the second line of the Battery sign on the creation of the Battery
    Only One parameter can be set for a battery

    Params (open)

    AutoPower
    Battery will automaticly uncharge it when arrive to a define level
    Usage : APxx when xx is the specific level

    AutoActivation
    Battery will uncharge it only if a redstone wire is powering the back of the battery
    Usage :AA

    Screenshots:
    Screenshots (open)

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

    Todo :
    • Load Batteries Chunks
    Known Issues :

    • No more
    ChangeLog :

    Version 1.4.3 (11-09-2011)
    • Fix the remaining problems with the CurrentModificationException
    • The timeCheck is no more in miliseconds but now in 1/20 seconds (10 = 0.5sec)
    ChangeLog (open)



    Version v1.4.2 (09-09-2011)
    • Code cleaning of the remaining classes
    • Fix a lot of bugs
    Version 1.4.1(08-09-2011)

    • Enormous Code Cleaning
    • Fix battery loose problem
    • Fix AP Problem
    Version 1.4(05-09-2011) (Furnace Edition)

    • Add furnace powering
    • Add AA param (AutoActivation) on a battery to activate it with a redstone current on the back of the block
    Version 1.3(28-08-2011) (Timer Edition)

    • Some code cleaning
    • Add Furnace charging
    • Add AutoPower to X% with the parameter APXX (where XX is the number)
    Version 1.2.2(27-07-2011)

    • Perhaps fix the non charging error
    • Delete batteries instead of spamming the console don't finding them
    Version 1.2.1(13-07-2011)

    • Fix a little bug in the configs on the plugin loading
    Version 1.2(09-07-2011) (St-Evarzec Edition)

    • Rewrite of the energy support (using my own RedstoneManager)
    • Delete of the AutoPower configs in properties
    • Add AutoPower optional on Batteries Sign
    Version 1.1(27-06-2011)

    • Fix the right Click issue
    • Add an autoPower config to deliver power when charged at 100%
    Version 1.0(23-06-2011)

    • Just the release of this awesome plugin


     
  2. Offline

    MCManager

    very nice!, i can see alot of uses in this
     
  3. Offline

    rominos2

    Yes you can also use it with My ThunderTower plugin ^^
     
    Xordaii and bellardie like this.
  4. Offline

    Lolmewn Retired Staff

    Huh, this looks cool :p
     
  5. Offline

    NinjaWAffles

    I like this :D
     
  6. Offline

    Juze

    Title is wrong, there is no such tag as FFUN. Changelog must show two most recent changes without spoilers.
     
  7. Offline

    rominos2

    Everything is corrected now
     
    bellardie likes this.
  8. Offline

    Avous

    @rominos2

    what would be the point exactly o.o?
     
  9. Offline

    G4ME

    how much energy can this battery hold?
     
  10. Offline

    rominos2

    @Avous
    What are you talking about, I d'ont understand

    @G4ME
    It depends of the configration you put.
    It's in seconds of energy
     
    bellardie likes this.
  11. Offline

    Plague

    this is just so cute a plugin :)
     
  12. Offline

    G4ME

  13. Offline

    Avous

    @rominos2
    what features to redstone would this add precisely? like what could i do with this that i couldnt do with say... a redstone torch or a repeater?
     
  14. Offline

    Joeyderijk

    can u send me a pic, or tell me how to use this with ur thundertower? i maked redstone on the bottem, but it didnt light up, but my redstone% in the confix is 5....

    nvm, found it already ;p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  15. Offline

    rominos2

    @G4ME
    It's [Battery] and not (Battery)

    @Avous
    It's just to have a block in wich we can store energy
    It's more for the RP than another things because a lever can also make that ^^
     
    bellardie likes this.
  16. Offline

    G4ME

    It is [Battery] :p it just looks like () becauuse of the view angel

    EDIT: Okay its working now :p

    EDIT2: You can power the battery by itself by rightclicking the lever. Hope you can fix that if possible
     
  17. Offline

    rominos2

    @G4ME
    Ho yes, never tought we can active lever rightclicking
    I'll update it in the next days
    Thanks for reporting this
     
    bellardie likes this.
  18. Offline

    G4ME

    no problem.

    so far im using this mod right now but there is no storm :/

    If you fix that its pretty nice :)
     
  19. Offline

    rominos2

    Ok thanks for using it ^^
    While fixing, I'll add the possibility (configurable) of releasing the energy once charged at 100%
     
    bellardie likes this.
  20. Offline

    Luke0202

    MASSIVE BUG! >.< basically I'll charge up the battery, get rid of the source, click the lever and it will power the redstone and the power WON'T drain :(
     
  21. Offline

    G4ME

    for me it will drain mh
     
  22. Offline

    rominos2

    @Luke0202
    Can you send a screen of your instalation

    I'll be not very active on the forums in the next 3 days (vacations ^^)
     
    bellardie likes this.
  23. Offline

    Nerozx

    could you add solar pannels :))?
     
    ndoorn, martijn4life and dak393 like this.
  24. Offline

    olimoli123

    -Bookmarks- ;]
     
  25. Offline

    Alkoforumm

    Hi
    I have a idea..can you make it..can replace the lever with redstone
     
  26. Offline

    Luke0202

    In what way? :p I just popped it into the Plugins, restarted the server, and away I went :p
     
  27. Offline

    ShadoWalker

    I can't really find any uses for this mod... Can you explain one of them to me?
     
  28. Offline

    ndshomebrew

    At the moment when the source of power (lever or something) is too farr away from the battery the battery won't charge.. Are you going to change this? It's pretty anoying.

    I'll need first too make a switch close to the battery and then father away from it. Else it doesn't going to work. Sounds like a bug for mee :p
    \i'll hope i've explaint it good enough

    Edit:
    Don't now what is wrong. Sometimes it's working and on another place its nog...
     
  29. Offline

    Dallin Boyce

    I keep getting this error
    16:10:33 [SEVERE] java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
    16:10:33 [SEVERE] at org.rominos2.Battery.BatteryTimer.updateSign(BatteryTimer.java:52)
    16:10:33 [SEVERE] at org.rominos2.Battery.BatteryTimer.run(BatteryTimer.java:36)
    16:10:33 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:34)
    16:10:33 [SEVERE] at java.lang.Thread.run(Thread.java:680)
     
  30. Offline

    rominos2

    --- Release of the version 1.1 ---
    See changelog for news

    @Dallin Boyce
    Are you sure it's a sign on your battery ?
    Try to delete the save and try again

    @ShadoWalker
    It's essentially for Rp, making batteries
    Yes a lever can do better, I know but batteries are much funnier
     
    bellardie likes this.

Share This Page