diff options
Diffstat (limited to 'ore.lua')
| -rw-r--r-- | ore.lua | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -2,8 +2,25 @@ 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:netherrack"]=0xffff00ff, + ["minecraft:nether_quartz_ore"] = 0xffffffff, + ["minecraft:nether_gold_ore"] = 0xffff00ff, + ["minecraft:chest"] = 0x00ff00ff, + ["minecraft:cobblestone"] = 0x00cc00aa, + ["minecraft:ancient_debris"] = 0x00ff00ff, + ["minecraft:budding_amethyst"] = 0xff00ffff, } +for k,v in pairs{ + coal=0xaaaaaaaa, + iron=0xbbbb33ff, + copper=0xbb33bbff, + gold=0xffff00ff, + redstone=0xff0000ff, + emerald=0x007700ff, + lapis=0x0000ffff, + diamond=0x00ffffff, +} do interesting_blocks["minecraft:"..k.."_ore"] = v + interesting_blocks["minecraft:deepslate_"..k.."_ore"] = v end + local function go() p.canvas3d().clear() @@ -18,4 +35,7 @@ local function go() end end -go() +while true do + go() + os.sleep(0.5) +end |
