If their is redstone on a block

Discussion in 'Plugin Development' started by micrlink, Jun 20, 2013.

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

    micrlink

    If their is a redstone wire on a block,

    Block.getState().getType() == Material.REDSTONE
    ---and---
    Block.getType() == MAterial.REDSTONE
    Didn't work
     
  2. Offline

    foodyling

    Were you high when you made this? Please be more descriptive.
     
  3. Offline

    micrlink

    hows that
     
  4. Offline

    bitWolfy

    foodyling It is trying to communicate! What should we do?

    micrlink I am going to assume that you are trying to check if there is a redstone wire placed on top of a block. The material you are looking for is actually called Material.REDSTONE_WIRE.
     
    foodyling likes this.
  5. Offline

    micrlink

    Thank you!!! Block or block state??
     
  6. Offline

    bitWolfy

Thread Status:
Not open for further replies.

Share This Page