
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 1.11 KB | hits: 13 | expires: Never
ID = 14
rednet.open("right")
function compare()
for n=1,9 do
turtle.select(n)
if turtle.compare()
rednet.broadcast("Prepare thy anus")
return true
end
end
end
function mine()
for n=1,2 do
if not compare() then
turtle.dig()
turtle.up()
else
prepare()
end
end
if not compare() then
turtle.dig()
else
prepare()
end
turtle.down()
turtle.down()
end
function prepare()
turtle.down()
turtle.down()
turtle.up()
turtle.up()
turtle.back()
turtle.back()
end
while true do
id, msg = rednet.receive()
if id == ID then
if msg = "mine" then
mine()
elseif msg == "Prepare your anus" then
prepare()
elseif msg == "forwards!" then
turtle.placeDown()
if not turtle.forward() then
rednet.broadcast("I cant sire!")
end
elseif msg == "its over" then
turtle.forward()
turtle.forward()
turtle.down()
turtle.down()
mine()
elseif msg == "I cannot" then
turtle.back()
mine()
end
end
end