Advertisement
Nunavailabul

stair

Sep 17th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.37 KB | None | 0 0
  1.  
  2. --http://turtlescripts.com/project/gjdgy1-Staircase-Maker
  3.  
  4.  
  5. for i=1,70 do
  6.   turtle.digDown()
  7.   turtle.down()
  8.   turtle.turnRight()
  9.   if turtle.detect()==false then
  10.   turtle.select(1)
  11.   turtle.place()
  12.   end
  13.   turtle.turnLeft()
  14.   turtle.turnLeft()
  15.   if turtle.detect()==false then
  16.   turtle.select(1)
  17.   turtle.place()
  18.   end
  19.   turtle.turnRight()
  20.   turtle.select(1)
  21.   turtle.placeDown()
  22.   turtle.dig()
  23.   sleep(.4)
  24.   while turtle.detect()==true do
  25.   turtle.dig()
  26.   sleep(.4)
  27.   end
  28.   turtle.forward()
  29.   turtle.turnRight()
  30.   if turtle.detect()==false then
  31.   turtle.select(1)
  32.   turtle.place()
  33.   end
  34.   turtle.turnLeft()
  35.   turtle.turnLeft()
  36.   if turtle.detect()==false then
  37.   turtle.select(1)
  38.   turtle.place()
  39.   end
  40.   turtle.turnRight()
  41.   turtle.digUp()
  42.   sleep(0.4)
  43.   while turtle.detectUp()==true do
  44.   turtle.digUp()
  45.   sleep(0.4)
  46.   end
  47.   turtle.up()
  48.   turtle.turnRight()
  49.   turtle.turnRight()
  50.   if i%6==0 then
  51.   turtle.select(2)
  52.   turtle.place()
  53.   end
  54.   turtle.turnLeft()
  55.   if turtle.detect()==false then
  56.   turtle.select(1)
  57.   turtle.place()
  58.   end
  59.   turtle.turnLeft()
  60.   if turtle.detect()==false then
  61.   turtle.select(1)
  62.   turtle.place()
  63.   end
  64.   turtle.turnLeft()
  65.   if turtle.detect()==false then
  66.   turtle.select(1)
  67.   turtle.place()
  68.   end  
  69.   turtle.turnRight()
  70.   turtle.down()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement