aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOch Noe <och_noe@forksworld.de>2018-10-20 03:15:09 +0200
committerOch Noe <och_noe@forksworld.de>2018-10-20 03:15:09 +0200
commitfdaa4dc1b8fef26efbea3feecb0b36db1622b316 (patch)
tree8866966d822afc39b50c064dc0da7c84892d39df
parent3d1dcfc2bfa770cc066f5a11f1451e86916b2b63 (diff)
downloadmoreblocks-fdaa4dc1b8fef26efbea3feecb0b36db1622b316.tar.gz
moreblocks-fdaa4dc1b8fef26efbea3feecb0b36db1622b316.tar.bz2
moreblocks-fdaa4dc1b8fef26efbea3feecb0b36db1622b316.zip
experimental tinted glass
-rw-r--r--crafting.lua13
-rw-r--r--nodes.lua14
-rw-r--r--textures/blue1.pngbin0 -> 97 bytes
3 files changed, 27 insertions, 0 deletions
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
--- /dev/null
+++ b/textures/blue1.png
Binary files differ