Posted 10 April 2013 - 08:54 AM
Hi everyone,
so yesterday i wrote a program for my farming Turtle and it looks something like this:
The Turtle starts by digging down and by placing a seed from slot 1. It then continues to go forward and breaking the wheat and then placing the seeds.
I have a 2 block high fence so if the turtle runs into it it stops and turns.
Now my question is, what do i do if the turtle runs out of seeds in the first slot?
and should I use Functioons and how do i use them?
And sorry for the dumb question but i am pretty new to Computercraft =)
Mfg Duden
so yesterday i wrote a program for my farming Turtle and it looks something like this:
turtle.select(1)
turtle.digDown()
turtle.placeDown()
while turtle.forward() do
turtle.digDown()
turtle.placeDown()
end
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.digDown()
turtle.placeDown()
while turtle.forward() do
turtle.digDown()
turtle.placeDown()
end
turtle.turnLeft()
turtle.forward()
turtle.turnLeft()
turtle.digDown()
turtle.placeDown()
The Turtle starts by digging down and by placing a seed from slot 1. It then continues to go forward and breaking the wheat and then placing the seeds.
I have a 2 block high fence so if the turtle runs into it it stops and turns.
Now my question is, what do i do if the turtle runs out of seeds in the first slot?
and should I use Functioons and how do i use them?
And sorry for the dumb question but i am pretty new to Computercraft =)
Mfg Duden