r/ComputerCraft • u/Internal_Ad_2568 • Nov 25 '25
Using CC:Androids and cannot figure out how to convert the "uuid" from a table to text.
17
Upvotes
r/ComputerCraft • u/Internal_Ad_2568 • Nov 25 '25
9
u/Insurgentbullier NIH patient Nov 26 '25
local result = android.getClosestMob()
if result then print(result.uuid) end
or
if result then print(result[“uuid”]) end
It’s just a table so you can get the keys.
assuming android is the module name and function param is optional.
1
u/EpicNematode Nov 26 '25
If it’s a table of 4 integers something like string.format(“%x-%x-%x-%x”, uuid[0], uuid[1], uuid[2], uuid[3]) should work. If you’d rather they be treated as integers instead of hex numbers, use %d. Hex takes less space though.