Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local inv = peripheral.wrap("left")
- function shouldTrash(item)
- if item.name == "occultism:datura_seeds" then return true end
- if item.tags ~= nil then
- for _,tag in ipairs(item.tags) do
- if tag == "forge:cobblestone" then return true end
- end
- end
- end
- function shouldStore(item)
- if item.tags ~= nil then
- for _,tag in ipairs(item.tags) do
- if tag == "create:crushed_ores" then return true end
- end
- end
- end
- while true do
- for slot,item in pairs(inv.getItems()) do
- if shouldTrash(item) then
- inv.removeItemFromPlayer("DOWN",item.count,slot,item.name)
- elseif shouldStore(item) then
- inv.removeItemFromPlayer("LEFT",item.count,slot,item.name)
- end
- end
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement