Solved Check Block Sign is on

Discussion in 'Plugin Development' started by Mudkiper202, Jul 27, 2016.

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

    Mudkiper202

    I need to check if a sign in signchangeevent is placed on a chest then check if chest has stuff in playerinteractevent

    i know the right click and check the material i just need to check about the chest.
     
  2. Offline

    SuperSniper

    Add/Subtract coordinates around the sign to see if there are any blocks right next to it, if there are, it was probably placed on that block
     
  3. Offline

    Mudkiper202

    How do i check if the coords are a chest
     
  4. @Mudkiper202
    If you have a Location object, you can do ".getBlock()" to get the type, and from that check the Material.
     
Thread Status:
Not open for further replies.

Share This Page