Advertisement
Guest User

startup

a guest
Mar 29th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. local minAmount = 128000
  2. local tank = peripheral.wrap("back")
  3.  
  4. while true do
  5.   local tankInfo=tank.getTanks("")[1]
  6.   if tankInfo.amount>=minAmount then
  7.     rs.setOutput("bottom",true)
  8.   else
  9.     rs.setOutput("bottom",false)
  10.   end
  11.   term.setCursorPos(1,2)
  12.   term.write("Current Amount: "..tankInfo.amount.."    ")
  13.   sleep(1)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement