Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local valve = peripheral.wrap("left")
- while true do
- local tableInfo = valve.getTanks("unknown")
- for k, v in pairs(tableInfo) do
- for x, y in pairs(v) do
- if x == "amount" then
- if (y == 720000) then
- redstone.setOutput("right", false)
- elseif (y < 720000) then
- redstone.setOutput("right", true)
- end
- end
- end
- end
- os.sleep(10)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement