From fdaa4dc1b8fef26efbea3feecb0b36db1622b316 Mon Sep 17 00:00:00 2001 From: Och Noe Date: Sat, 20 Oct 2018 03:15:09 +0200 Subject: experimental tinted glass --- crafting.lua | 13 +++++++++++++ nodes.lua | 14 ++++++++++++++ textures/blue1.png | Bin 0 -> 97 bytes 3 files changed, 27 insertions(+) create mode 100644 textures/blue1.png diff --git a/crafting.lua b/crafting.lua index ea78578..ba72c2d 100644 --- a/crafting.lua +++ b/crafting.lua @@ -604,3 +604,16 @@ if minetest.settings:get_bool("moreblocks.circular_saw_crafting") ~= false then } }) end + + +minetest.register_craft({ + type = "shapeless", + output = "moreblocks:blue_tinted_glass 8", + recipe = {"default:glass", "default:glass", "default:glass", + "default:glass", "dye:blue", "default:glass", + "default:glass", "default:glass", "default:glass"} +}) + + + + diff --git a/nodes.lua b/nodes.lua index 895a292..5695bc4 100644 --- a/nodes.lua +++ b/nodes.lua @@ -186,6 +186,20 @@ local nodes = { groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3}, sounds = sound_glass, }, + ["blue_tinted_glass"] = { + description = S("Blue Tinted Glass"), + drawtype = "glasslike_framed_optional", + tiles = {"blue1.png^moreblocks_clean_glass.png"}, + -- tiles = {"moreblocks_clean_glass.png","moreblocks_clean_glass_detail.png"}, + -- tiles = {"moreblocks_clean_glass.png"}, + one_texture = true, + use_texture_alpha = true, + paramtype = "light", + no_stairs = true; + sunlight_propagates = true, + groups = {snappy = 2, cracky = 3, oddly_breakable_by_hand = 3}, + sounds = sound_glass, + }, ["cactus_brick"] = { description = S("Cactus Brick"), groups = {cracky = 3}, diff --git a/textures/blue1.png b/textures/blue1.png new file mode 100644 index 0000000..84410ad Binary files /dev/null and b/textures/blue1.png differ -- cgit v1.2.3