[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

    woodzy

    @rominos2 a fue things bug and ideas for you :>
    idea #1 have be able to "hold" a charge for any amount on time
    idea #2 have it be triggred by redstone power to the sign to tell it to release the power at a given moment.
    idea #3 bigger batterys?
    and of corse the glitcy lever poping OFF when its done discharging whats up with that XD
    2011-06-27_21.41.22.png
     
  3. I personally don't mind them at all, but I believe adf.ly links are not allowed :/

    It's such a cute mod, yet so useless, haha, been pondering on what on earth I could use it for :D
     
  4. Offline

    Xordaii

    I know what "I" will use it for... my son has dreams of being a mad scientist. Sort of fixated on the idea, to tell the truth. We now have plans for two ThunderTower lightning rods on top of a wizard's tower, and banks of Batteries. Now what to power? I have seen a mod for redstone-powered lights, might check that out. Other than that, going to let the little guy figure it out himself! LOL yay for creativity.
     
  5. Offline

    Fr0zenfr0g

    This locks nice but can you not add diffrent time powred bateries?
     
  6. Offline

    rominos2

    @Fr0zenfr0g
    Will add differents time on each batteries but I don't know how to make it regarding permissions (to avoid that someone create a battery charging in 1 sec and making 100h to power ^^)
     
    bellardie likes this.
  7. Offline

    lulu1882

    please help how to use this plugin:(
     
  8. Offline

    rominos2

    Yes I'll do a tuto in the main post

    You just have to put a sign on a bettry block (configurable, default lapis block)
    write [Battery] and that's it
    Use redstone to charge it and when you want to power energy put a lever on the back of the battery and active it
     
    bellardie likes this.
  9. Offline

    trigger281

    You need a plugin to disable redtorch, why? because it is pointless playing with batteries when you have an inexhaustible source of energy in the form redtorch and Lever. Cool would be if you added solar panels or some other resource that requires a means to recharge those batteries.
     
  10. Offline

    scottthemaster

    i get the idea of putting the sign on the lapis and writing "battery" on it, but then where do i put the lever and how in the world do i charge it?!?!?!?!
     
  11. Offline

    halvors

    Nice, this gonna be useful. :D

    May you do so the redstone on right side charge and redstone at left use thw power from the battery?

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

    rominos2

    @trigger281
    It's essentialy for the RP
    Yes lever are inexhaustiblebut but it's funny to have batteries (with my ThunderTower for example)
    @halvors
    Yes I thaught of that while programming but it's more complicated to manage ^^
    For the moment I just authorize lever to power, nothing more (easyier)
    Is that very important ?
     
    bellardie likes this.
  13. Offline

    halvors

    When charge the battery without a lever it start use the power when full charged...
     
  14. Offline

    rominos2

    Yes for the moment, I code it just how it comes from my head
    But I will modify it to create current (better) and not controling a lever
     
    bellardie likes this.
  15. Offline

    halvors

    Thanks :D

    May you post the source?

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

    rominos2

    Not for the moment (I don't like to post work because it's time^^)
    But I'll see if you want to help me , perhaps I'll send it to you
     
    bellardie likes this.
  17. Offline

    halvors

    Just for security reasons. A lot of server admins don't use plugin that not provide the source. Because of the security. (Not that i think your software provide spyware) :)
     
  18. Offline

    rominos2

    Ha ok just to see it if secure
    Don't worry I do not send anything anywhere with my plugin or I would have made something a bit easyier to code to hide it like a plugin who made cakes or something likes that (because cake is a lie you know that)
     
    bellardie likes this.
  19. Offline

    m0dulus

    It acts more like a capacitor?
     
  20. Offline

    rominos2

    Yes it does. But what's the difference between a battery and a capacitor ?
     
    bellardie likes this.
  21. Offline

    trigger281

    well ok, and you could add some non-renewable source of electricity to charge the battery? For example, Furnace + Coal
     
  22. Offline

    rominos2

    For the moment it can just be charged by redstone but yes it interesting
    I add it to the Todo List but it's not the first one to be done
     
    bellardie likes this.
  23. Offline

    ZyniakHD

    what about making a double battery?
    (putting AND/OR linking two battery's)
     
  24. Offline

    rominos2

    @ZyniakHD
    For the moment, I'm just updating my plugin
    I don't understand what you called a double battery
    I'll release the update of "the single one" in the next days
     
    bellardie likes this.
  25. Offline

    ZyniakHD

    im sorry if i was misleading but i was thinking of a larger battery,
    maybe you could link two batterys togheter and more power would be held ;)
     
  26. Offline

    rominos2

    --- Release of the Version 1.2 (St-Evarzec Edition) ---
    A lot of changes, see changelog for news

    @ZyniakHD
    redstone is redstone, there is not more or less power
    but you still can put two batteries charging with the same wire
     
    bellardie likes this.
  27. Offline

    rominos2

    --- Release of the Version 1.2.1 ---
    Next on the St-Evarzec Edition, this is the fix of a bug on configs loading

    Have Fun !
     
    bellardie likes this.
  28. Offline

    Grammar Troll

    @bellardie
    @rominos2

    Why does @bellardie like all your replies (and why do you follow him and vice versa)? Looks awfully like you're the same person ;)
     
    bellardie likes this.
  29. Offline

    rominos2

    bellardie likes this.
  30. Offline

    Legomaster98

    it did work for 1 battery then i cant make any more
    dey do not charge
     

    Attached Files:

  31. Offline

    rominos2

    @Legomaster98
    Any details more ?
    Configs ?
    I'll see that this weekend

    EDIT : Mine is working
    I put 2 batteries and it functions
     
    bellardie likes this.

Share This Page