Inactive [MECH] PistonChest v0.5.2 - Pistons push Blocks into Chests [1060]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, Jul 7, 2011.

  1. Offline

    narrowtux

    PistonChest
    Pistons push Blocks into Chests or pull them out
    Version: 0.5.2
    PistonChest.png


    Download
    PistonChest.jar
    Source Code on GitHub

    Features
    • Push Blocks into Chests, Dispensers and Furnaces when they hit one
    • Special Furnace-Support, only uses the input stack there
    • Sticky pistons now pull the first block out of chests/dispensers and the product-block out of furnaces. Items won't be pulled for now.
    • No Permissions and Configuration needed, drag'n'drop install.
    • Lockette and LWC support (Pistons won't pull or push anything out of protected chests/dispensers/furnaces)
    • Configure if you want to protect your chests with LWC or Lockette (Config is auto-generated with nice defaults, so it runs great out of the box)
    • uses NarrowtuxLib
    Changelog
    Version 0.5.2
    • Updated for NarrowtuxLib
    See the whole changelog

    Todo
    • Option to make pulling blocks/items random instead of using first block.
     
    CoD511, FrAz, skeletonofchaos and 4 others like this.
  2. Offline

    creatorz

    Thanks you very much :)
     
    kahlilnc likes this.
  3. Offline

    kahlilnc

    I love this idea.
     
  4. Offline

    narrowtux

    creatorz had this idea, I really liked it
     
    kahlilnc likes this.
  5. Offline

    caHarkness

    I have an idea! How about you make it so if a sticky piston pulls from a chest with block content in it, it pulls it out from the chest into block form. :D That would be so awesome! Otherwise, cool concept
     
  6. Offline

    narrowtux

    That's a good idea!
    I didn't know what to do with sticky pistons yet.
     
  7. Offline

    Wakko

    I was about to suggest that! :p
    Also: When a sticky piston pulls from a furnace, it can only pull the smelted items out. (Only if it's a block.)
     
  8. Offline

    Adondriel

    Have sticky piston pull a random block from a chest and have them push coal/iron into the chest and pull out the coal iron or w/e is smelted.
     
  9. Offline

    caHarkness

    Well, if you did that.. the smelted ores might disappear! Agh!!
     
  10. Offline

    narrowtux

    I would check if the pulled material is an item first. This can easily be done by checking if the ID is below 128. With this, no smelted ingots would disappear when a piston pulls them out. I would make it like that (can be turned off in configuration): when the pulled material is an item, it'll be dropped there. Below that place you could do a waterstream where the items go to a gather-place.
    Would that be nice?

    I'll make that configureable wether the pulled block should be random or if it should be the first block in the chest.

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

    caHarkness

    Sweet, this is really looks promising. This would make self-repairing bridges easy to build, but also more fun :D
     
  12. Offline

    jamescosten

    does this by pass chest protection like lockette??
     
  13. Offline

    narrowtux

    Currently, yes...
     
  14. Offline

    jamescosten

    Currently meaning you are going to fix :)

    I like the idea mate, just at the moment dont want my chest being filled with crap lol
     
  15. Offline

    br0ad456

    thats cool but i dont get why that would have any use....
     
  16. Offline

    narrowtux

    Release v0.2
    • Sticky pistons now pull the first block out of chests/dispensers and the product-block out of furnaces. Items won't be pulled for now.

    Lockette support is implemented in the next version! (Works here already) I just want to add LWC support too, since that is also a popular chest protection plugin, but it isn't as easy as Lockette :(

    Release v0.3
    • Lockette and LWC support (Pistons won't pull or push anything out of protected chests/dispensers/furnaces)
    Tagging @jamescosten to notify him.

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

    jamescosten

    Cheers mate but no need as im following this thread :p
    I must say you are the fastest updating developer on here. kudo's to you sir
     
  18. Offline

    narrowtux

    lol, thank you :D

    You can farm some ressources, like cobblestone with that.
    Also, you can now pull stone out of the furnace, which allows you to make massive walls automatically.

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

    den

    I personally used it to make a "sawmill". I used a combination of this, Minecart Mania, and Appleseed to make a little factory that both functions and looks like a factory (raw materials and products getting pushed around the workshop by pistons).
     
  20. Offline

    Liger_XT5

    I really like this plugin, I get a lot of:
    Code:
    2011-07-09 14:58:06 [SEVERE] Could not pass event REDSTONE_CHANGE to PistonChest java.lang.NullPointerException
    
    I know you set it up to not allow pull/push blocks with LWC chests, but it would be nice to somehow toggle this.
    I use iConomyChestShop and having an automated Cobblestone shop/store would be quite handy.
     
  21. Offline

    narrowtux

    Posting the whole error would help a lot ;)
    Is your iConomyChestShop connected to LWC?
     
  22. Offline

    Liger_XT5

    That "was" the whole error at the time. My server just did it's restart and now I got a larger error:

    Code:
    2011-07-09 15:35:44 [SEVERE] Could not pass event REDSTONE_CHANGE to PistonChest
    java.lang.NullPointerException
        at com.griefcraft.lwc.LWC.findProtection(Unknown Source)
        at com.narrowtux.PistonChest.PCMain.isChestPublic(PCMain.java:77)
        at com.narrowtux.PistonChest.PCBlockListener.onBlockRedstoneChange(PCBlockListener.java:27)
        at org.bukkit.plugin.java.JavaPluginLoader$34.execute(JavaPluginLoader.java:476)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at net.minecraft.server.BlockRedstoneWire.a(BlockRedstoneWire.java:110)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:41)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:451)
        at net.minecraft.server.World.applyPhysics(World.java:431)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:451)
        at net.minecraft.server.World.applyPhysics(World.java:431)
        at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
        at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
        at net.minecraft.server.World.k(World.java:451)
        at net.minecraft.server.World.applyPhysics(World.java:431)
        at net.minecraft.server.World.update(World.java:399)
        at net.minecraft.server.World.setTypeIdAndData(World.java:383)
        at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:142)
        at net.minecraft.server.World.a(World.java:1972)
        at net.minecraft.server.World.doTick(World.java:1712)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Yes iConomyChestShop is connected to LWC. Did this in case a plugin broke and the stores stayed protected.

    Show Spoiler

    If you don't believe me on the whole small error, look at time stamp:
    2011-07-09 14:44:29
    http://hgs883.hostedd.com/tempupload/server.log


    I'm right now using ObuShutTheHellUp plugin to, well, you get the idea lol.
     
  23. Offline

    halvors

    @narrowtux
    You should avoid piston to put block like water and lava in the chest. It's just to put a piston and a chest in a flowing water stream and then you start exploit dupe...
     
  24. Offline

    Liger_XT5

    I'd have to agree, I've already had a couple piston goof ups when a piston would push the extended piece of a piston into a chest. The chest would have the extended Plank and the "broken" piston would popup like a dropped piston.
    I've got the time between the two fine, it's just those unpredicted server lag spikes like a save-all or something that bugs up the redstone circuitry.
     
  25. Offline

    mxE333xm

    Great idea, great Plugin as usual with a narrowtux-Plugin.
     
  26. Offline

    narrowtux

    Ok, will add water add lava to disabled list.
    Also, what about adding lava/water buckets for flow-sources?
    Will add extended piston to the list also.
    thx
     
  27. Offline

    Liger_XT5

    I haven't been able to figure out if it's this plugin or a natural MC bug, but if a piston pushes a Flame, the flame turns into a drop. I've got people running around with chain mail now, lol!


    edit: It is this plugin. If you have Redstone -dust- powering the piston, pushing a flame into a chest, it will become a drop.
     
  28. Offline

    MatCat

    I cant get it to work at all
     
  29. Offline

    narrowtux

    It doesn't work with protected chests (when you have Lockette or LWC installed).

    Release v0.3.1
    • Added Configuration
    • Added fire, water, lava and piston extensions to the list of non-supported blocks.
    • Now uses NarrowtuxLib, my personal library-plugin for some common things all of my plugins have to have. NarrowtuxLib will be automatically downloaded and will update itself!

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

    wassilij

    And whats with dropped items?
     

Share This Page