how do I power redstone?

Discussion in 'Plugin Development' started by CaiusTSM, Jun 7, 2011.

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

    CaiusTSM

    hello, could someone please tell me how to power redstone next to a certain block?
     
  2. I think you can do something like block.setPowered(true);
     
  3. Offline

    CaiusTSM

    I cant seem to find that function, but thanks for the help.
     
  4. Offline

    Shamebot

    No there's only getPowered().You can set the data to 0xF, but it will reset to 0 immediately, so you would need to dig in the net.minecraft code
     
  5. Sorry, I was just thinking off the top of my head. Maybe if you create a craft world variable you might be able to do something with that.
     
  6. Offline

    CaiusTSM

    ok, for now i simple made my plugin toggle a lever instead of power redstone directly because it was easier.
    Thank for the help guys!
     
  7. Offline

    Jayjay110

    good idea :)
     
  8. Offline

    CaiusTSM

Thread Status:
Not open for further replies.

Share This Page