Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interface = peripheral.wrap("right")
- screen = peripheral.wrap("left")
- term.redirect(screen)
- function toString(object)
- if type(object) == "table" then
- output = "{"
- for key, value in pairs(object) do
- output = output .. key .. ":" .. toString(value)
- end
- return output .. "}"
- else if type(object) == "string" then
- return object
- else if type(object) == "bool" then
- if object then
- return "true"
- else
- return "false"
- end
- end
- end
- CPUs = interface.getCraftingCPUs()
- print(toString(CPUs))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement