[MECH] PistonsBreakBlocksOverWater v1.04 - Turn blocks to Items via Pistons [953/1000]

Discussion in 'Inactive/Unsupported Plugins' started by sunspark, Jul 16, 2011.

  1. Offline

    sunspark

    Pistons Break Blocks over Water
    Version: 1.04

    Quite simplistic, whenever you push/pull a block over water with piston, it will get dropped as the item. Means, you pull stone over it, and get a stone drop. You push glass over water via a piston, glass drops, etc.

    Make a backup of your world. I've tested it and nothing broke, but it's always good to have a backup just in case.

    Features:
    • Pull any blocks over a water source to break them
    • Push any blocks over a water source to break them.
      This needs to be the block immediately against the piston's base - blocks further away won't work. Fixed in 1.04 - any blocks that the piston pushes are now checked.
    Download:
    Github thingies includes the version at the end - be sure to delete/overwrite previous files.

    Changelog:
    Version 1.04
    • CraftBukkit 1.04
    Version 1.03
    • Check for canceled events before processing the piston updates
    • Water and Lava are no longer dropped when pushed/pulled
    Version 1.00
    • Initial version
    Requested by: PureDark
     
  2. Offline

    RazorFlint

    Cool, need to try this!
    You'll probably be Spammed with
    Show Spoiler
    IT NEEDS PERMISSIONS SUPPORT!
     
  3. Offline

    sunspark

    Issue is just, how would I even detect which user activated the piston?
     
  4. Offline

    RazorFlint

  5. Offline

    sunspark

    It's not about implementing permissions per se, but to know when users can even activate the pistons so that they'd drop items. Tracking who activated which redstone current how is fairly complex if includes logic gates and whatnot; I've seen a topic about that recently - the other option would be to keep track of who placed the pistons, and if it was a user with the applicable permission allow that feature. I'm not sure which of the two you mean?
     
  6. Offline

    nubpro

    You have to get player name or permission and you if..else statement.
     
  7. Offline

    LVM

    When a piston pushes a water flow, it very quickly spawns water blocks. This is a huge bug. Could this please be fixed? Other then that, great plugin.
     
  8. Offline

    sunspark

    Fixed that now; link above is updated, just overwrite the file.

    Updated for CraftBukkit 1000 - uses the new piston events now, means you can have your water further away - as long as a block is pushed over it, it'll be dropped.

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

    LVM

    Thanks! <3 My cobble generator was making more water then cobble :p
     
  10. Offline

    LVM

    Not to be a pain, but could you add an option to only activate this feature on selected pistons, or regions selected by WorldEdit? Maybe a command like /pistonbreak <enable/disable>, then you punch the piston to set the feature on that piston only. This way it doesn't interfere with other player's stuff :)
     
  11. Offline

    havenlau

    config file for specific item probably?
     
  12. Offline

    noahwhygodwhy

  13. Offline

    CaptainNemo

    Still works with 1529 thankfully. It's working just fine in conjunction with Item Scanners, a chest that absorbs whatever it already has in it.
     

Share This Page