This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
PixelDragon13's profile picture

Quarry is facing the wrong way

Started by PixelDragon13, 09 March 2014 - 04:35 PM
PixelDragon13 #1
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:

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
Engineer #2
Posted 09 March 2014 - 07:28 PM
What are your intentions exactly? I cant smell that!
PixelDragon13 #3
Posted 09 March 2014 - 08:19 PM
Well thanks for looking at it, but someone in my skype list helped me. The quarry automaticly faces to the NORTH, so that was the problem :)/>

PD13