Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function check(p)
- if p ~= nil then
- if table.getn(p.tanks()) >= 1 then
- redstone.setOutput("top", false)
- redstone.setOutput("left", true)
- if p.tanks()[1].amount < 10 then
- redstone.setOutput("top", true)
- redstone.setOutput("left", false)
- else
- redstone.setOutput("top", false)
- redstone.setOutput("left", true)
- end
- else
- redstone.setOutput("top", true)
- redstone.setOutput("left", false)
- end
- else
- redstone.setOutput("top", true)
- redstone.setOutput("left", false)
- end
- end
- while true do
- check(peripheral.wrap("back"))
- end
Add Comment
Please, Sign In to add comment