Solved Block

Discussion in 'Plugin Development' started by Xogos1997, Dec 18, 2015.

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

    Xogos1997

    my question is simple.

    can i set speed breaking block on hand?

    example

    Code:
    player.setBreakSpeed(1.5f);
    
     
  2. Offline

    mcdorli

    add a player haste, that's the easiest way of doing it.
     
  3. Offline

    Xogos1997

    i try it

    normal without pition is 3 sec breaking wool. if i use potion i break wool 2 sec... :D

    optimal i need 1,5 sec :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 18, 2015
  4. Offline

    Lordloss

    Use a higher potion modifier?
     
  5. Offline

    Xogos1997

    i use level IV if i use level V you cant see your arm. :D
     
  6. Offline

    Lordloss

    Uhm okay.. For what do you need this? Maybe we find a different solution
     
  7. Offline

    Xogos1997

    i need this for breaking wool. level one you breaking speed normal and level two you breaking speed and next level 2*speed. but you can only breaking wool with hand

    but okey.. 2 sec is too okay. i have next question its possible create block for only client?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 18, 2015
  8. Offline

    mcdorli

    create a bukkit runnable, each tick, check if the player still breaks the wool, after 1.5 secs, break the wool yourself
    player.sendBlockChange or something

    Edit: yup Player#sendBlockChange(Location loc, int material, byte data)
     
  9. Offline

    Xogos1997

    runnable no. i need other way but if not exist we can end this topic.
     
  10. Offline

    timtower Administrator Administrator Moderator

  11. Offline

    Xogos1997

    but thx for this. i change solved for this. you help me with potion and this. :D
     
Thread Status:
Not open for further replies.

Share This Page