Guest User

cycle

a guest
Aug 13th, 2013
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local tArgs={...}
  2. if tArgs[1] == nil then tArgs[1] = 1 end
  3.  
  4. local j = 0
  5.  
  6. function moveon()
  7.    if rednet.recieve() then
  8.       (j+1)
  9.    else
  10.       sleep(1)
  11. end
  12.  
  13. for i = 1, tArgs[1] do
  14.    shell.run("frameMove")
  15.    shell.run("dig")
  16.    print("Iteration: "..i)
  17.       for j = 0,16 do
  18.          print(i)
  19.       end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment