local ourname = "ac.kst" local ITEMS = { {"dmn", 5, "minecraft:diamond"}, {"blz", 10, "minecraft:blaze_rod"}, {"ely", 40, "minecraft:elytra"}, } local function printseq(m) return function(q) for _,v in ipairs(q) do if type(v) == "number" then m.setTextColor(v) elseif type(v) == "string" then m.write(v) elseif type(v) == "table" then if #v == 2 then -- position m.setCursorPos(v[1],v[2]) else error("unknown format") end end end end end local function disp_shopscreen() local m = peripheral.wrap"left" m.clear() m.setTextScale(0.5) printseq(m) { {1,1}, colors.orange, "Apionics Consortium Store" } end disp_shopscreen()