Posted 30 May 2012 - 05:23 AM
This is my basic path finder program, it follows the path you set.
Code:
How to setup a track:
Code:
local x = 0
while true do
turtle.turnLeft()
if turtle.detect() then
if turtle.compare() then
turtle.dig()
turtle.forward()
turtle.turnLeft()
turtle.turnLeft()
turtle.place()
x = 0
else
x = x+1
end
else
x = x+1
end
if x==6 then break end
end
How to setup a track:
- Put a block in the first slot
- Create a straight line of the same block you put in the first slot
- ?????
- Profit!
- Now mess with what you did above.