Delet Placed Lava From Lava Bucket ?

Discussion in 'Plugin Development' started by Soxra, Apr 27, 2011.

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

    Soxra

    Hi!
    I need help !
    I want delet the placed lava from a lava bucket. I have a Player_Interact event and when player right click a block with a lava bucket, the player get kicked and the lava SHOULD be removed. But i have event.getClickedBlock().setTypeId(0) = The block under the lava is removed ... what should i do?
    Thanks! :)
    Sorry for my englisch im german
     
  2. Offline

    Dreadreaver

    getClickedBlock().getRelative(0,1,0).setTypeId(0);

    viel Erfolg
     
  3. Offline

    Sammy

    Why don't you just limit the use of lava bukket:

    325 145 Bucket
    326 146 Water bucket
    327 147 Lava bucket

    When a player right clicks check if the item in hand is the 327 and just cancel the event
     
  4. Offline

    Dreadreaver

    that would be a nice alternative ;)
     
  5. Offline

    Soxra

    Yes ... Right :D Thanks
     
Thread Status:
Not open for further replies.

Share This Page