Advertisement
jBlume

1x2 tunnel with light

Jun 25th, 2023
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Place stack of torches in Slot 1
  2.  
  3. --Will place a torch every 13 blocks for 64 iterations
  4. tunnel=64
  5.  
  6. --Number of spaces moved before placing another torch
  7.  number=13
  8.  
  9. --Initial start
  10. turtle.digUp()
  11. turtle.up()
  12.  
  13. --Main Program
  14. for t=1,tunnel do
  15.  turtle.placeDown()
  16.  for n=1,number do
  17.   turtle.dig()
  18.   turtle.forward()
  19.   if turtle.detectDown() then
  20.    turtle.digDown()
  21.   end
  22.  end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement