Advertisement
Guest User

startup

a guest
Dec 17th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. function on()
  2.         if redstone.getInput("left") == true then
  3.                       redstone.setOutput("right",false)
  4.                       print("on")
  5.         else
  6.                       redstone.setOutput("right",true)
  7.                       print("off")
  8.         end
  9. end
  10.  
  11. while true do
  12.  sleep(5)
  13.  
  14.   on()
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement