Advertisement
Aixler

slaveeu

Nov 4th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.42 KB | None | 0 0
  1. --Set params
  2. euSide = "bottom"
  3. modemSide = "right"
  4. monitorID = 52
  5.  
  6. eu = peripheral.wrap(euSide)
  7. rednet.open(modemSide)
  8.  
  9. function main()
  10.     id, msg, distance = nil, nil, nil, nil, nil
  11.     id, msg, distance = rednet.receive()
  12.     if id == monitorID then
  13.         sleep(1)
  14.         rednet.send(monitorID, eu.getInventoryName().." "..eu.getEUStored().." "..eu.getEUCapacity())
  15.     end
  16. end
  17.  
  18. while true do
  19.     main()
  20.     sleep(2)
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement