Advertisement
ramdor

Lighthouse

Jan 7th, 2013
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3.  
  4. print("Lighthouse Ramdor 2013")
  5.  
  6. local nL = 0
  7. local nWire
  8.  
  9. while(true) do
  10.   term.setCursorPos(1,4)
  11.  
  12.   nWire = (2 ^ nL)
  13.  
  14.   term.write(nWire.."    ")
  15.    
  16.   redstone.setBundledOutput("back", nWire)
  17.  
  18.   nL = nL + 1
  19.  
  20.   if(nL>7) then
  21.     nL = 0
  22.   end
  23.  
  24.   os.sleep(1)
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement