Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local minAmount = 128000
- local tank = peripheral.wrap("back")
- while true do
- local tankInfo=tank.getTanks("")[1]
- if tankInfo.amount>=minAmount then
- rs.setOutput("bottom",true)
- else
- rs.setOutput("bottom",false)
- end
- term.setCursorPos(1,2)
- term.write("Current Amount: "..tankInfo.amount.." ")
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement