Advertisement
Andersfc

Turtle-Hopper-Cant-Be-Easier

Jan 19th, 2013
948
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. while true do
  2.    a = 0
  3.    b = 0
  4.    for i = 1, 16 do
  5.       turtle.suckUp()
  6.       a = a+1
  7.       sleep(0.5)  
  8.       if turtle.getItemCount(a) > b then
  9.          turtle.select(a)
  10.          while turtle.dropDown() == false do
  11.             term.setCursorPos(1, 1)
  12.             print("Master, the buffer below me is full!")
  13.             sleep(3)
  14.             shell.run("clear")
  15.          end
  16.       end
  17.    end
  18.    shell.run("clear")
  19.    term.setCursorPos(1, 1)
  20.    print("I am currently working as a hopper")
  21.    a = 0
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement