Advertisement
Guest User

startup

a guest
Sep 20th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. while true do
  4.   command = read()
  5.   if command == "light on" then
  6.     redstone.setOutput("bottom",true)
  7.     term.clear()
  8.     term.setCursorPos(1,1)
  9.     write("Lights are now on")
  10.     term.setCursorPos(1,2)
  11.   end
  12.   if command == "light off" then
  13.     redstone.setOutput("bottom",false)
  14.     term.clear()
  15.     term.setCursorPos(1,1)
  16.     write("Lights are now off")
  17.     term.setCursorPos(1,2)
  18.   end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement