Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local tank = peripheral.wrap("CHANGE TO SIDE TANK IS ON")
  2. local info = tank.getTankInfo("CHANGE TO SIDE TANK IS ON")
  3.  
  4. -- prints information >> print(textutils.serialize(info))
  5. print(info[1]["contents"]["amount"])
  6. while true do
  7. info = tank.getTankInfo("CHANGE TO SIDE TANK IS ON")
  8. if info[1]["contents"]["amount"] == info[1]["capacity"] then
  9. rs.setOutput("CHANGE TO SIDE REDSTONE WILL OUTPUT", true)
  10. else
  11. rs.setOutput("CHANGE TO SIDE REDSTONE WILL OUTPUT", false)
  12. end
  13. sleep(5)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement