Advertisement
9551

Untitled

May 14th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local mon = require "mon+"
  2. local ext = peripheral.wrap("ic2:extractor_0")
  3. local m = peripheral.wrap("top")
  4. function pd(text)
  5. print(text)
  6. if text ~= nil then
  7. m.clearLine()
  8. mon.write("top", 1, 1, 1, text, "white", true)
  9. end
  10. end
  11. while true do
  12. curData = ext.getMetadata(7)
  13. if curData ~= nil then
  14. local out = curData.diplayName
  15. pd(out)
  16. end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement