Throw away a mob

Discussion in 'Plugin Development' started by xMalwarez, Sep 25, 2014.

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

    xMalwarez

    Hello,

    I'd like to do a system by detecting right-click on an object (what I can do) but I would also launch a monster block where I click.

    I tried several ways but I do not.

    P.S : Sorry for my english

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 10, 2016
  2. Offline

    fireblast709

    You need to listen to the PlayerInteractEvent. Then (I assume) you want to check if the Action is Action.RIGHT_CLICK_BLOCK (or Action.RIGHT_CLICK_AIR in combination with some ray tracing).
     
  3. It is PlayerInteractEntityEvent.
     
  4. You are confusing me :( In the title you said throw away mob but in the text you said
    what do you mean??
     
Thread Status:
Not open for further replies.

Share This Page