ores: change to show ore instead of ingot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user