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

    ch96li

    OMGWTFBBQ YES!!!
     
  2. Offline

    lipe123

    Please add a command to reload the config file in game? It's pretty bad to do a /reloadall or server restart just to see if it works properly.

    The cobble -> sand thing kinda messed up my machine so i did: - 4: 4 1 and below that i added one for smooth stone and after that just got [severe] errors :(
     
  3. Offline

    TheGildur

    I will add a command to reload the config ingame.

    And it would be helpfull if you could supply the complete server message. Right now I'd just suggest that you didnt leave a blank line at the end of the config as it is mandatory for it to work.
     
  4. Offline

    feildmaster Retired Staff

    @TheGildur
    Change onBlockPhysics to this : (or just add "if(event.isCancelled()) return;" to the top of it, if you've changed the code)
    Code:
    public void onBlockPhysics(BlockPhysicsEvent event) {
        if(event.isCancelled()) return;
        Block block = event.getBlock();
        BlockFace blockFace = getPistonDir(block, Material.PISTON_EXTENSION);
        if (blockFace != BlockFace.SELF) {
          Block oppositeBlock = block.getFace(blockFace.getOppositeFace(), 1);
          if (((oppositeBlock.getType() == Material.PISTON_STICKY_BASE) || (oppositeBlock.getType() == Material.PISTON_BASE)) &&
            (oppositeBlock.getBlockPower() > 0) && (block.getType() != Material.PISTON_EXTENSION) && (block.getType() != Material.PISTON_MOVING_PIECE) && (block.getType() != Material.PISTON_EXTENSION) && (block.getType() != Material.PISTON_STICKY_BASE) && (isBlockDestroyable(block))) {
            block.getWorld().dropItemNaturally(block.getLocation(), getItemDrop(block.getTypeId()));
            block.setType(Material.AIR);
          }
        }
      }
     
  5. Offline

    Plague

    changelog has to show 2 last versions without a spoiler
     
  6. Offline

    xenofixus

    Just wanted to throw out a quick bug report. I used this to >attempt< to make a cobblestone generator's crusher and it would keep jamming up. The reason being was because every once in a while the block would not be crushed and it would be pushed in front of the second piston instead. A new block from the cobblestone generator and then it would just clog up completely. I could not reproduce it on demand but letting it run for longer than 5 minutes usually made it happen.

    You are also missing the changelog for 1.2 from your main post (assuming you actually have 1.2 uploaded and didn't just change the title).
     
  7. Offline

    Jimmy

    Show Spoiler
    at net.minecraft.server.World.k(World.java:451)
    at net.minecraft.server.World.applyPhysics(World.java:426)
    at net.minecraft.server.BlockRedstoneWire.g(BlockRedstoneWire.java:49)
    at net.minecraft.server.BlockRedstoneWire.doPhysics(BlockRedstoneWire.ja
    va:286)

    Help?

    Config:
    Show Spoiler
    //Check out http://www.minecraftwiki.net/wiki/Data_values for the data-values. !IMPORTANT! Keep in mind to supply the amount always. Use 1 if you want just 1 drop.:
    protected:
    - 7
    - 49
    conversion:
    - 4: 4 2
    - 35:13 264
     
  8. Offline

    codename_B

    Please update the title to the latest RB [1000]
     
  9. Offline

    feildmaster Retired Staff

    You have a space on the first conversion line. -4:4 2
     
  10. Offline

    Plague

    inactive then
     
  11. Offline

    IronWill1991

    I don't know why this plugin is not very popular. It makes pistons work exactly like the mod. It still works with #1185 thanks to non-changing Bukkit API.
     
  12. Offline

    Morrison

    hi,

    this mod is really cool, but i´ve got a little problem with the conversion, i want to add 2 or more different options:

    i want to get clay from cobblestone, arrows from wooden planks, and so on, but i only get it working with 1 option, is there a way to get more options working at the same time?

    i tried with this cfg:

    conversion:
    - 4: 82 5
    - 5: 262 20

    even tried without space, other numbers and leaving a blank line at the end, but i cant get it working...

    would be very nice if you could help me and tell me what do i have to do to get it working with 2 or more conversion- options.

    thx
     
  13. Offline

    juhannusjukka

    when will it work on 1.2.3? :/
     
  14. Offline

    DEATHSKULL37

    i think that you should make it so u can type in /squish disable (AND /squish enable) and left-click the 2 pistons that you want to be "squishing pistons" so that piston doors dont break themselves. Oh, and if you want to add something else to the plugin like how you said in one of your comments, you should make a certain game mechanic where when a chest is placed ontop of/next to a piston, that the piston (when activated) will place that block down. :) great plugin though
     

Share This Page