Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local input = peripheral.find("sc-goodies:gold_barrel_2299")
- local output = peripheral.find("sc-goodies:gold_barrel_2300")
- local myName = peripheral.find("modem").getNameLocal()
- turtle.select(1)
- while true do
- for i=1,input.size() do
- print("Slot: " .. i)
- local data = input.getItemDetail(i)
- if data and data.name:match("concrete_powder") then
- input.pushItems(myName, i, 1)
- turtle.placeDown()
- turtle.digDown()
- output.pullItems(myName, 1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement