Quote
i = 0
repeat
turtle.dig()
turtle.forward()
turtle.digUp()
turtle.up()
turtle.dig()
turtle.digUp()
turtle.forward()
turtle.digUp()
turtle.turnLeft()
i = i + 1
until i > 10
Posted 09 January 2013 - 09:51 PM
Quote
Posted 09 January 2013 - 10:02 PM
while not turtle.forward() do turtle.dig() end while not turtle.up() do turtle.digUp() end
if not turtle.dig() then turtle.attack() end
Posted 10 January 2013 - 07:43 AM
function gravelCheck()
while not turtle.forward() do
turtle.dig()
if not turtle.dig() then
turtle.attack()
end
end
while not turtle.up() do
turtle.digUp()
end
end
Posted 10 January 2013 - 07:55 AM
local setHeight = 10 -- Amount of blocks turtle should go up local cHeight = 0 -- Current height of Turtle while cHeight ~= 11 do if not turtle.dig() then turtle.attack() -- Attack forward if cant dig forward turtle.dig() turtle.forward() else turtle.forward() -- Move forward if succeeded end if not turtle.digUp() then turtle.attackUp() -- Attack up if cant dig up turtle.digUp() turtle.up() else turtle.up() end cHeight = cHeight +1 end
Posted 10 January 2013 - 08:29 AM
turtle.turnLeft()after the "forward" in the if part or in the else part? by the way thanks for your guys help and patience while i work this out!
Posted 10 January 2013 - 08:50 AM
local height = 10 function forward() while not(turtle.forward()) do turtle.dig() turtle.attack() sleep(0.25) end end function up() while not(turtle.up()) do turtle.digUp() turtle.attackUp() end end function digUp() while turtle.detectUp() do turtle.digUp() sleep(0.25) end end for i = 1, height do turtle.place() up() digUp() forward() turtle.turnRight() end
Posted 10 January 2013 - 09:00 AM
Quote
Posted 10 January 2013 - 09:02 AM
xInDiGo, on 10 January 2013 - 09:00 AM, said:
Quote
Posted 10 January 2013 - 09:37 AM
crazyguymgd, on 10 January 2013 - 09:02 AM, said:
Posted 10 January 2013 - 09:38 AM
xInDiGo, on 10 January 2013 - 09:37 AM, said:
crazyguymgd, on 10 January 2013 - 09:02 AM, said:
0 members, 1 guests, 0 anonymous users