-- ################################
-- Stone Generator with a SilkTouch Turtle
-- version 0.1
-- http://hevohevo.hatenablog.com/
-- This Program requires a SilkTouch Mining Turtle by "More Turtles" mod
-- See CC forum.
-- http://www.computercraft.info/forums2/index.php?/topic/16465-mc164152-more-turtles-v112/
local p = peripheral.wrap("right")
assert((p and p.digSilkTouch), "required: SilkTouch Turtle")
for i=1,16 do
turtle.select(i)
turtle.refuel()
end
local fuel = turtle.getFuelLevel()
while fuel > 0 do
if turtle.detect() then
p.digSilkTouch()
turtle.dropDown()
fuel = fuel - 1
print(fuel)
else
turtle.dig()
turtle.dropDown()
end
os.sleep(1.5)
end