Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- chest = peripheral.wrap("back")
- while true do
- local slot = chest.getStackInSlot(1)
- if slot ~= nil then
- if slot.qty < 32 then
- redstone.setOutput("top", false)
- else
- redstone.setOutput("top", true)
- end
- else
- redstone.setOutput("top", false)
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement