Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Tank Level Controler
- local modem = peripheral.find("modem")
- local valve = peripheral.find("rcsteeltankvalvetile")
- rednet.open("top")
- while true do
- local tankStats = tankInfo[1] --# store the first table returned
- print tankStats.rawName --# print the raw name of the fluid in the tank
- print tankStats.amount --# print the amount in the tank
- print tankStats.capacity --# print the capacity of the tank
- rednet.send(1,amount,"amount")
- rednet.send(1,capacity,"capacity")
- rednet.send(1,filled,"filled")
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement