Guest User

smeltery

a guest
Jan 5th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1.  
  2. local tank = peripheral.wrap("left")
  3. local tankTable = tank.getTankInfo()[1]
  4. local contentsTable = tankTable["contents"]
  5. local quantity = contentsTable["amount"]
  6. while true do
  7.  
  8.   if quantity > 1296 then
  9.     print(quantity)
  10.     redstone.setOutput("front",true)
  11.     sleep(5)
  12.     redstone.setOutput("front",false)
  13.     print(quantity)
  14.     sleep(5)
  15.   end
  16.  
  17. end
Advertisement
Add Comment
Please, Sign In to add comment