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

    narrowtux

    What do you mean?
     
  3. Idea: Make it able to pull boats and minecarts out as entity's :)
     
    narrowtux likes this.
  4. Offline

    narrowtux

    Version 0.4 is out!
      • Sticky pistons can now pull Vehicles and Items
      • You can configure exactly what sticky pistons should pull (blocks, vehicles, items)
    Also, the download has been changed to my new site, to track download counts (only that ;))
     
  5. Offline

    wassilij

    I mean that dropped Items can be pushed into a chest :)
    Like in a Mob Farm :)
     
  6. Offline

    dak393

    Very cool!
     
  7. Offline

    narrowtux

    Ah, yes.
    I already thought about adding entities from the world to the chest. That would include Drops and Vehicles, so it's easy to revert what the sticky piston does.
     
  8. Offline

    DerKB

    Greetings,
    on CB 953 and 0.4 of the plugin i get some problems.

    The piston pulls the block out of the chest, but then the piston brakes, so it is a one time use for me.
    It reports the following error btw.

    Code:
    2011-07-16 19:04:41 [SEVERE] Could not pass event REDSTONE_CHANGE to PistonChest
    java.lang.NullPointerException
            at com.griefcraft.lwc.LWC.findProtection(LWC.java:639)
            at com.narrowtux.PistonChest.PCMain.isChestPublic(PCMain.java:96)
            at com.narrowtux.PistonChest.PCBlockListener.onBlockRedstoneChange(PCBlockListener.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$33.execute(JavaPluginLoader.java:469)
            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:430)
            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:426)
            at net.minecraft.server.World.update(World.java:399)
            at net.minecraft.server.World.setData(World.java:341)
            at net.minecraft.server.BlockButton.interact(BlockButton.java:149)
            at net.minecraft.server.BlockButton.b(BlockButton.java:125)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:76)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:457)
            at net.minecraft.server.Packet14BlockDig.a(SourceFile:42)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    With Lockette it get a similar error while using this plugin.
    Chest is not protectet in any way, even no worldguard region or something that could mess something up.

    Hope you can get why it is happening for me, would be nice to use this nice plugin.

    Regards
    DerKB
     
  9. Offline

    narrowtux

    Fixed ;)
    Released v0.4.1
    • Fixed NPE when using LWC as Chest Protection
     
  10. Offline

    halvors

    May you add support for double chests?
     
  11. Offline

    narrowtux

    Yep. Good idea ;)
     
  12. Offline

    DerKB

    Ok, errors are gone so far, nothing in the log.

    Piston pulls the block out of the chest, but still brakes after a one time use.
    So i have the chest with a block next to it and a dropped sticky piston next to it.

    I am not sure why this happens, and without any errors in the log i can not realy help you finding the problem.

    Regards
    derkb
     
  13. Offline

    narrowtux

    Can you post 2 screenshots of this (aka before/after)?
     
  14. Offline

    DerKB

    Here they go,

    and it does not make any difference if i power the piston from any other side or with a diode next to it.

    Even tried it with putting blocks around the piston, still braking it.

    2011-07-17_17.07.12.png
    2011-07-17_17.07.23.png

    Hope that maybe can help you, even tried it to disable all other piston related stuff, but this still happens to me.

    Regards
    DerKB
     
  15. Offline

    narrowtux

    Oh, I got the same error too :D
    Let's see how I can fix it.

    fixed.

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

    DerKB

    Ok, thx for that fast fix, will test it out in about 20mins after the next planned server restart, my users start hating me for that not planned restarts in the last days.

    So thx again and keep up your good and fast work.

    Regards
    DerKB
     
  17. Offline

    narrowtux

    try
    /reload
    instead of restarting, just adds minimum lag as long as the reload is being done :p
     
  18. Offline

    darkcorwin1

    how do i install this plugin i get this zip file istead of a .jar
     
  19. Offline

    narrowtux

    Click on Save instead of open when you download it.
     
  20. Offline

    darkcorwin1

    i did i got it saved in my plugin folder as pistonchest.zip
     
  21. Offline

    narrowtux

    And you clicked on Showcase.jar in the description?
    Some Windows systems convert this to zip somehow. If you've got enough time, scrawl through the Showcase thread, someone had a similar problem there.
     
  22. Offline

    darkcorwin1

    k
    ty for trying too help
     
  23. Offline

    superbomb17

    @narrowtux
    could you make a lil plugin to make pistons take from any chest connected to it?
     
  24. Offline

    narrowtux

    It's already in this one. Just use sticky pistons.
     
  25. Offline

    superbomb17

    oooh thx
     
  26. Offline

    godofgames

    When you say "entities", do you mean mobs too?

    And what is BukkitContrib? I'm not sure if I want it if I don't know what it does.
     
  27. Offline

    7eggert

    This should only be possible having an empty bucket in the chest.

    I'm using dropchest for collecting drops and minecart mania would provide minecart management if I wanted to.
     
  28. Offline

    narrowtux

    It does nothing itself, it just offers developers access to things that are not possible with bukkit alone.
    I don't know if it would be good if mobs would be pushed into chests, that would just not be logic.
     
  29. Offline

    godofgames

    Yea I figured you wouldn't, but just making sure. That would be kind of funny though, to open up your chest and see a creeper.
     
  30. Offline

    Master_Rudik

    Amazing, this is exactly the way I hoped that "duping" would be re-implemented. Glad someone who actually knows Java could make this. Now my users can make their auto-building houses again!

    Two things:
    1. Plugin does not like pulling blocks that can only be gathered by spawning, such as the bed "block", sign "block", portals, etc. (numbers 23, 63, 68, 90. I'm sure there are others, just can't think of them.) When such blocks are used, it places them and either destroys one of the pistons (bed) or halts their motion (sign). Maybe make the check for items also skip these?
    2. Does this work with double-wide chests, or is that still a work in progress?
    Regardless, great plugin. Thanks so much for making.
     
  31. Offline

    noahwhygodwhy

    this is very useful, but do you think that in the future that if [wood][cobble][cobble][chest] with the wood as the piston it would still push the block into the chest? i'm using some other piston plugins with this to make a stone factory, but it won't work without the piston being at least 4 blocks away from the collecting device, whether it is a human or a chest, do you think you could put that on the list?

    hmm, maybe you could make it a sort of mob arena, where you could catch mobs in a chest with a piston, and then pull them out to fight them with a sticky piston...but it would just be a matter of storing the mob 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

Share This Page