Advertisement
a_alien

phone app

May 5th, 2021
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. rednet.open("back")
  2. while true do
  3. text = {}
  4. id, mes = rednet.receive("uran", 1)
  5. if mes then
  6. term.clear()
  7. term.setCursorPos(1 ,1)
  8. text[1] = "Uranium left ".. mes
  9. end
  10. id, mes = rednet.receive("perl", 1)
  11. if mes then
  12. text[2] = mes
  13. end
  14. id, mes = rednet.receive("apple", 1)
  15. if mes then
  16. text[3] = mes
  17. end
  18. i = 0
  19. if text then
  20. while i <= table.getn(text) do
  21. if text[i] then
  22. print(text[i])
  23. end
  24. end
  25. end
  26.  
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement