Posted 09 March 2014 - 05:35 PM
Hi, I made a program to move my quarry automaticly, but when its placing it it places it wrong…
here is my code:
here is my code:
function move()
turtle.dig()
turtle.forward()
turtle.digDown()
turtle.turnLeft()
turtle.forward()
turtle.digDown()
turtle.forward()
turtle.digDown()
for i = 1,10 do
turtle.forward()
end
end
function place()
turtle.select(2)
turtle.placeDown()
turtle.forward()
turtle.select(3)
turtle.placeDown()
turtle.forward()
turtle.select(4)
turtle.placeDown()
turtle.turnRight()
turtle.turnRight()
turtle.forward()
turtle.forward()
turtle.turnRight()
turtle.forward()
turtle.turnRight()
turtle.turnRight()
turtle.select(1)
turtle.place()
end
print("Checking if the chest is full.")
if turtle.suck() == true then
turtle.drop()
print("Chest is not empty yet. Waiting…")
os.reboot()
else
print("Chest is empty. Let's Move!")
sleep(1)
move()
place()
print("Moved!")
os.reboot()
end