Interacting with fake blocks

Discussion in 'Plugin Development' started by James0897, Jan 30, 2014.

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

    James0897

    I would like the PlayerInteractEvent() to be called when I right click on a block that has been changed with player.sendBlockChange(). The problem is, because it's not a real block, the block disappears and the PlayerInteractEvent() is never called.

    I understand that it is possible to do this (or get the same effect for my plugin) with the use of packets but I have zero knowledge of packets, so any help and examples of coding is appreciated.

    Thanks in Advance.
     
  2. Offline

    Retherz_

    Right click air?
     
  3. Offline

    James0897

    No it's a null block.

    Is it possible to intercept the packet that changes the block back to air when its clicked?

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

    _Filip

    It is not possible with packets. The blocks are client side.
     
Thread Status:
Not open for further replies.

Share This Page