Posted 02 May 2013 - 09:12 PM
I'm using an interactive sorter to call items from a storage room by taking one of the item from a chest (using block id) and putting it in a retriever (red power 2). I had a script that worked fine for items without damage value but i wanted something that supports items with damage values (i.e.: coloured wool). I found the weird ids that the interactive sorter gives items with damage values and defined them at the top of my new script as follows
charcoal = 33031
copper = 169107
(etc…)
the computer running this script accepts input from other computers through rednet. How can I turn the input from rednet into variables listed above, because i know the input is coming in as strings but i don't know how to convert them to variables.
In short I want to type "copper" in on one computer and on the other, have it recognize that copper is id 33031 then move one piece of copper into the retriever
Any help is appreciated
charcoal = 33031
copper = 169107
(etc…)
the computer running this script accepts input from other computers through rednet. How can I turn the input from rednet into variables listed above, because i know the input is coming in as strings but i don't know how to convert them to variables.
In short I want to type "copper" in on one computer and on the other, have it recognize that copper is id 33031 then move one piece of copper into the retriever
Any help is appreciated