[MECH] Block Crusher v.02 - A slight change to pistons [953]

Discussion in 'WIP and Development Status' started by Dingmatt, Jul 5, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Dingmatt

    Hi all,

    I created a small plugin for my server but thought I might see if the community was interested.

    Features:
    When extending pistons will crush blocks between themselves and a block of obsidian; if no obsidian's present then they will push blocks as normal.

    Demonstration:


    Config (open)
    settings:
    crush_blocks: [COBBLESTONE,STONE,GRASS,DIRT,GRAVEL,SANDSTONE,SAND,GLASS]
    spawn_blocks: [COBBLESTONE,COBBLESTONE,DIRT,DIRT,GRAVEL,SAND,SAND,AIR]

    Crush_Blocks: Lists the blocks the plugin can crush
    Spawn_Blocks: Lists which block spawns in the crushed block place (must have same index number as crush_blocks, AIR mean no block will spawn)

    Change Log (open)
    v0.2 - Added config to allow custom list of crush-able blocks and which block they spawn
    v0.1 - Release

    Download:
    Latest (v0.2) BlockCrusher.jar

    Credits:
    @feildmaster for the block facing code.
    @krinsdeath for the config file code.

    Is anyone interested in this sort of plugin or has it been done before?
    Suggestions and comments welcome. :)
     
  2. Offline

    TheGildur

  3. Offline

    Dingmatt

  4. I really like the way this one uses Obsidian. If you can make it do the following:

    Crushed:
    Smooth stone becomes cobble
    Cobble becomes gravel
    gravel becomes sand

    Then I'll definitely use it. Question, can it be set up with the piston above, and the obsidian below? Or does it have to be side by side?
     
  5. Offline

    Dingmatt

    I like that idea how about I add part of the config which would let you choose what gets crushed and what its crushed into?
    Currently it'll work with any configuration of piston and obsidian as long as there one block apart.
     
  6. Hot damn yes Sir! I'll keep checking back until it's done!

    I'm combining this with the 'gravel to clay' mod that's elsewhere on the forums. I now have a clay factory!
     
  7. Offline

    Dingmatt

    Released version 0.2 for download, see first post.
     
  8. Offline

    feildmaster

    Very nice way to implement the pistons!
     
  9. Offline

    Jaker232

    Nice plugin!
     
  10. Offline

    Avous

    @Dingmatt

    could we get a launch entity/damage players if they are crushed? as in we can set a piston "strength" and it will launch that player items or mobs that far as we have in the config? Elevators FTW.
     
  11. Offline

    4am

    It would be good if you could get the piston opening animation to fire when crushing - perhaps if you destroy the block and then allow the piston to open? Is there a way to trigger a piston instead of just setting it to the open position, or is it just the way it has to be right now?
     
  12. Offline

    HotelErotica

    @Dingmatt

    Just finished my CobbleStone Generator with your plugin, Loving it :D

     
  13. Offline

    Dingmatt

    I don't think its possible through bukkit.


    I'm afraid thats what i'm already doing, I don't manipulate the piston in any way.
    I'm looking into a way of replaying the animation but i'm not sure its something bukkit can do.


    That's so cool, mind if i use it as a demo vid?

    I've just submitted the plugin (Block Crusher v1), the code is the same as v0.2.
    Any further discussion should be in that thread, cheers for everyone's help.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
Thread Status:
Not open for further replies.

Share This Page