event on Right Click Entity?

Discussion in 'Plugin Development' started by Afforess, Apr 10, 2011.

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

    Afforess

    Is there an event (or any way) to detect when an entity has been right clicked on by the user? Don't suggest Player_Interact, it only fires on right clicking blocks.

    The wolf seems to update then, but I can't seem to figure out how it get's sent the initial data, even looking at the MCP source for the server.
     
  2. Offline

    fullwall

    Well, the best method that I've found so far is to use craftbukkit code, which even then is still a little inaccurate. I posted the code snippet in your simplebarter thread if you want it. I'll do some research into this now, as knowing exactly where the right click gets called would be useful...
     
  3. Offline

    Edward Hand

  4. Offline

    fullwall

    I submitted a pull request to bukkit adding a PLAYER_INTERACT_ENTITY event (there is a packet that gets sent once a player right clicks an entity).
     
Thread Status:
Not open for further replies.

Share This Page