Set A Block Redstone Powered

Discussion in 'Plugin Development' started by 0verFull, Jun 3, 2020.

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

    0verFull

    Hi guys,

    I need your help. I didn't find how to set a block redstone powered. There already are threads on web, but there are too old and they not work currently.
    Someone can help me ?

    Code:
    Block b = block.getRelative(BlockFace.NORTH);
    if(condition...)  {
    //set b powered
    }

    Thanks for your help
     
  2. Offline

    Niv-Mizzet

    @0verFull Why do you need to power this block? Is it a piston or something? Do you need to use it to power a different redstone component?
     
  3. Online

    KarimAKL

  4. Offline

    0verFull

    Yes I need to use it to power another redstone component
     
Thread Status:
Not open for further replies.

Share This Page