babulm

Untitled

Feb 22nd, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. rednet.open("right")
  2. pipe = peripheral.wrap("back")
  3. atmid = 3732
  4.  
  5.  
  6.  
  7. function empfangen()
  8. id,redi = rednet.receive()
  9. if id == atmid then
  10. data = textutils.unserialize(redi)
  11. item = data.item
  12. menge = data.menge
  13. end
  14. end
  15.  
  16. while true do
  17. empfangen()
  18. if item == "tungsten" then
  19. pipe.makeRequest(identitungsten, menge)
  20. end
  21. end
Add Comment
Please, Sign In to add comment