
Untitled
By: a guest on
Jul 29th, 2012 | syntax:
Lua | size: 0.35 KB | hits: 19 | expires: Never
function placeBlock(side)
if side == 1 then
turtle.turnLeft()
else
turtle.turnRight()
end
if turtle.detect() then
turtle.dig()
end
turtle.place()
if side == 1 then
turtle.turnRight()
else
turtle.turnLeft()
end
end
while not turtle.detect() do
turtle.up()
placeBlock(1)
for a=0, 3 do
turtle.forward()
end
end