Decrease block break time

Discussion in 'Plugin Development' started by rmb938, Sep 18, 2011.

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

    rmb938

    How would I go about decreasing the time it takes to break a block. Apparently onBlockDamage does not work since you can not sent the damage.
     
  2. Offline

    Vynlar

    Listen to on block damage, then start a scheduler of how long you want the break to be, and then set the block to air after that, make sure to check when you set it to air that they are still hitting the block though.
     
  3. Offline

    Afforess

    Works in development Spout builds ATM. Will be released in a couple days when 1.8 jitters settle down.

    Spoutblock.setHardess for setting a specific hardness at a x,y,z location

    OR

    MaterialData.getBlock(BLOCK_ID).setHardness - for setting the hardness of one specific type of block.
     
  4. Offline

    rmb938

    Would you need the spout client for that to work or you just need the spout plugin?
     
  5. Offline

    Afforess

    Just the plugin. However, you will need the client to see the animation properly, otherwise the block will break before the block breaking animation is complete.
     
  6. Offline

    rmb938

    Alright I will wait for a rb of spout then :)
     
Thread Status:
Not open for further replies.

Share This Page