This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Dhuman3's profile picture

Turtle Strip Mining Script

Started by Dhuman3, 27 June 2013 - 08:04 AM
Dhuman3 #1
Posted 27 June 2013 - 10:04 AM
So this is my first script, the turtle will strip mine at any level I would recommend when placing multiple turtles to place them like this:



You must place an ender chest in the first slot of the turtle:


pastebin get 4RJxK2c6 BetterTunneler

Code:

for i=1, 500 do
turtle.dig()
turtle.turnRight()
turtle.dig()
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
turtle.turnRight()
turtle.digUp()
turtle.up()
turtle.dig()
turtle.turnRight()
turtle.dig()
turtle.turnLeft()
turtle.turnLeft()
turtle.dig()
turtle.down()
turtle.turnRight()
turtle.forward()
for y=2, 16 do
turtle.getItemCount(y)
  if turtle.getItemCount(y) > 60 then
  turtle.digUp()
  turtle.up()
  turtle.select(1)
  turtle.placeDown()
  for n=2,16 do
  turtle.select(n)
  turtle.dropDown()
  end
  turtle.select(1)
  turtle.digDown()
  turtle.down()
end
end
end

This is the first program I've created so its not very complex! Thanks for reading!
Apfeldstrudel #2
Posted 13 July 2013 - 05:08 PM
Put code in spoilers and indent :P/>