Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tank = peripheral.wrap("CHANGE TO SIDE TANK IS ON")
- local info = tank.getTankInfo("CHANGE TO SIDE TANK IS ON")
- -- prints information >> print(textutils.serialize(info))
- print(info[1]["contents"]["amount"])
- while true do
- info = tank.getTankInfo("CHANGE TO SIDE TANK IS ON")
- if info[1]["contents"]["amount"] == info[1]["capacity"] then
- rs.setOutput("CHANGE TO SIDE REDSTONE WILL OUTPUT", true)
- else
- rs.setOutput("CHANGE TO SIDE REDSTONE WILL OUTPUT", false)
- end
- sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement