Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- sleep(0.1)
- crafter = peripheral.wrap("left")
- items = crafter.list()
- totalCount = 0
- for slot, item in pairs(items) do
- totalCount = totalCount + (item.count or 0)
- end
- if totalCount >= 500 then
- redstone.setOutput("back", true)
- else
- redstone.setOutput("back", false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement