Advertisement
CelticCoder

hostMine

Sep 3rd, 2024 (edited)
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  1. function placeTurtles(turtles, spacing)
  2.     slot = 1
  3.     for i = 1, turtles do
  4.         for i = 1, spacing + depth do
  5.             turtle.digDown()
  6.             turtle.down()
  7.         end
  8.         turtle.dig()
  9.         --replace following code with advanced search through turtle to find a computercraft turtle
  10.         if slot >= 16 then
  11.             return "out of bounds"
  12.         else
  13.             turtle.select(slot)
  14.             turtle.place()
  15.         end
  16.     end
  17.     id, workerstatus = rednet.receive() --this process should have a large time limit for worst case scenario.
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement