Running a custom pack, which gives me a lot of broken equipment from mobs that if repaired would provide much needed resources.
I need a system to find two identical items, craft repair them, and dump the item into another chest, which will eventually filter the damaged items back into the first chest.
I thought a turtle would be ideal for this, but my knowledge is very limited of LUA, most I've done is a timer and redstone control (but I am familiar with some progamming languages). Can anyone help?
This is my thought process on how it would work:
Loop through each slot of source chest. (for... next)
Take slot item into turtle. (turtle.suck or something...)
Loop through each slot of source chest, find a matching item ID that matches the item in the turtle (for...next, if turtle.item=chest.item)
If found, craft repair, place item in another chest, end the loop. (turtle repair+drop, end for)
Otherwise, dump item into chest (turtle drop)
Loop to next item (next)
I need a system to find two identical items, craft repair them, and dump the item into another chest, which will eventually filter the damaged items back into the first chest.
I thought a turtle would be ideal for this, but my knowledge is very limited of LUA, most I've done is a timer and redstone control (but I am familiar with some progamming languages). Can anyone help?
This is my thought process on how it would work:
Loop through each slot of source chest. (for... next)
Take slot item into turtle. (turtle.suck or something...)
Loop through each slot of source chest, find a matching item ID that matches the item in the turtle (for...next, if turtle.item=chest.item)
If found, craft repair, place item in another chest, end the loop. (turtle repair+drop, end for)
Otherwise, dump item into chest (turtle drop)
Loop to next item (next)