Advertisement
DOGGYWOOF

computer type

Jan 5th, 2024 (edited)
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. function os.getComputerType()
  2. local ret = {}
  3.  
  4. if term.isColor() then
  5. prtint("Computer")
  6. end
  7. if pocket then
  8. print("Pocket")
  9. elseif turtle then
  10. print("turtle")
  11. else
  12. table.insert(ret, "computer")
  13. end
  14. return table.concat(ret, "_")
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement