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

Sorting system and grabbing code from server?

Started by sgt_flexxx, 09 March 2014 - 07:07 PM
sgt_flexxx #1
Posted 09 March 2014 - 08:07 PM
So I've come to get used to programming a bit, but I've come to a stand still at my program. Currently, everything works fine until it gets to the chest, at which point I try to have it compare everything in it's inventory to what's in the chest by taking each item and comparing it to everything in it's inventory, then if it's false, it drops the item back into the chest. However, I don't know how to make it pick up the next item that it should instead of the one it already picked up. If there's a solution someone could give me, or even a function I probably don't know about, please reply.

Here's my code:
EDIT: Currently, im on a friend's server, which I had created the code on. Im not sure how to just copy all the text from the computer and paste it here. If anyone knows how I can get the code without having to ask the server admin to grab it manually for me, that would be of help as well.
CometWolf #2
Posted 09 March 2014 - 08:18 PM
turtle.suck currently can't specify which item to suck up. You'll either have to store the checked items somewhere else temporarily, or use openP's excellent chest peripheral methods, provided you have openP installed.

To upload your code to the internet, use the pastebin program installed on the computer by default, by typing this into the shell.

pastebin put codePathHere
Then you can get the code from pastebin.com/pasteCode