Solved Torch`s values to a Stick.

Discussion in 'Plugin Development' started by Growl, Apr 23, 2014.

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

    Growl

    Hi guys! I really can`t find an answer. So please help me!
    I need to make so that if Player clicked on the block there would place a torch. It is simple. But if the block, which were clicked, was something as leaves or grass? The torch would drop as an item...
    That`s my problem(
     
  2. Offline

    stink123456

    Search for a blockupdate event and try canceling that.

    -----------------------------------------------------------
    Heroes of exorath, best game ever!
     
  3. Offline

    Gamecube762

    PlayerInteractEvent()
    rclick air || rclick block
    if clicked block = blah
    place torch/dont place
     
  4. Offline

    Growl

    Gamecube762
    Ummm.. I don`t get. What`s mean "if clicked block = blah"??? And how can I do it?
     
  5. Offline

    Wizehh

    He gave you psuedocode, and I presume that 'blah' can mean any block that you want.
     
  6. Offline

    Growl

    Ok.. I thought there are any other variants of this problem..
     
Thread Status:
Not open for further replies.

Share This Page