Advertisement
jBlume

Torch hallway Flat Dig

Jun 24th, 2023 (edited)
1,063
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.40 KB | Gaming | 0 0
  1. --Will place a torch every 13 blocks for 64 iterations
  2. tunnel=64
  3.  
  4. --Number of spaces moved before placing another torch
  5.  number=13
  6.  
  7. --Initial start
  8. turtle.up()
  9.  
  10. --Primary Loop
  11. for t=1,tunnel do
  12. turtle.placeDown()
  13.  for n=1,number do
  14.   turtle.dig()
  15.   turtle.forward()
  16.   turtle.turnLeft()
  17.   turtle.dig()
  18.   turtle.turnRight()
  19.   turtle.turnRight()
  20.   turtle.dig()
  21.   turtle.turnLeft()
  22.  end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement