Advertisement
Guest User

reaktorB

a guest
Sep 21st, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.23 KB | None | 0 0
  1. print("Warte auf Befehle")
  2. local reactor
  3. reactor=peripheral.wrap("top")
  4. while true do
  5.  if rs.GetInput("bottom", true) then
  6.  reactor.setActive(true)
  7.  
  8.  elseif rs.GetInput("bottom", false) then
  9. reactor.setActive(false)
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement