Advertisement
giintv

Reactor Client

Aug 24th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. reactor = peripheral.wrap("bottom")
  2. rednet.open("front")
  3. while true do
  4. id, msg = rednet.receive()
  5.     if msg == "start" then
  6.         print("started")
  7.         print(reactor.getHeat())
  8.         redstone.setOutput("bottom", true)
  9.     elseif msg == "stop" then
  10.         print("stopped")
  11.         print(reactor.getHeat())
  12.         redstone.setOutput("bottom", false)
  13.     end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement