Advertisement
Guest User

dandelifeon

a guest
Oct 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. redstone.setOutput("top",true)
  2. while true do
  3.   write(tostring(redstone.getInput("right")).." ")
  4.   write(tostring(redstone.getInput("left")).."\n")
  5.   sleep(1)
  6.   if redstone.getInput("right") == true then
  7.     write("Redstone signal received, waiting... \n")
  8.     for i=1,30 do    
  9.       sleep(1)
  10.       write(i.."\n")
  11.     end
  12.     --redstone.setOutput("top",false)
  13.     redstone.setOutput("right",true)
  14.     sleep(1)
  15.     redstone.setOutput("right",false)
  16.     --sleep(1)
  17.     --redstone.setOutput("top",true)
  18.   end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement