Solved Getting NBT of block

Discussion in 'Plugin Development' started by Gorbit99, Nov 25, 2015.

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

    Gorbit99

    I want to check, if an end portal frame is activated (has an eye in it) or not. How can I do that?
     
  2. Offline

    megamichiel

    @Gorbit99
    Block#getData() & 0x4 != 0
    The 3rd bit of the block data specifies if the block contains an ender eye, no need to use NBT.
    source
     
  3. Offline

    Gorbit99

    Thank you, that helped a lot
     
  4. Offline

    Scimiguy

    IF your question is answered, please edit the title of this thread and mark it as solved
     
Thread Status:
Not open for further replies.

Share This Page