local p = peripheral.wrap"back" assert(p.hasModule"plethora:scanner" and p.hasModule"plethora:glasses", "need block scanner and overlay glasses!") local interesting_blocks = { ["minecraft:nether_quartz_ore"] = 0xffffffbb, ["minecraft:nether_gold_ore"] = 0xffff00bb, ["minecraft:chest"] = 0x00ff00bb, ["minecraft:cobblestone"] = 0x00cc00aa, ["minecraft:ancient_debris"] = 0x00ff00bb, ["minecraft:budding_amethyst"] = 0xff00ffbb, } for k,v in pairs{ coal=0xaaaaaa55, iron=0xbb667755, copper=0x33773355, gold=0xffff00bb, redstone=0xff0000bb, emerald=0x007700bb, lapis=0x0000ffbb, diamond=0x00ffffbb, } do interesting_blocks["minecraft:"..k.."_ore"] = v interesting_blocks["minecraft:deepslate_"..k.."_ore"] = v end p.canvas3d().clear() local canvas = p.canvas3d().create() local function go() canvas.clear() canvas.recenter() local scan = p.scan() for _, block in ipairs(scan) do local colour = interesting_blocks[block.name] if colour then local box = canvas.addBox(block.x,block.y,block.z, 0.8,0.8,0.8, colour) box.setDepthTested(false) end end end while true do go() os.sleep(0.5) end