Posted 02 October 2012 - 01:20 PM
Hi guys,
I just started using ComputerCraft last week, and i tryed now to program my own wheat farm program, but It isn´t even starting.
I don´t know how many mistakes i got, but please help me, pros :(/>/>
Thanks for help!
Here what i tryed to do:
Noob
I just started using ComputerCraft last week, and i tryed now to program my own wheat farm program, but It isn´t even starting.
I don´t know how many mistakes i got, but please help me, pros :(/>/>
Thanks for help!
Here what i tryed to do:
function Tanken()
benzin = turtle.getFuelLevel()
if benzin < 5 then
turtle.select(16)
turtle.refuel(1)
turtle.select(1)
end
function Ernten()
turtle.digDown()
turtle.select(1)
turtle.placeDown()
end
function Auswerfen()
slot= 2
while slot < 16 do
turtle.select(slot)
turtle.dropDown()
slot = slot+1
end
länge = 10+0
breite = 8+0
c = länge+1
while breite > 0 do
while länge > 0 do
Tanken()
Ernten()
länge = länge-1
turtle.forward()
end
breite = breite-1
länge = 10+0
Tanken()
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.forward()
while länge > 0 do
Tanken()
Ernten()
länge = länge-1
turtle.forward()
end
breite = breite-1
länge = 10
Tanken()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.forward()
end
Tanken()
turtle.turnRight()
while c > 0 do
Tanken()
turte.forward()
c = c-1
end
Tanken()
turtle.turnRight()
turtle.forward()
Auswerfen()
Tanken()
turtle.turnLeft()
turtle.turnLeft()
turtle.forward()
Tanken()
shell.run("reboot")
Noob
Edited on 03 October 2012 - 11:28 AM