AdditionalPylons

staircase_shaft.lua

Jun 21st, 2026 (edited)
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. local function digcol()
  2.     turtle.digUp()
  3.     turtle.digDown()
  4. end
  5. local function diggo()
  6.     turtle.dig()
  7.     turtle.forward()
  8. end
  9. local r = false
  10. local function rotate()
  11.     if r then turtle.turnLeft()
  12.     else turtle.turnRight() end
  13. end
  14. local function digstep()
  15.     for i=1,2 do
  16.         digcol()
  17.         diggo()
  18.     end
  19.     rotate()
  20.     digcol()
  21.     turtle.down()
  22.     diggo()
  23.     rotate()
  24.     r=not r
  25. end
  26. diggo()
  27. rotate()
  28. r=not r
  29. while true do
  30.    digstep()
  31. end
  32.    
  33.  
Advertisement
Add Comment
Please, Sign In to add comment