Posted 21 June 2017 - 09:40 PM
I want to write a program that counts ores in a chest then it sends to a SAG mill if there is more than 8 blocks of that ore
can I do that?
I know I can get the chest like this
but how can I see which items are in the chest and them move them to the SAG mill if there are 8 or more of the same type?
I think I need a computer in the SAG mill too?
This is my first time with this mod.
can I do that?
I know I can get the chest like this
local ps = periferal.getNames()
local count = 1
local chests = { }
while count <= #ps do
if periferals.getType(ps[count]) == "chest" then
table.add(chests, periferal.wrap(ps[count]))
end
count = count + 1
end
but how can I see which items are in the chest and them move them to the SAG mill if there are 8 or more of the same type?
I think I need a computer in the SAG mill too?
This is my first time with this mod.