Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local valve = peripheral.wrap("left")
  2. while true do
  3.  
  4. local tableInfo = valve.getTanks("unknown")
  5. for k, v in pairs(tableInfo) do
  6. for x, y in pairs(v) do
  7. if x == "amount" then
  8. if (y == 720000) then
  9. redstone.setOutput("right", false)
  10. elseif (y < 720000) then
  11. redstone.setOutput("right", true)
  12. end
  13. end
  14. end
  15. end
  16. os.sleep(10)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement