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

    Fr0zenfr0g

  3. Offline

    philraz

    happens with both RB & dev build of spout & spoutcraft
    NM found the answer you need to leave a air gap between the block and the chest

    face palm !

    Code:
    15:37:23 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to PistonChest
    java.lang.NullPointerException
            at com.narrowtux.PistonChest.PCBlockListener.onBlockPistonExtend(PCBlock
    Listener.java:334)
            at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.j
    ava:540)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
            at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
            at net.minecraft.server.World.k(World.java:459)
            at net.minecraft.server.World.applyPhysics(World.java:435)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:286)
            at net.minecraft.server.World.k(World.java:459)
            at net.minecraft.server.World.applyPhysics(World.java:435)
            at net.minecraft.server.World.update(World.java:407)
            at net.minecraft.server.World.setData(World.java:349)
            at net.minecraft.server.BlockLever.interact(BlockLever.java:154)
            at net.minecraft.server.BlockLever.b(BlockLever.java:130)
            at net.minecraft.server.ItemInWorldManager.dig(ItemInWorldManager.java:7
    6)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:478)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :140)
            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:89)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java
    :478)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    >
    found the answer you need to leave a air gap between the block and the chest

    face palm !
     
  4. Is it possible to make this able to push entity's(atleast items) into chest's? I don't want to use Dropchest on my server as my server is trying to run without extra-for-nothing plugins ;)
     
  5. Offline

    narrowtux

    Basically yes, would need some work though and isn't that performance savvy ...
     
  6. Wouldn't it be more performance savy than DropChest? If you only checked for enity's on piston events :p
     
  7. Offline

    narrowtux

    Maybe... I can get only the entities in that specific chunk so it wouldn't be that demanding, but it's still expensive.
     
  8. Offline

    arough

    @narrowtux
    when your plugin runs after 3 hours my redstone 5clock frequenzy dindt work anymore =(
    when i delete ur .jars everything works fine.
    didnt had the time yet to test if it is your plugin or spout (from which i dont know what it does :D).
    EDIT//: my fellas found out that redstone torches which are off, cant be triggered on again.
     
  9. Offline

    capeguy

    Hey @narrowtux
    I'm running CB1060
    And I get this error when I have a Piston - Block - Chest

    Code:
    [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to PistonChest
    java.lang.NullPointerException
            at com.narrowtux.PistonChest.PCBlockListener.onBlockPistonExtend(PCBlockListener.java:334)
            at org.bukkit.plugin.java.JavaPluginLoader$43.execute(JavaPluginLoader.java:540)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
            at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
            at net.minecraft.server.World.k(World.java:459)
            at net.minecraft.server.World.applyPhysics(World.java:434)
            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:459)
            at net.minecraft.server.World.applyPhysics(World.java:436)
            at net.minecraft.server.BlockDiode.c(SourceFile:211)
            at net.minecraft.server.Chunk.a(Chunk.java:265)
            at net.minecraft.server.World.setRawTypeIdAndData(World.java:297)
            at net.minecraft.server.World.setTypeIdAndData(World.java:390)
            at net.minecraft.server.BlockDiode.a(SourceFile:69)
            at net.minecraft.server.World.a(World.java:1997)
            at net.minecraft.server.World.doTick(World.java:1736)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:444)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  10. Offline

    arough

    @capeguy
    i think it has to be piston-block-air-chest to work.
    when i place piston-block-chest directly together it wont work for me too.
     
    capeguy likes this.
  11. Offline

    capeguy

    OMG, Thanks. I was misled by the image on the first post.
     
  12. Offline

    arough

    yeah i dont know weather its a bug or just a wrong picture :D
    @narrowtux u might look into that =)
     
  13. Offline

    narrowtux

    I had to change that because of the Piston Events.
    I didn't update the image yet, sorry.
     
  14. Offline

    capeguy

    @narrowtux I sent you a mail some time ago. Could you read it? It'll mean a lot to me. Thanks!
     
  15. Offline

    sam501

    Amazing idea, a way to create a tool trash that saves your items!
     
  16. Offline

    Cobra

    Code:
    23:21:01 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to PistonChest
    java.lang.NullPointerException
            at com.narrowtux.PistonChest.PCBlockListener.onBlockPistonExtend(PCBlockListener.java:334)
            at org.bukkit.plugin.java.JavaPluginLoader$45.execute(JavaPluginLoader.java:554)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
            at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
            at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
            at org.getspout.spout.block.mcblock.CustomBlock.doPhysics(CustomBlock.java:185)
            at net.minecraft.server.World.k(World.java:488)
            at net.minecraft.server.World.applyPhysics(World.java:463)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
            at org.getspout.spout.block.mcblock.CustomBlock.doPhysics(CustomBlock.java:185)
            at net.minecraft.server.World.k(World.java:488)
            at net.minecraft.server.World.applyPhysics(World.java:463)
            at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
            at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.java:286)
            at org.getspout.spout.block.mcblock.CustomBlock.doPhysics(CustomBlock.java:185)
            at net.minecraft.server.World.k(World.java:488)
            at net.minecraft.server.World.applyPhysics(World.java:463)
            at net.minecraft.server.World.update(World.java:431)
            at net.minecraft.server.World.setData(World.java:373)
            at net.minecraft.server.BlockTorch.a(SourceFile:78)
            at net.minecraft.server.BlockRedstoneTorch.a(BlockRedstoneTorch.java:51)
            at org.getspout.spout.block.mcblock.CustomBlock.a(CustomBlock.java:195)
            at net.minecraft.server.Chunk.a(Chunk.java:358)
            at net.minecraft.server.World.setRawTypeIdAndData(World.java:316)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:93)
            at net.minecraft.server.ItemStack.placeItem(ItemStack.java:62)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:275)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:500)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:464)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    any ideas how to fix this? i used the new Spout Version for 1.8.1 but still dont work. :<
     
  17. Offline

    MCTSS

    I like it
     
  18. Offline

    narrowtux

    Update NarrowtuxLib, also, you can deactivate spout installing in NarrowtuxLib/narrowtuxlib.cfg
     
  19. Offline

    zenyl

    Just making sure, and if not, then I'm asking: Can you please tell me, what I'm doing wrong:
     
  20. Offline

    GayJuice

    hi just wanted to know if this works on 1185 without spout?
     
  21. Offline

    andrewpo

    this + cobblestone generator + somehow being able to extract the blocks from the chest and automatically re-build my fortress when it gets creeper'd/enderman'd === win

    Sounds fun! Got any screenshots or video(es)?

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

    Ruler

    Yes it does!

    Haha!

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

    Keetveter

    Error that I receive:
    Code:
    2011-10-09 01:43:25 [SEVERE] Could not pass event BLOCK_PISTON_EXTEND to PistonChest
    java.lang.NullPointerException
        at org.yi.acru.bukkit.Lockette.Lockette.isProtected(Lockette.java:695)
        at com.narrowtux.PistonChest.PCMain.isChestPublic(PCMain.java:95)
        at com.narrowtux.PistonChest.PCBlockListener.onBlockPistonExtend(PCBlockListener.java:331)
        at org.bukkit.plugin.java.JavaPluginLoader$46.execute(JavaPluginLoader.java:561)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at net.minecraft.server.BlockPiston.g(BlockPiston.java:70)
        at net.minecraft.server.BlockPiston.doPhysics(BlockPiston.java:47)
        at net.minecraft.server.World.k(World.java:488)
        at net.minecraft.server.World.applyPhysics(World.java:467)
        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:488)
        at net.minecraft.server.World.applyPhysics(World.java:465)
        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:488)
        at net.minecraft.server.World.applyPhysics(World.java:465)
        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:488)
        at net.minecraft.server.World.applyPhysics(World.java:464)
        at net.minecraft.server.BlockLever.interact(BlockLever.java:161)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:274)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Can I do something about it?
     
  24. Offline

    zenyl

    I'm getting a problem, very alike (if not identical) with Keetveter.
    This seems to be a mayor error, which narrowtux should either try to fix, (maybe) update the post to not say it supports Lockette, or simply disable this plugin if its not taken care of...
     
  25. Offline

    7eggert

    Maybe you should update the pictures and documentation since now you need a gap between the piston and the chest.
     
  26. Offline

    zenyl

    I don't think NarrowTux even looks this any more? :(
     
  27. Offline

    GravelSocks

    Before installing/using PistonChest.jar (or perhaps other plugins from this developer), you should all be aware that it auto-downloads NarrowTuxLib which subsequently auto-downloads multiple other plugins without any disclosure, explanation, or permission. On top of that, older plugins like Register.jar are somewhat incompatible and generate SEVERE errors on startup.

    This developer has made a (substantially incorrect) assumption that, by default, it is OK to establish remote connections (to tetragaming.com, getspout.org, etc.) and download whatever he feels like to minecraft servers without permission, which potenitally results in a host of other issues - stability, security, configuration, and otherwise. At a bare minimum, this practice is potentially being used to log/harvest ip addresses for minecraft server locations (including private servers) @ 3rd party locations. In addition, the developer intentionally does not log these connections/destinations in the minecraft server log.

    NetworkUtils.java:
    "Downloads from the given url to the file without spamming the log."

    Until there is full disclosure, an improvement to the included code, better user control over what is being downloaded, and a different set of default options, I would think twice before installing this plugin. I would also suggest that this plugin be reviewed by bukkit mods and disabled until these issues are corrected. ( @Plague )

    The developer may have the best of intentions (requires review), but the execution is clearly invasive and potentially compromises private minecraft servers. Perhaps the developer would like to indicate how the dowloads are being logged at various remote sites and how that information is going to be (or has been) stored/used.

    And, btw, I found this issue because I had installed some plugins and subsequently noticed startup errors on my server that I initially didn't realize were happening. So, I had to spend time going through plugins one-by-one trying to find out where the problems were coming from and why there were unsolicited code downloads to my server configuration.
     
  28. Offline

    Jeahaha

    Code:
    04:57:26 [SEVERE] Could not pass event B
    LOCK_PISTON_EXTEND to PistonChest
    java.lang.NullPointerException
            at com.narrowtux.PistonChest.PCB
    lockListener.onBlockPistonExtend(PCBlock
    Listener.java:334)
            at org.bukkit.plugin.java.JavaPl
    uginLoader$46.execute(JavaPluginLoader.j
    ava:577)
            at org.bukkit.plugin.RegisteredL
    istener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePlugi
    nManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.BlockPis
    ton.g(BlockPiston.java:72)
            at net.minecraft.server.BlockPis
    ton.doPhysics(BlockPiston.java:49)
            at net.minecraft.server.World.k(
    World.java:488)
            at net.minecraft.server.World.ap
    plyPhysics(World.java:463)
            at net.minecraft.server.World.up
    date(World.java:431)
            at net.minecraft.server.World.se
    tTypeId(World.java:403)
            at net.minecraft.server.ItemInWo
    rldManager.b(ItemInWorldManager.java:186
    )
            at net.minecraft.server.ItemInWo
    rldManager.c(ItemInWorldManager.java:213
    )
            at net.minecraft.server.ItemInWo
    rldManager.a(ItemInWorldManager.java:165
    )
            at net.minecraft.server.NetServe
    rHandler.a(NetServerHandler.java:500)
            at net.minecraft.server.Packet14
    BlockDig.a(SourceFile:43)
            at net.minecraft.server.NetworkM
    anager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServe
    rHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkL
    istenThread.a(SourceFile:108)
            at net.minecraft.server.Minecraf
    tServer.h(MinecraftServer.java:471)
            at net.minecraft.server.Minecraf
    tServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadSe
    rverApplication.run(SourceFile:417)
    04:57:28 [SEVERE] Could not pass event B
    LOCK_PISTON_EXTEND to PistonChest
    java.lang.NullPointerException
            at com.narrowtux.PistonChest.PCB
    lockListener.onBlockPistonExtend(PCBlock
    Listener.java:334)
            at org.bukkit.plugin.java.JavaPl
    uginLoader$46.execute(JavaPluginLoader.j
    ava:577)
            at org.bukkit.plugin.RegisteredL
    istener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePlugi
    nManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.BlockPis
    ton.g(BlockPiston.java:72)
            at net.minecraft.server.BlockPis
    ton.doPhysics(BlockPiston.java:49)
            at net.minecraft.server.World.k(
    World.java:488)
            at net.minecraft.server.World.ap
    plyPhysics(World.java:468)
            at net.minecraft.server.World.up
    date(World.java:431)
            at net.minecraft.server.World.se
    tTypeId(World.java:403)
            at net.minecraft.server.ItemInWo
    rldManager.b(ItemInWorldManager.java:186
    )
            at net.minecraft.server.ItemInWo
    rldManager.c(ItemInWorldManager.java:213
    )
            at net.minecraft.server.ItemInWo
    rldManager.a(ItemInWorldManager.java:165
    )
            at net.minecraft.server.NetServe
    rHandler.a(NetServerHandler.java:500)
            at net.minecraft.server.Packet14
    BlockDig.a(SourceFile:43)
            at net.minecraft.server.NetworkM
    anager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServe
    rHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkL
    istenThread.a(SourceFile:108)
            at net.minecraft.server.Minecraf
    tServer.h(MinecraftServer.java:471)
            at net.minecraft.server.Minecraf
    tServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadSe
    rverApplication.run(SourceFile:417)
    04:57:29 [SEVERE] Could not pass event B
    LOCK_PISTON_EXTEND to PistonChest
    java.lang.NullPointerException
            at com.narrowtux.PistonChest.PCB
    lockListener.onBlockPistonExtend(PCBlock
    Listener.java:334)
            at org.bukkit.plugin.java.JavaPl
    uginLoader$46.execute(JavaPluginLoader.j
    ava:577)
            at org.bukkit.plugin.RegisteredL
    istener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePlugi
    nManager.callEvent(SimplePluginManager.j
    ava:339)
            at net.minecraft.server.BlockPis
    ton.g(BlockPiston.java:72)
            at net.minecraft.server.BlockPis
    ton.doPhysics(BlockPiston.java:49)
            at net.minecraft.server.World.k(
    World.java:488)
            at net.minecraft.server.World.ap
    plyPhysics(World.java:464)
            at net.minecraft.server.World.up
    date(World.java:431)
            at net.minecraft.server.World.se
    tTypeId(World.java:403)
            at net.minecraft.server.ItemInWo
    rldManager.b(ItemInWorldManager.java:186
    )
            at net.minecraft.server.ItemInWo
    rldManager.c(ItemInWorldManager.java:213
    )
            at net.minecraft.server.ItemInWo
    rldManager.a(ItemInWorldManager.java:165
    )
            at net.minecraft.server.NetServe
    rHandler.a(NetServerHandler.java:500)
            at net.minecraft.server.Packet14
    BlockDig.a(SourceFile:43)
            at net.minecraft.server.NetworkM
    anager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServe
    rHandler.a(NetServerHandler.java:92)
            at net.minecraft.server.NetworkL
    istenThread.a(SourceFile:108)
            at net.minecraft.server.Minecraf
    tServer.h(MinecraftServer.java:471)
            at net.minecraft.server.Minecraf
    tServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadSe
    rverApplication.run(SourceFile:417)
    what hapenned?
     
  29. Offline

    Scribbles

    please update
     
  30. Offline

    CrAzYpOnYbOy

    it didn't work for me is there a command?
     
  31. Offline

    GravelSocks

    Any reply on how/why private minecraft server information such as IP address is being logged and used by you or others on remote systems and why you do not disclose that you establish remote connections and download unsolicited code?
     

Share This Page