Tinyboss

Single stack cobble generator, v1

Sep 13th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.81 KB | None | 0 0
  1.     start=os.clock()
  2.  
  3.     t=turtle
  4.  
  5.     -- get the buckets from the chest:
  6.     t.select(1)
  7.     t.suck()
  8.     t.refuel()
  9.     t.suck()
  10.     t.suck()
  11.  
  12.     -- build the farm:
  13.     t.turnLeft()
  14.     t.digDown()
  15.     t.forward()
  16.     t.digDown()
  17.     t.turnLeft()
  18.     t.down()
  19.     t.dig()
  20.     t.forward()
  21.     t.digDown()
  22.     t.turnLeft()
  23.     t.dig()
  24.     t.down()
  25.     t.dig()
  26.     t.turnRight()
  27.     t.dig()
  28.     t.select(1)
  29.     t.place()
  30.     t.turnLeft()
  31.     t.forward()
  32.     t.turnRight()
  33.     t.dig()
  34.     t.drop()
  35.     t.up()
  36.     t.turnRight()
  37.     t.turnRight()
  38.     t.select(2)
  39.     t.place()
  40.     t.dropDown()
  41.     t.turnLeft()
  42.  
  43.     t.select(1)
  44.     for i=1,32 do
  45.       sleep(1)
  46.       t.forward()
  47.       t.digDown()
  48.       sleep(1)
  49.       t.back()
  50.       t.digDown()
  51.     end
  52.  
  53.     -- deposit the cobble into the chest:
  54.     t.up()
  55.     t.turnRight()
  56.     t.forward()
  57.     t.drop(64)
  58.  
  59.     elapsed = os.clock()-start
  60.     print("Finished in "..elapsed.." seconds.")
Advertisement
Add Comment
Please, Sign In to add comment