Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("ocs/apis/sensor")
- local modem = peripheral.wrap("bottom")
- local sendOnChannel = 1
- local replyChannel = 2
- prox = sensor.wrap("top")
- while true do
- term.setCursorPos(1,3)
- moreDetails = prox.getTargetDetails("3,0,0")
- print(moreDetails.Tanks[1].Amount)
- term.setCursorPos(1,4)
- moreDetails = prox.getTargetDetails("-3,0,0")
- print(moreDetails.Tanks[1].Amount)
- modem.transmit(2,1,moreDetails.Tanks[1].Amount)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement