How to detect Runes?

Discussion in 'Plugin Development' started by Raeon, May 15, 2011.

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

    Raeon

    Hello!
    I need to know how I can make my plugin detect specific runes, and also the right-click event (see EDIT).

    Here is an example rune:
    [air][cobble][air]
    [cobble][goldore][cobble]
    [air][cobble][air]

    Whenever the user right-click the gold ore, my plugin must check wether it is surrounded by the cobblestone blocks. I know it is possible, but I don't know how. How can I do this?

    ||=====|| EDIT ||=====||
    onPlayerInteract(event) is the event called whenever a player right-clicks a block. Is this correct?

    Thanks for your help!
    - Raeon
     
Thread Status:
Not open for further replies.

Share This Page