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

how do you a turtle to take items from a chest

Started by gummies12, 26 October 2012 - 04:19 PM
gummies12 #1
Posted 26 October 2012 - 06:19 PM
i cant get my turtle to take items from a chest and i have tried evrything. plz help.

here is the code


Edit: finally got it work thank you.


Spoilerturtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()

turtle.forward()

turtle.turnLeft()

turtle.suck() –this is where i want the turtle to take item from chest

turtle.turnRight()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()

i cant get my turtle to take items from a chest and i have tried evrything. plz help.

here is the code



Spoilerturtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()

turtle.forward()

turtle.turnLeft()

turtle.suck() –this is where i want the turtle to take item from chest

turtle.turnRight()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.forward()

turtle.turnRight()
Ditto8353 #2
Posted 26 October 2012 - 06:21 PM
turtle.suck() ?
gummies12 #3
Posted 26 October 2012 - 06:26 PM
i have already tried that it wont work
Ditto8353 #4
Posted 26 October 2012 - 06:29 PM
Do you get an error message? If so, what is it?
Try doing
print(turtle.suck())
And tell us what the output is.
Is there a chest directly in front of the turtle?
Is there something in the chest?
Does the turtle have room for it?
gummies12 #5
Posted 26 October 2012 - 06:39 PM
i dont get an output when i add that to the code
no i do not get an error message
and yes for the last three questions
Ditto8353 #6
Posted 26 October 2012 - 06:59 PM
Hmm… I am not sure what is happening here. It sounds a bit like the mod isn't functioning properly. You may want to check that you have the proper verions of Minecraft, Forge, CC, and Java installed.
In addition, if you type in simply
print("Hello")
Do you get any output?
If not, then I would lean towards checking your versions and doing a re-installation of the mod(s), but I do not have a full understanding of what could cause this.
gummies12 #7
Posted 26 October 2012 - 07:12 PM
thnx
ChunLing #8
Posted 26 October 2012 - 07:52 PM
There are three suck commands, turtle.suck, turtle.suckUp,, and turtle.suckDown, You may need to change where the chest you want to access is relative to the turtle. Also check your version, suck is a new command.
KaoS #9
Posted 26 October 2012 - 08:07 PM
I have an idea lol. I bet you're using tekkit right. what version of CC are you on??
darkrising #10
Posted 27 October 2012 - 01:01 PM
I have an idea lol. I bet you're using tekkit right. what version of CC are you on??

Tekkit to my knowledge is currently running cc 1.3.3 :D/>/>
KaoS #11
Posted 27 October 2012 - 01:41 PM
which doesn't support chest interaction