aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-11-12 01:48:40 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-11-12 01:48:40 +0300
commitac063af2bdca078d676b460ba7fd09e630ff76ec (patch)
treea2a57e6c796f6241da3102dfd7334fda4e32e286
parentda451634e4d7980700631bc537f668f9e5a51058 (diff)
downloadglass_stained-ac063af2bdca078d676b460ba7fd09e630ff76ec.tar.gz
glass_stained-ac063af2bdca078d676b460ba7fd09e630ff76ec.tar.bz2
glass_stained-ac063af2bdca078d676b460ba7fd09e630ff76ec.zip
major code cleanup
-rw-r--r--init.lua1184
1 files changed, 201 insertions, 983 deletions
diff --git a/init.lua b/init.lua
index 662924e..d1b106c 100644
--- a/init.lua
+++ b/init.lua
@@ -1,1079 +1,297 @@
-minetest.register_node("glass_stained:glass_normal", {
- description = "Normal Glass",
- drawtype = "nodebox",
- tiles = {"default_glass.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+local node_list = {
+ -- GLASS ----------------------------------------------------------
+ { name = "glass_normal",
+ description = "Normal Glass",
+ tiles = {"default_glass.png"},
+ recipe = {
+ {"default:glass"},
+ {"default:glass"},
+ {"default:glass"},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:obsidian_glass_normal", {
- description = "Normal Obsidian Glass",
- drawtype = "nodebox",
- tiles = {"default_obsidian_glass.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ { name = "obsidian_glass_normal",
+ description = "Normal Obsidian Glass",
+ tiles = {"default_obsidian_glass.png"},
+ recipe = {
+ {"default:obsidian_glass"},
+ {"default:obsidian_glass"},
+ {"default:obsidian_glass"},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:steel_bars_normal", {
- description = "Normal Steel Bars",
- drawtype = "nodebox",
- tiles = {"xpanes_bar.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+
+ -- STEEL BARS -----------------------------------------------------
+ { name = "steel_bars_normal",
+ description = "Normal Steel Bars",
+ tiles = {"xpanes_bar.png"},
+ recipe = {
+ {"default:steel_ingot"},
+ {"default:steel_ingot"},
+ {"default:steel_ingot"},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:steel_bars_fancy", {
- description = "Fancy Steel Bars",
- drawtype = "nodebox",
- tiles = {"xpanes_bar_fancy.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ { name = "steel_bars_fancy",
+ description = "Fancy Steel Bars",
+ tiles = {"xpanes_bar_fancy.png"},
+ recipe = {
+ {"default:steel_ingot"},
+ {"glass_stained:steel_bars_normal"},
+ {"glass_stained:steel_bars_normal"},
},
+ no_derivatives = true,
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-xpanes.register_pane("bar_top", {
- description = "Iron bar fancy top",
- textures = {"xpanes_bar_fancy.png","xpanes_bar_fancy.png","default_glass_detail.png"},
- inventory_image = "xpanes_bar_fancy.png",
- wield_image = "xpanes_bar_fancy.png",
- groups = {cracky=2},
- sounds = default.node_sound_metal_defaults(),
- recipe = {
- {"", "default:steel_ingot", ""},
- {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
- {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}
- }
-})
-
-minetest.register_node("glass_stained:glass_number_one", {
- description = "Stained Glass Type 1",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+
+ -- STAINED GLASS --------------------------------------------------
+ { name = "glass_number_one",
+ description = "Stained Glass Type 1",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_one.png",
"glass_number_one.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:blue","dye:blue","dye:blue",},
+ {"dye:blue","default:glass","dye:blue",},
+ {"dye:blue","dye:blue","dye:blue",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_two", {
- description = "Stained Glass Type 2",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_two",
+ description = "Stained Glass Type 2",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_two.png",
"glass_number_two.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:white","dye:blue","dye:white",},
+ {"dye:red","default:glass","dye:red",},
+ {"dye:white","dye:blue","dye:white",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_three", {
- description = "Stained Glass Type 3",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_three",
+ description = "Stained Glass Type 3",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_three.png",
"glass_number_three.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:blue","dye:yellow","dye:blue",},
+ {"dye:blue","default:glass","dye:blue",},
+ {"dye:blue","dye:yellow","dye:blue",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_four", {
- description = "Stained Glass Type 4",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_four",
+ description = "Stained Glass Type 4",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_four.png",
"glass_number_four.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:red","dye:yellow","dye:red",},
+ {"dye:red","default:glass","dye:red",},
+ {"dye:red","dye:yellow","dye:red",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_five", {
- description = "Stained Glass Type 5",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_five",
+ description = "Stained Glass Type 5",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_five.png",
"glass_number_five.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:red","dye:violet","dye:blue",},
+ {"dye:violet","default:glass","dye:violet",},
+ {"dye:blue","dye:violet","dye:red",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_six", {
- description = "Stained Glass Type 6",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_six",
+ description = "Stained Glass Type 6",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_six.png",
"glass_number_six.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:blue","dye:violet","dye:blue",},
+ {"dye:violet","default:glass","dye:violet",},
+ {"dye:blue","dye:violet","dye:blue",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_seven", {
- description = "Stained Glass Type 7",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_seven",
+ description = "Stained Glass Type 7",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_seven.png",
"glass_number_seven.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:violet","dye:blue","dye:violet",},
+ {"dye:red","default:glass","dye:red",},
+ {"dye:violet","dye:blue","dye:violet",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_eight", {
- description = "Stained Glass Type 8",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_eight",
+ description = "Stained Glass Type 8",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_eight.png",
"glass_number_eight.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:yellow","dye:green","dye:yellow",},
+ {"dye:blue","default:glass","dye:blue",},
+ {"dye:yellow","dye:green","dye:yellow",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_nine", {
- description = "Stained Glass Type 9",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_nine",
+ description = "Stained Glass Type 9",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_nine.png",
"glass_number_nine.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:blue","dye:yellow","dye:blue",},
+ {"dye:red","default:glass","dye:red",},
+ {"dye:blue","dye:yellow","dye:blue",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_ten", {
- description = "Stained Glass Type 10",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_ten",
+ description = "Stained Glass Type 10",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_ten.png",
"glass_number_ten.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:green","dye:yellow","dye:green",},
+ {"dye:cyan","default:glass","dye:cyan",},
+ {"dye:green","dye:yellow","dye:green",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_eleven", {
- description = "Stained Glass Type 11",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_eleven",
+ description = "Stained Glass Type 11",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_eleven.png",
"glass_number_eleven.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:blue","dye:green","dye:blue",},
+ {"dye:green","default:glass","dye:green",},
+ {"dye:blue","dye:green","dye:blue",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_twelve", {
- description = "Stained Glass Type 12",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
+ { name = "glass_number_twelve",
+ description = "Stained Glass Type 12",
+ tiles = {"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"default_glass_detail.png",
"glass_number_twelve.png",
"glass_number_twelve.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ recipe = {
+ {"dye:yellow","dye:cyan","dye:yellow",},
+ {"dye:cyan","default:glass","dye:cyan",},
+ {"dye:yellow","dye:cyan","dye:yellow",},
},
},
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_normal_top", {
- description = "Normal Glass Top",
- drawtype = "nodebox",
- tiles = {"default_glass.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
+
+}
+
+for _,node in ipairs(node_list) do
+
+ -- Single 1x1 node
+ minetest.register_node("glass_stained:" .. node.name, {
+ description = node.description,
+ drawtype = "nodebox",
+ tiles = node.tiles,
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ node_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5, -0.5, -0, 0.5, 0.5, 0},
+ },
},
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
+ },
+ },
+ groups = {cracky=3},
+ use_texture_alpha = true,
+ })
+
+ minetest.register_craft({output = "glass_stained:" .. node.name,
+ recipe = node.recipe
+ })
+
+ if node.no_derivatives then
+ goto eol
+ end
+
+ -- Double vertical 1x2 node
+ minetest.register_node("glass_stained:" .. node.name .. "_top", {
+ description = node.description,
+ drawtype = "nodebox",
+ tiles = node.tiles,
+ paramtype = "light",
+ paramtype2 = "facedir",
+ sunlight_propagates = true,
+ node_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5, -0.5, -0, 0.5, 1.5, 0},
+ },
+ },
+ selection_box = {
+ type = "fixed",
+ fixed = {
+ {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
+ },
+ },
+ groups = {cracky=3},
+ use_texture_alpha = true,
+ })
+
+ minetest.register_craft({output = "glass_stained:" .. node.name .. "_top",
+ recipe ={
+ {"glass_stained:" .. node.name},
+ {"glass_stained:" .. node.name},
+ },
+ })
+
+ ::eol::
+
+end
-minetest.register_node("glass_stained:obsidian_glass_normal_top", {
- description = "Normal Obsidian Glass Top",
- drawtype = "nodebox",
- tiles = {"default_obsidian_glass.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:steel_bars_normal_top", {
- description = "Normal Steel Bars Top",
- drawtype = "nodebox",
- tiles = {"xpanes_bar.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_one_top", {
- description = "Stained Glass Type 1 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_one.png",
- "glass_number_one.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_two_top", {
- description = "Stained Glass Type 2 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_two.png",
- "glass_number_two.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_three_top", {
- description = "Stained Glass Type 3 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_three.png",
- "glass_number_three.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_four_top", {
- description = "Stained Glass Type 4 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_four.png",
- "glass_number_four.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_five_top", {
- description = "Stained Glass Type 5 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_five.png",
- "glass_number_five.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_six_top", {
- description = "Stained Glass Type 6 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_six.png",
- "glass_number_six.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_seven_top", {
- description = "Stained Glass Type 7 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_seven.png",
- "glass_number_seven.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_eight_top", {
- description = "Stained Glass Type 8 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_eight.png",
- "glass_number_eight.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_nine_top", {
- description = "Stained Glass Type 9 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_nine.png",
- "glass_number_nine.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_ten_top", {
- description = "Stained Glass Type 10 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_ten.png",
- "glass_number_ten.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_eleven_top", {
- description = "Stained Glass Type 11 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_eleven.png",
- "glass_number_eleven.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_node("glass_stained:glass_number_twelve_top", {
- description = "Stained Glass Type 12 Top",
- drawtype = "nodebox",
- tiles = {"default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "default_glass_detail.png",
- "glass_number_twelve.png",
- "glass_number_twelve.png"},
- paramtype = "light",
- paramtype2 = "facedir",
- sunlight_propagates = true,
- node_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0, 0.5, 1.5, 0},
- },
- },
- selection_box = {
- type = "fixed",
- fixed = {
- {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
- },
- },
- groups = {cracky=3},
- use_texture_alpha = true,
-})
-
-minetest.register_craft({output = "glass_stained:glass_normal",
- recipe ={
- {"default:glass"},
- {"default:glass"},
- {"default:glass"},
- },
-})
-
-minetest.register_craft({output = "glass_stained:obsidian_glass_normal",
- recipe ={
- {"default:obsidian_glass"},
- {"default:obsidian_glass"},
- {"default:obsidian_glass"},
- },
-})
-
-minetest.register_craft({output = "glass_stained:steel_bars_normal",
- recipe ={
- {"default:steel_ingot"},
- {"default:steel_ingot"},
- {"default:steel_ingot"},
- },
-})
-
-minetest.register_craft({output = "glass_stained:steel_bars_fancy",
- recipe ={
- {"default:steel_ingot"},
- {"glass_stained:steel_bars_normal"},
- {"glass_stained:steel_bars_normal"},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_one",
- recipe ={
- {"dye:blue","dye:blue","dye:blue",},
- {"dye:blue","default:glass","dye:blue",},
- {"dye:blue","dye:blue","dye:blue",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_two",
- recipe ={
- {"dye:white","dye:blue","dye:white",},
- {"dye:red","default:glass","dye:red",},
- {"dye:white","dye:blue","dye:white",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_three",
- recipe ={
- {"dye:blue","dye:yellow","dye:blue",},
- {"dye:blue","default:glass","dye:blue",},
- {"dye:blue","dye:yellow","dye:blue",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_four",
- recipe ={
- {"dye:red","dye:yellow","dye:red",},
- {"dye:red","default:glass","dye:red",},
- {"dye:red","dye:yellow","dye:red",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_five",
- recipe ={
- {"dye:red","dye:violet","dye:blue",},
- {"dye:violet","default:glass","dye:violet",},
- {"dye:blue","dye:violet","dye:red",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_six",
- recipe ={
- {"dye:blue","dye:violet","dye:blue",},
- {"dye:violet","default:glass","dye:violet",},
- {"dye:blue","dye:violet","dye:blue",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_seven",
- recipe ={
- {"dye:violet","dye:blue","dye:violet",},
- {"dye:red","default:glass","dye:red",},
- {"dye:violet","dye:blue","dye:violet",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_eight",
- recipe ={
- {"dye:yellow","dye:green","dye:yellow",},
- {"dye:blue","default:glass","dye:blue",},
- {"dye:yellow","dye:green","dye:yellow",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_nine",
- recipe ={
- {"dye:blue","dye:yellow","dye:blue",},
- {"dye:red","default:glass","dye:red",},
- {"dye:blue","dye:yellow","dye:blue",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_ten",
- recipe ={
- {"dye:green","dye:yellow","dye:green",},
- {"dye:cyan","default:glass","dye:cyan",},
- {"dye:green","dye:yellow","dye:green",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_eleven",
- recipe ={
- {"dye:blue","dye:green","dye:blue",},
- {"dye:green","default:glass","dye:green",},
- {"dye:blue","dye:green","dye:blue",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_twelve",
- recipe ={
- {"dye:yellow","dye:cyan","dye:yellow",},
- {"dye:cyan","default:glass","dye:cyan",},
- {"dye:yellow","dye:cyan","dye:yellow",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_one_top",
- recipe ={
- {"glass_stained:glass_number_one",},
- {"glass_stained:glass_number_one",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_two_top",
- recipe ={
- {"glass_stained:glass_number_two",},
- {"glass_stained:glass_number_two",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_three_top",
- recipe ={
- {"glass_stained:glass_number_three",},
- {"glass_stained:glass_number_three",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_four_top",
- recipe ={
- {"glass_stained:glass_number_four",},
- {"glass_stained:glass_number_four",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_five_top",
- recipe ={
- {"glass_stained:glass_number_five",},
- {"glass_stained:glass_number_five",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_six_top",
- recipe ={
- {"glass_stained:glass_number_six",},
- {"glass_stained:glass_number_six",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_seven_top",
- recipe ={
- {"glass_stained:glass_number_seven",},
- {"glass_stained:glass_number_seven",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_eight_top",
- recipe ={
- {"glass_stained:glass_number_eight",},
- {"glass_stained:glass_number_eight",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_nine_top",
- recipe ={
- {"glass_stained:glass_number_nine",},
- {"glass_stained:glass_number_nine",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_ten_top",
- recipe ={
- {"glass_stained:glass_number_ten",},
- {"glass_stained:glass_number_ten",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_eleven_top",
- recipe ={
- {"glass_stained:glass_number_eleven",},
- {"glass_stained:glass_number_eleven",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_number_twelve_top",
- recipe ={
- {"glass_stained:glass_number_twelve",},
- {"glass_stained:glass_number_twelve",},
- },
-})
-
-minetest.register_craft({output = "glass_stained:glass_normal_top",
- recipe ={
- {"glass_stained:glass_normal"},
- {"glass_stained:glass_normal"},
- },
-})
-
-minetest.register_craft({output = "glass_stained:obsidian_glass_normal_top",
- recipe ={
- {"glass_stained:obsidian_glass_normal"},
- {"glass_stained:obsidian_glass_normal"},
- },
+xpanes.register_pane("bar_top", {
+ description = "Iron bar fancy top",
+ textures = {"xpanes_bar_fancy.png","xpanes_bar_fancy.png","default_glass_detail.png"},
+ inventory_image = "xpanes_bar_fancy.png",
+ wield_image = "xpanes_bar_fancy.png",
+ groups = {cracky=2},
+ sounds = default.node_sound_metal_defaults(),
+ recipe = {
+ {"", "default:steel_ingot", ""},
+ {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"},
+ {"default:steel_ingot", "default:steel_ingot", "default:steel_ingot"}
+ }
})
-minetest.register_craft({output = "glass_stained:steel_bars_normal_top",
- recipe ={
- {"glass_stained:steel_bars_normal"},
- {"glass_stained:steel_bars_normal"},
- },
-}) \ No newline at end of file