Inactive [FUN/MECH] Piston Squeezer v1.2 - crush blocks with pistons! [953]

Discussion in 'Inactive/Unsupported Plugins' started by TheGildur, Jul 5, 2011.

  1. Offline

    TheGildur

    Piston Squeezer v1.2
    Crush blocks with piston!

    This is my first "official" plugin.

    Usage:
    - place two pistons facing each other with a space of two blocks inbetween
    - place a block inbetween them
    - activate the pistons
    - take the drop of the destroyed block!

    A short video demonstrating its usage:


    Config
    Config (open)
    //Check out http://www.minecraftwiki.net/wiki/Data_values for the data-values. !IMPORTANT! Keep in mind to supply the amount. Use 1 if you want just 1 drop.:
    protected:
    - 7​
    - 49​
    conversion:
    - 4: 12 2​

    Syntax of protected blocks should be clear. The IDs 7 and 49 stand for bedrock and obsidian. Those will be undestroyable with pistons. Syntax of conversion is as follows:
    - fromID: toID amount

    In the example above a cobblestone will drop 2 sand if its destroyed by the pistons.

    !IMPORTANT! At the moment it is mandatory to leave a blank newline at the end of the config.

    Bugs
    fixed so far

    To do
    - low priority: players take damage when inbetween the pistons

    Change Log
    Change Log (open)
    v1.1 - Added config
    - Bugfix: pistons attached with the stony side to each other will no longer destroy each other​

    v1.1 - Obsidian is now undestroyable
    - Bedrock is now undestroyable​
    - Bugfix: Blocks on the pistons will not be destroyed​

    v1.0 - Release


    Credits
    @feildmaster for his support regarding some question about bukkit and java.


    Any reports about bugs and suggestions will be appreciated!
     
    ch96li and kahlilnc like this.
  2. Offline

    jtlcr777

    Is it possible that you can make this kill a player?
     
    kahlilnc likes this.
  3. Offline

    IronWill1991

    Yes! This is what I need. But piston shouldn't crush obsidian and bedrock. There's another bug, blocks sitting on top of pistons gets destroyed when activated . EDIT: The blocks sitting by the pistons doesn't get destroyed, only on the top including bedrock blocks.
     
  4. Offline

    kahlilnc

    Yeah this should not destroy bedrock and obsidian. Until this happens I wanna add it.
     
  5. Offline

    TheGildur

  6. Offline

    lipe123

    Get a dropbox bro!

    With that ppl can wget or the autoupdater plugins can download it.

    Anyways I'm going to try this tonight!
     
    kahlilnc likes this.
  7. Offline

    IronWill1991

    Thanks, it's working perfectly. It's exactly the real pistons should do.
     
  8. Offline

    kahlilnc

    Now I love this plugin.
     
  9. Offline

    TheGildur

    Thanks a lot! :)

    Any suggestions and improvements are welcome, I wanna add something more to this plugin. I just dont know what.
     
  10. Offline

    lipe123

    Possible to add a config file so we can choose which blocks can be broken?
     
    kahlilnc likes this.
  11. Offline

    kahlilnc

    Yeah please get dropbox, the download button on the site does not work for me.
     
  12. Offline

    TheGildur

    @lipe123 Thats a good idea, I'm working on it.

    @kahlilnc Alright I did it, download is now directing to dropbox.
     
  13. Offline

    feildmaster

    Nice job on the plugin. I'll go ahead and take a look at how you did it now. ^^
     
  14. Offline

    Pencil

    Nice plugin :D Btw:

    Code:
      public void onDisable()
      {
        PluginDescriptionFile pdfFile = getDescription();
        System.out.println(pdfFile.getName() + " version: " + pdfFile.getVersion() + " is enabled.");
      }
    }
    see whats wrong there? XD
     
  15. Offline

    IronWill1991

  16. Offline

    nubpro

    LOL!
    Code:
      public void onDisable()
      {
        PluginDescriptionFile pdfFile = getDescription();
        System.out.println(pdfFile.getName() + " version: " + pdfFile.getVersion() + " is disabling.");
      }
    }
    :D
     
  17. Offline

    Pencil

    xD
    exactly ^^
     
  18. Offline

    nubpro

    Always read the Plugin Submission Format
    You have to add this tag to support your latest Recommended Version
     
  19. Offline

    HotelErotica

    Love the plugin, but like someone else said adding the ability to configure what blocks break would be awesome, plugin as it stands makes alot of my users hidden doors setup destroy itself xD Need to make it so pistons cant break each other.
     
  20. Definitely needs to be configurable as to what form of blocks it can break.

    Also:

    Make it functional:
    Smooth stone becomes cobble, cobble becomes gravel, gravel becomes sand
     
  21. Offline

    feildmaster

    I understand stone to cobble, but gravel and sand?
     
  22. Think of it as gradients.

    Cobble is one block of stone broke into big chunks of stone.
    Gravel is smaller pebbles, so crushed big chunks into littler ones.
    Sand is just tiny tiny particulates of stone, so littler ones smashed even finer.

    The transition is logical, and I, for one, can never find enough gravel.
    Also: I have a mod that allows you to craft clay from gravel, so a very useful thing for me.
     
  23. Offline

    feildmaster

    It might be logical, but not in MineCraft Logic. :D Maybe as a custom feature.

    And for your not finding enough gravel... you must not mine too much. ;p
     
  24. I make roads that are 3 gravel wide, and many many chunks in length. You'd be surprised how quickly you can go through it.

    That's ok though, another modder is adding it to his piston crush thing, so as it suits you.
     
  25. Offline

    feildmaster

    Who else has a piston crusher? -takes a look-
     
  26. Offline

    Dingmatt

    I do I'm afraid: Block Crusher v1
     
  27. Offline

    IronWill1991

    I found another bug. If the pistons placed next to each other facing opposite direction like this.
    [​IMG]
    One of the pistons gets destroyed if both were active at same time.
    [​IMG]
     
  28. Offline

    TheGildur

    After a little time of hard work I finally managed to setup my custom config.

    @IronWill1991 : fixed the bug in the new version.

    @Lunarius Haberdash : Added block conversion in the new version. Check out the config in my first post.

    @HotelErotica @kahlilnc : Added custom block protection in the new version.

    Due to the fact that I am working with java for like 2 weaks as well as with minecraft plugins I'd be thankful if you forgive me bugs and errors. Of course I'm trying to keep the quality of my plugins as high as possible but thats not always easy. So It would be great if you could report further errors and assist me with ideas on how to improve this plugin furthermore.

    Greetings,

    TheGildur
     
  29. Offline

    IronWill1991

    Thanks, the custom config is awesome. I don't see any new bugs. Actually it's pretty good for someone who is working on java only for two weeks. Bugs are normal in java, just take a look at minecraft inself. lol
     
  30. Offline

    MCManager

    this is exactly what i was looking for! thanks!
     

Share This Page