Advertisement
skipper_is

SmelteryAutomated

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