From ec11ae0b505fd90d3a56b5d08cabee3da25e602f Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Tue, 30 Apr 2019 09:19:26 -0400 Subject: [PATCH] ores: change to show ore instead of ingot --- neural/ores.lua | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/neural/ores.lua b/neural/ores.lua index 588bd8e..10c0e12 100644 --- a/neural/ores.lua +++ b/neural/ores.lua @@ -41,17 +41,17 @@ local function getPoint() end local targets = { - ["minecraft:emerald_ore"] = { "minecraft:emerald", 0 }, - ["minecraft:diamond_ore"] = { "minecraft:diamond", 0 }, - ["minecraft:gold_ore"] = { "minecraft:gold_ingot", 0 }, - ["minecraft:redstone_ore"] = { "minecraft:redstone", 0 }, - ["minecraft:lit_redstone_ore"] = { "minecraft:redstone", 0 }, - ["minecraft:iron_ore"] = { "minecraft:iron_ingot", 0 }, - ["minecraft:lapis_ore"] = { "minecraft:dye", 4 }, - ["minecraft:coal_ore"] = { "minecraft:coal", 0 }, + ["minecraft:emerald_ore"] = { "minecraft:emerald_ore", 0 }, + ["minecraft:diamond_ore"] = { "minecraft:diamond_ore", 0 }, + ["minecraft:gold_ore"] = { "minecraft:gold_ore", 0 }, + ["minecraft:redstone_ore"] = { "minecraft:redstone_ore", 0 }, + ["minecraft:lit_redstone_ore"] = { "minecraft:redstone_ore", 0 }, + ["minecraft:iron_ore"] = { "minecraft:iron_ore", 0 }, + ["minecraft:lapis_ore"] = { "minecraft:lapis_ore", 4 }, + ["minecraft:coal_ore"] = { "minecraft:coal_ore", 0 }, --["quark:biotite_ore"] = 0x02051C66, - ["minecraft:quartz_ore"] = { "minecraft:quartz", 0 }, - ["minecraft:glowstone"] = { "minecraft:glowstone_dust", 0 }, + ["minecraft:quartz_ore"] = { "minecraft:quartz_ore", 0 }, + ["minecraft:glowstone"] = { "minecraft:glowstone", 0 }, } local projecting = { } local offset = getPoint() or showRequirements('GPS') @@ -90,21 +90,21 @@ local function update() for _, b in pairs(blocks) do if not projecting[b.id] then projecting[b.id] = b + local target = targets[b.name] + --[[ b.box = canvas.addFrame({ pos.x - offset.x + b.x + -(pos.x % 1), pos.y - offset.y + b.y + -(pos.y % 1), pos.z - offset.z + b.z + -(pos.z % 1), }) b.box.setDepthTested(false) - local target = targets[b.name] b.box.addItem({ .25, .25 }, target[1], target[2], 2) - --[[ + --]] b.box = canvas.addItem({ pos.x - offset.x + b.x + -(pos.x % 1) + .5, pos.y - offset.y + b.y + -(pos.y % 1) + .5, pos.z - offset.z + b.z + -(pos.z % 1) + .5, - }, b.name, b.damage, .5) - --]] + }, target[1], target[2], .5) b.box.setDepthTested(false) end end