Posted 27 September 2013 - 04:33 PM
I'm new to CC2 and i don't really know whats wrog with it. Every time i run it I get a cocoa:20: attempt to call nill error.
I know it's ugly and it can be more compact:D but I don't know how to do it:D.
Thanks in forward!
while true do
turtle.select(1)
turtle.place(1)
sleep(1)
turtle.select(2)
turtle.place(2)
sleep(1)
turtle.dig()
turtle.select(3)
turtle.transferTo(1)
turtle.select(3)
turtle.turnRight()
turtle.drop()
turtle.turnLeft()
turtle.turnLeft()
turtle.select(2)
turtle.suck(1)
turtle.select(3)
turtle.drop()
turtle.turnRigh(1)
end
I know it's ugly and it can be more compact:D but I don't know how to do it:D.
Thanks in forward!