Advertisement
markman4897

SmelteryControl

Apr 9th, 2017
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None
  1. tank = peripheral.wrap('back')
  2.  
  3. while true do
  4.   if (tank.getTankInfo()[1].contents == nil) then
  5.     print('Tank is empty.')
  6.     print('Attempting to drain basins...')
  7.     redstone.setOutput('left', true)
  8.     sleep(0.5)
  9.     redstone.setOutput('left', false)
  10.     sleep(4)
  11.   else
  12.     print("Tank isn't empty.")
  13.   end
  14.  
  15.   sleep(1)
  16. end
Advertisement
RAW Paste Data Copied
Advertisement