Find side of block that was hit by a player

Discussion in 'Plugin Development' started by aranian, Apr 7, 2011.

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

    aranian

    I'm trying to find the side of a block that was just hit by the player. I can't find a way to easily get this info. I could work with the position of the block and the player position and his view direction, but that seems pretty complex for this problem?
     
  2. Offline

    MrChick

    PlayerInteractEvent.getBlockFace()
     
    aranian likes this.
  3. Offline

    aranian

    Thanks! I was using a BlockDamageEvent previously and was wondering why there was no method like that...
     
Thread Status:
Not open for further replies.

Share This Page