diff --git a/mods/ITEMS/pyutest_blocks/special.lua b/mods/ITEMS/pyutest_blocks/special.lua index 2e42aac..8086e90 100644 --- a/mods/ITEMS/pyutest_blocks/special.lua +++ b/mods/ITEMS/pyutest_blocks/special.lua @@ -39,7 +39,7 @@ PyuTest.make_node("pyutest_blocks:torch", "Torch", { PyuTest.make_node("pyutest_blocks:glass", "Glass", { cracky = PyuTest.BLOCK_FAST -}, { "pyutest-glass.png", "pyutest-shiny-metal-overlay.png" }, { +}, { "pyutest-glass.png", "pyutest-glass-overlay.png" }, { drawtype = "glasslike_framed", paramtype = "light", sunlight_propagates = true diff --git a/mods/ITEMS/pyutest_wool/init.lua b/mods/ITEMS/pyutest_wool/init.lua index 828c419..0dfa7b9 100644 --- a/mods/ITEMS/pyutest_wool/init.lua +++ b/mods/ITEMS/pyutest_wool/init.lua @@ -109,7 +109,7 @@ for k, v in pairs(PyuTest.COLORS) do cracky = PyuTest.BLOCK_FAST, glass = 1, colored = 1 - }, {"pyutest-glass.png", "pyutest-shiny-metal-overlay.png"}, { + }, {"pyutest-glass.png", "pyutest-glass-overlay.png"}, { drawtype = "glasslike_framed", color = v[2], paramtype = "light", diff --git a/mods/WORLD/pyutest_ores/init.lua b/mods/WORLD/pyutest_ores/init.lua index 00b12fd..faf1497 100644 --- a/mods/WORLD/pyutest_ores/init.lua +++ b/mods/WORLD/pyutest_ores/init.lua @@ -119,7 +119,8 @@ PyuTest.make_ore_and_item = function(id, desc, item_id_suffix, item_description_ block_conf = {}, block_color = nil, block_tiles = {}, - block_groups = {} + block_groups = {}, + block_shiny = false, } local conf = {} @@ -213,7 +214,12 @@ PyuTest.make_ore_and_item = function(id, desc, item_id_suffix, item_description_ PyuTest.make_building_blocks(id, desc, conf.block_tiles, conf.block_color, PyuTest.util.tableconcat({ cracky = conf.ore_strength - }, conf.block_groups), conf.block_conf) + }, conf.block_groups), PyuTest.util.tableconcat(conf.block_conf, { + overlay_tiles = conf.block_shiny and { + -- {name = "pyutest-shiny-metal-overlay.png", color = "white"}, + "pyutest-shiny-metal-overlay.png" + } or nil + })) local bid = id.."_block" minetest.register_craft({ @@ -267,7 +273,7 @@ PyuTest.make_ore_and_item("pyutest_ores:iron", "Iron", "ingot", "Ingot", { make_raw = true, raw_texture = "pyutest-lump.png", - block_tiles = {"pyutest-metal.png"} + block_tiles = {"pyutest-metal.png"}, }) PyuTest.make_ore_and_item("pyutest_ores:zinc", "Zinc", "ingot", "Ingot", { @@ -336,7 +342,8 @@ PyuTest.make_ore_and_item("pyutest_ores:gold", "Gold", "ingot", "Ingot", { }, block_tiles = {"pyutest-metal.png"}, - block_color = "gold" + block_color = "gold", + block_shiny = true, }) PyuTest.make_ore_and_item("pyutest_ores:diamond", "Diamond", "shard", "Shard", { @@ -353,7 +360,8 @@ PyuTest.make_ore_and_item("pyutest_ores:diamond", "Diamond", "shard", "Shard", { }, block_tiles = {"pyutest-metal.png"}, - block_color = "cyan" + block_color = "cyan", + block_shiny = true, }) PyuTest.make_ore_and_item("pyutest_ores:emerald", "Emerald", "shard", "Shard", { @@ -370,7 +378,8 @@ PyuTest.make_ore_and_item("pyutest_ores:emerald", "Emerald", "shard", "Shard", { }, block_tiles = {"pyutest-metal.png"}, - block_color = "seagreen" + block_color = "seagreen", + block_shiny = true, }) -- "Secondary" Ores diff --git a/textures/pyutest-glass-overlay.png b/textures/pyutest-glass-overlay.png new file mode 100644 index 0000000..3f0f9b3 Binary files /dev/null and b/textures/pyutest-glass-overlay.png differ diff --git a/textures/pyutest-metal.png b/textures/pyutest-metal.png index d427210..50c32ae 100644 Binary files a/textures/pyutest-metal.png and b/textures/pyutest-metal.png differ diff --git a/textures/pyutest-shiny-metal-overlay.png b/textures/pyutest-shiny-metal-overlay.png index 3f0f9b3..1ef2165 100644 Binary files a/textures/pyutest-shiny-metal-overlay.png and b/textures/pyutest-shiny-metal-overlay.png differ