MastaC729

Sugar Cane Farm Autoclock

Dec 17th, 2015
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.25 KB | None | 0 0
  1. a=1
  2.  
  3. while true do
  4.   print(a)
  5.   if a >= 60 then
  6.     print("Activating pistons...")
  7.     redstone.setOutput("back", true)
  8.     sleep(2)
  9.     print("Deactivating pistons")
  10.     redstone.setOutput("back", false)
  11.     a=0
  12.   end
  13.   a = a+1
  14.   sleep(1)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment