Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bridge = peripheral.wrap("rsBridge_3")
- if not bridge then error("rsBridge_3 not found") end
- local exportMatch = false
- local importMatch = true
- local tagFilter = {"forge:ores", "forge:raw_materials"}
- while true do
- for number, item in pairs(bridge.listItems()) do
- if item.tags then
- for _, tag in pairs(item.tags) do
- for _, tagfi in pairs(tagFilter) do
- if string.find(tag, tagfi) then
- exportMatch = true
- break
- end
- end
- end
- end
- if exportMatch then
- bridge.exportItem(item, "UP")
- exportMatch = false
- end
- end
- os.sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement