Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local valve = peripheral.wrap("right")
- local outSide = "back"
- while true do
- local tank = valve.getTankInfo("right")
- for k, v in pairs(tank) do
- for x, y in pairs(v) do
- if x == "amount"then
- print(x..": "..y)
- if y > 2800000 then
- redstone.setOutput(outSide, false)
- redstone.setBundledOutput(outSide, 0)
- else
- redstone.setOutput(outSide, true)
- redstone.setBundledOutput(outSide, 1)
- end
- end
- end
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment