Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Set params
- euSide = "bottom"
- modemSide = "right"
- monitorID = 52
- eu = peripheral.wrap(euSide)
- rednet.open(modemSide)
- function main()
- id, msg, distance = nil, nil, nil, nil, nil
- id, msg, distance = rednet.receive()
- if id == monitorID then
- sleep(1)
- rednet.send(monitorID, eu.getInventoryName().." "..eu.getEUStored().." "..eu.getEUCapacity())
- end
- end
- while true do
- main()
- sleep(2)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement