daily pastebin goal
60%
SHARE
TWEET

SmelteryAutomated

skipper_is Jan 5th, 2018 51 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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top