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 print(type(v),v) 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) -- Stock Price Adr. Name -- xxxxx xxxxxkst dmn Diamond -- 123456789012345678901234567890123456789012345678901234567 -- 0 1 2 3 4 5 printseq(m) { {1,1}, colors.orange, "Apionics Consortium Store", {1,2}, colors.lightGray, "Stock Price Adr. Name", {1,3}, colors.white, " 321", {8,3}, colors.yellow, " 5", colors.lightGray, "kst", {18,3}, colors.cyan, "dmn", {25,3}, colors.white, "Diamond", } end disp_shopscreen()