Advertisement
Muzze77

Turtle Autocraft

Jan 9th, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.99 KB | None | 0 0
  1. -----------------------------------------------------
  2. -- Turtle SmoothStoneCraft-- (c) Muzze77 ------------
  3. -----------------------------------------------------
  4. local schlaf = 0.5
  5. local function cut()
  6.         sleep(schlaf)
  7.         shell.run("clear")
  8.         sleep(schlaf)
  9. end
  10. ----------------------------------------
  11. local function suck()
  12.         turtle.select(num)            
  13.         sleep(0.5)
  14.         turtle.suckUp()
  15.         slot = turtle.getItemCount(num)
  16.         slot = slot-1
  17.         sleep(1)
  18.         turtle.dropUp(slot)
  19.         sleep(1)
  20. end
  21. back = rs.getInput("back")
  22. ----------------------------------------
  23. item = 0
  24. while back == true do
  25.     print("Crafted")
  26.     num = 2
  27.     suck()
  28. -------------------
  29.     num = 5
  30.     suck()
  31. ------------------
  32.     num = 6
  33.     suck()
  34. ------------------
  35.     num = 9
  36.     suck()
  37.     turtle.select(16)
  38.     turtle.craft()
  39.     sleep(0.2)
  40.     turtle.dropDown()
  41.    
  42.     item = item+1
  43.     print(item)
  44.     cut()
  45. end
  46. print("no Signal")
  47. cut()
  48. shell.run("clear")
  49. shell.run("reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement