Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local meTerminal = peripheral.wrap("left")
- local mon = peripheral.wrap("right")
- --Don't change anything below this line
- local items
- local encoded
- if (not fs.exists("json")) then
- shell.run("pastebin", "get", "4nRg9CHU", "json")
- end
- os.loadAPI("json")
- encoded = {}
- items = meTerminal.getAvailableItems()
- for v in pairs(items) do
- mon.setCursorPos(1,v)
- mon.write(json.encode(items[v]))
- print(json.encode(items[v]))
- encoded[v] = json.encode(items[v])
- end
- print("[" .. table.concat(encoded, ",") .. "]")
Add Comment
Please, Sign In to add comment