Advertisement
TinaTheDerpy

place_Stairs

Dec 15th, 2024 (edited)
8
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 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. reverse()
  12. turtle.back()
  13. for i = 1,x do
  14.     turtle.placeDown()
  15.     turtle.back()
  16.     turtle.down()
  17. end
  18.  
  19. for i = 1,x do
  20.     turtle.up()
  21.     turtle.forward()
  22.  end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement