[FUN/MECH] PistonsExtended v1.4.0 Add Extra Functionality to Pistons [1000]

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

  1. Offline


    PistonsExtended -Extend Your Pistons

    Version 1.4.0

    This plugin allows you to define pistons that are crushers that crush blocks and if you left click a piston with a slime ball you can toggle the pistons stickiness. To define a piston as a crush you attach a sign to the piston on any of the 5 sides that has the first line of [crush] & Place bedrock i block away from piston like so: P_[bedrock] where P is the Piston _ is the block you want to crush. The second third and fourth are used to define what blocks can and cannot crush anyone of the lines can have a [NOT]
    and that means that any of the data values on the sign are not to be crushed any and items that aren't on the list will be crushed an example sign would be

    that sign would mean all blocks except for cloth,tnt,glass,torch,redstone torch, and stone can be crushed​
    ex image:​
    Change log:​
    Version 1.0:​
    • Public release
    Version 1.1:​
    • "Fixed" bug causing client crash
    • added ability to use the dash on signs ex 1-50 would crush everything from stone to torches​
    • you can now use obsidian instead of bedrock
    • if you place a chest where the bedrock is the crushed item ends up in the chest
    Version 1.2:
    • added auto option
    • added config
    • added dupe option line one [dupe] line 2 a single block or item id to dupe
    • chunks with pistons will now not unload
    • updated to CB 1000
    Version 1.3:
    • fixed NPE
    Version 1.3.1
    • should have fixed error with levers next to pistons
    Version 1.4:
    • early beta on auto fixed bug feedback is welcomed
  2. Offline


    Nah I was just wondering how progress is going, don't worry about your github
  3. Offline


    ok im currently moving my workstation
  4. Offline


    Any chance you could clarify all this a bit? its a bit rambling and doesn't seem to make much sense, maybe have a step-by-step walkthrough.

    Once I've had a play and worked stuff out I'd be happy to help if you like.
  5. Offline


    I love this plugin so much it works with NO issues so I would like to make a tutorial on how to use the piston crushing ability of this plugin!
  6. Offline


    @Flenix ok have a piston a open space and bedrock like in the picture then put a sign with the top line as [crush] and below id's you want to be able to crush with a comma and an optional [NOT] tag that makes all ids below it not crushable

    @Piggieserver that would be great
  7. Offline


    Thats still rambling a little ;) I understand it, but some other people will get lost in there.
    Anyway, it was the "sticky toggling" bit that confused me, I thought you'd made it stick to higher lengths, but it just chooses whether a piston is sticky or not.
  8. Offline


    really useful in my opinon
  9. Offline



    Been using the plugin for about a week and it's been working great, was using 2 other plugins to accomplish what this one does, anyway, one suggestion I have is to make the use of a sign optional. I'd like to see a default crush/push action performed by the piston if NO sign is used. That's the way the other two plugins I was using worked (PistonChest & Blockcrusher). I like having the ability to use the sign to narrow down what the piston will do, but for just a simple crush/push piston a sign isn't needed, plus it will look cleaner. Just a thought......

  10. Offline


    thanks ill do that
  11. Offline


    Hey, any heads up on a new update? Oh and would it be possible to make pistons transfer redstone power? like, a wall of 3x3 pistons and only one receives a power state making all the pistons react?
  12. Offline


    if the other pistons have levers on them yes
  13. Offline


    Impossible... ;P!
  14. Offline


    version 1.4 is out see changelog
  15. Offline


    That would be fine, as long as we only have to power one lever that would make some constructions a LOT easier.
  16. Offline


    I'm trying out the [auto] feature again, and it isn't working right in a couple of ways:
    Often, the piston keeps going back to extended even after I manually turn it off with the switch.
    The piston doesn't retract on its own. Ideally, it should auto retract after pushing, so that it can push again.
  17. Offline


    yeah im still working on fixing those bugs
  18. Offline


    Some of my player noticed that the pistons could push water into a chest. They went on to try with fire and lava which all were possible. I've tried this myself and confirmed that it works.

    I would like a customizable blacklist in the config file to prevent certain blocks from being crushed globally, instead having them destroyed. These would be water, fire, lava, tall grass as well as some other blocks users shouldn't have access to.

    While testing I also noticed that it seems like the [auto] and the [crush] functions does not work together. Neither putting both tags on one sign and putting two signs on one piston seemed to work. The same effect could be achieved by using falsebook though but would take up more space.

    Great plugin!
  19. Offline


    ok ill try the blacklist and im not sure why you want two signs?
  20. Offline


    I said I tried that to get a combined auto/crush piston by putting two signs on one piston but it did not work.

    I also tried putting both tags on the same sign on one piston but it didn't like that either.

    And blacklist would be awesome! :3
  21. Offline


    well auto doesn't work correctly yet
  22. Offline


    It worked fine for me when I tried [auto] on it's own. it even reacted to air when no specific block was entered I belive.
  23. Offline


    hmm can i see?
  24. Offline


    I'm not sure what you mean by "see". Do you want screenshots?

    I've disabled the crush part of the plugin due to the illegal items problem, but the rest of the functions remains active. Although they remain a secret from the players. (Especially the [dupe] one)

    I re-did my test and [auto] does indeed work for me, although I chewed air when I said it activated when no block was specified, this turned out to be false. But it does indeed extend the piston when the specified block is detected.

    However what it doesn't do is power off after the block has been pushed. Nor does it react when the block is destroyed.
    When turning the switch off it will instantly power on again, the piston not reacting.

    Only way to make the piston contract again that I could find was to destroy the sign.

    There was no relevant console output during this.

    Additionally I think it would be nice if the console logged when someone placed a tagged sign on a piston, displaying the type and position of the event.

    This has been my report and feature request.
    Forecaster out!
  25. Offline


    illegal items?
  26. Offline


    By illegal items I mean items that are not possible to get without cheating in some way.

    Such as pure fire, water blocks, lava blocks, tilled soil block and so on.

    These are some of the items I would put on the blacklist to prevent players from getting a hold of them by crushing them.
  27. Offline


    sure thing
  28. Offline


    Nice! i will use this i think :p
  29. Offline


    I put a sign like so


    I put a chest, then obsidian to test it. I got this

    2011-08-08 12:06:47 [SEVERE] Could not pass event BLOCK_PHYSICS to PistonsExtended
    at org.bukkit.craftbukkit.inventory.CraftItemStack.getMaxStackSize(CraftItemStack.java:124)
    at org.bukkit.craftbukkit.inventory.CraftInventory.firstPartial(CraftInventory.java:207)
    at org.bukkit.craftbukkit.inventory.CraftInventory.addItem(CraftInventory.java:227)
    at com.matter123.PistonsExtended.Crusher$innerblocklistener.onBlockPhysics(Crusher.java:166)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:420)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.World.k(World.java:445)
    at net.minecraft.server.World.applyPhysics(World.java:429)
    at net.minecraft.server.World.update(World.java:401)
    at net.minecraft.server.World.setTypeId(World.java:373)
    at org.bukkit.craftbukkit.block.CraftBlock.setTypeId(CraftBlock.java:77)
    at org.bukkit.craftbukkit.block.CraftBlock.setType(CraftBlock.java:73)
    at com.matter123.PistonsExtended.Crusher$innerblocklistener.onBlockPhysics(Crusher.java:167)
    at org.bukkit.plugin.java.JavaPluginLoader$26.execute(JavaPluginLoader.java:420)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
    at net.minecraft.server.World.k(World.java:445)
    at net.minecraft.server.World.applyPhysics(World.java:432)
    at net.minecraft.server.BlockButton.interact(BlockButton.java:154)
    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:458)
    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:85)
    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)

    BTW, when I try to open the chest it crashes my client.

    I destroyed the chest and the obsidian pops out but after about 10 seconds I crash again.

    Edit: Now I can't even log into my server

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


    thanks for the error

    do you have debug mode enabled?

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


    I'd also really like descriptions of all the functions and the options in the config.

    I'm not sure how the pusher and dupe functions work.

    Does the pusher function require a sign? I can't get a piston to push more than 13 blocks away despite the config being set to 70.
    And I really need to get that to work for a machine I built that got a little too big while I didn't consider the limits of the pistons...

Share This Page