Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local valve = peripheral.wrap("left")
- local tableInfo = valve.getTanks("unknown")
- while true
- local maxSteam = valve.getTankInfo()[1]['capacity']
- local currentSteam = valve.getTankInfo()[1]['contents']['amount']
- local steamPercentage = (currentSteam / maxSteam) * 100
- print("\nSteam percentage: "..steamPercentage.."\n")
- sleep(3)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement