Check for blocks above a broken one?

Discussion in 'Plugin Development' started by Eliteninja42, Mar 8, 2014.

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

    Eliteninja42

    Hello,
    How would I check to see what type of block is above a block that a player broke so if it is a certain block it will do whatever.

    Thanks.

    Anyone?

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

    werter318

    BlockBreakEvent, event.getBlock().getRelative(BlockFace.UP).getType();
     
  3. Offline

    Eliteninja42

Thread Status:
Not open for further replies.

Share This Page