Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. local valve = peripheral.wrap("left")
  2. local tableInfo = valve.getTanks("unknown")
  3.  
  4. while true
  5. local maxSteam = valve.getTankInfo()[1]['capacity']
  6. local currentSteam = valve.getTankInfo()[1]['contents']['amount']
  7. local steamPercentage = (currentSteam / maxSteam) * 100
  8.  
  9. print("\nSteam percentage: "..steamPercentage.."\n")
  10. sleep(3)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement