Advertisement
TinaTheDerpy

stairs

Sep 10th, 2023 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | Gaming | 0 0
  1. local x = 1
  2.  
  3. function reverse()
  4.    turtle.turnLeft()
  5.    turtle.turnLeft()
  6. end
  7.  
  8. term.write("Depth = ")
  9. x = tonumber(read())
  10.  
  11. for i = 1,x do
  12.    turtle.dig()
  13.    turtle.forward()
  14.    turtle.digUp()
  15.    turtle.up()
  16.    turtle.digUp()
  17.    turtle.up()
  18.    turtle.digUp()
  19.    turtle.down()
  20.    turtle.down()
  21.    turtle.digDown()
  22.    turtle.down()
  23. end
  24.  
  25. reverse()
  26.  
  27. for i = 1,x do
  28.    turtle.up()
  29.    turtle.forward()
  30. end
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement