From: RealBadAngel Date: Sun, 30 Jun 2013 19:47:32 +0000 (+0200) Subject: Re-add Framed Glass X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=44508110e83ac1cd01c3f58b1387568d8962c769;p=zefram%2Fminetest%2Ftechnic.git Re-add Framed Glass --- diff --git a/framedglass/depends.txt b/framedglass/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/framedglass/depends.txt @@ -0,0 +1 @@ +default diff --git a/framedglass/init.lua b/framedglass/init.lua new file mode 100644 index 0000000..6bb92ae --- /dev/null +++ b/framedglass/init.lua @@ -0,0 +1,107 @@ +-- Minetest 0.4.5 mod: framedglass + +minetest.register_craft({ + output = 'framedglass:wooden_framed_glass 4', + recipe = { + {'default:glass', 'default:glass', 'default:stick'}, + {'default:glass', 'default:glass', 'default:stick'}, + {'default:stick', 'default:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'framedglass:steel_framed_glass 4', + recipe = { + {'default:glass', 'default:glass', 'default:steel_ingot'}, + {'default:glass', 'default:glass', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot', ''}, + } +}) + +minetest.register_craft({ + output = 'framedglass:wooden_framed_obsidian_glass 4', + recipe = { + {'default:obsidian_glass', 'default:obsidian_glass', 'default:stick'}, + {'default:obsidian_glass', 'default:obsidian_glass', 'default:stick'}, + {'default:stick', 'default:stick', ''}, + } +}) + +minetest.register_craft({ + output = 'framedglass:steel_framed_obsidian_glass 4', + recipe = { + {'default:obsidian_glass', 'default:obsidian_glass', 'default:steel_ingot'}, + {'default:obsidian_glass', 'default:obsidian_glass', 'default:steel_ingot'}, + {'default:steel_ingot', 'default:steel_ingot', ''}, + } +}) + +minetest.register_node("framedglass:wooden_framed_glass", { + description = "Wooden-framed Glass", + drawtype = "glasslike_framed", + tiles = {"framedglass_wooden_frame.png","framedglass_glass_face_streaks.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("framedglass:steel_framed_glass", { + description = "Steel-framed Glass", + drawtype = "glasslike_framed", + tiles = {"framedglass_steel_frame.png","framedglass_glass_face_streaks.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("framedglass:wooden_framed_obsidian_glass", { + description = "Wooden-framed Obsidian Glass", + drawtype = "glasslike_framed", + tiles = {"framedglass_wooden_frame.png","framedglass_glass_face_clean.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +minetest.register_node("framedglass:steel_framed_obsidian_glass", { + description = "Steel-framed Obsidian Glass", + drawtype = "glasslike_framed", + tiles = {"framedglass_steel_frame.png","framedglass_glass_face_clean.png"}, + paramtype = "light", + sunlight_propagates = true, + groups = {cracky=3,oddly_breakable_by_hand=3}, + sounds = default.node_sound_glass_defaults(), +}) + +function add_coloured_framedglass(name, desc, dye, texture) +minetest.register_node( "framedglass:steel_framed_obsidian_glass"..name, { + description = "Steel-framed "..desc.." Obsidian Glass", + tiles = {"framedglass_steel_frame.png",texture}, + drawtype = "glasslike_framed", + paramtype = "light", + sunlight_propagates = true, + is_ground_content = true, + use_texture_alpha = true, + groups = {cracky=3}, + sounds = default.node_sound_glass_defaults(), +}) +end + +add_coloured_framedglass ("red","Red","","framedglass_redglass.png") +add_coloured_framedglass ("green","Green","","framedglass_greenglass.png") +add_coloured_framedglass ("blue","Blue","","framedglass_blueglass.png") +add_coloured_framedglass ("cyan","Cyan","","framedglass_cyanglass.png") +add_coloured_framedglass ("darkgreen","Dark Green","","framedglass_darkgreenglass.png") +add_coloured_framedglass ("violet","Violet","","framedglass_violetglass.png") +add_coloured_framedglass ("pink","Pink","","framedglass_pinkglass.png") +add_coloured_framedglass ("yellow","Yellow","","framedglass_yellowglass.png") +add_coloured_framedglass ("orange","Orange","","framedglass_orangeglass.png") +add_coloured_framedglass ("brown","Brown","","framedglass_brownglass.png") +add_coloured_framedglass ("white","White","","framedglass_whiteglass.png") +add_coloured_framedglass ("grey","Grey","","framedglass_greyglass.png") +add_coloured_framedglass ("darkgrey","Dark Grey","","framedglass_darkgreyglass.png") +add_coloured_framedglass ("black","Black","","framedglass_blackglass.png") + diff --git a/framedglass/textures/framedglass_blackglass.png b/framedglass/textures/framedglass_blackglass.png new file mode 100644 index 0000000..4e82027 Binary files /dev/null and b/framedglass/textures/framedglass_blackglass.png differ diff --git a/framedglass/textures/framedglass_blueglass.png b/framedglass/textures/framedglass_blueglass.png new file mode 100644 index 0000000..2768017 Binary files /dev/null and b/framedglass/textures/framedglass_blueglass.png differ diff --git a/framedglass/textures/framedglass_brownglass.png b/framedglass/textures/framedglass_brownglass.png new file mode 100644 index 0000000..b61bdbf Binary files /dev/null and b/framedglass/textures/framedglass_brownglass.png differ diff --git a/framedglass/textures/framedglass_cyanglass.png b/framedglass/textures/framedglass_cyanglass.png new file mode 100644 index 0000000..31edcc6 Binary files /dev/null and b/framedglass/textures/framedglass_cyanglass.png differ diff --git a/framedglass/textures/framedglass_darkgreenglass.png b/framedglass/textures/framedglass_darkgreenglass.png new file mode 100644 index 0000000..c90a027 Binary files /dev/null and b/framedglass/textures/framedglass_darkgreenglass.png differ diff --git a/framedglass/textures/framedglass_darkgreyglass.png b/framedglass/textures/framedglass_darkgreyglass.png new file mode 100644 index 0000000..78c394b Binary files /dev/null and b/framedglass/textures/framedglass_darkgreyglass.png differ diff --git a/framedglass/textures/framedglass_glass_face_clean.png b/framedglass/textures/framedglass_glass_face_clean.png new file mode 100644 index 0000000..385d6d2 Binary files /dev/null and b/framedglass/textures/framedglass_glass_face_clean.png differ diff --git a/framedglass/textures/framedglass_glass_face_streaks.png b/framedglass/textures/framedglass_glass_face_streaks.png new file mode 100644 index 0000000..eb169d1 Binary files /dev/null and b/framedglass/textures/framedglass_glass_face_streaks.png differ diff --git a/framedglass/textures/framedglass_greenglass.png b/framedglass/textures/framedglass_greenglass.png new file mode 100644 index 0000000..0886c74 Binary files /dev/null and b/framedglass/textures/framedglass_greenglass.png differ diff --git a/framedglass/textures/framedglass_greyglass.png b/framedglass/textures/framedglass_greyglass.png new file mode 100644 index 0000000..bb1927d Binary files /dev/null and b/framedglass/textures/framedglass_greyglass.png differ diff --git a/framedglass/textures/framedglass_orangeglass.png b/framedglass/textures/framedglass_orangeglass.png new file mode 100644 index 0000000..4ac3eb7 Binary files /dev/null and b/framedglass/textures/framedglass_orangeglass.png differ diff --git a/framedglass/textures/framedglass_pinkglass.png b/framedglass/textures/framedglass_pinkglass.png new file mode 100644 index 0000000..68185c7 Binary files /dev/null and b/framedglass/textures/framedglass_pinkglass.png differ diff --git a/framedglass/textures/framedglass_redglass.png b/framedglass/textures/framedglass_redglass.png new file mode 100644 index 0000000..1d20920 Binary files /dev/null and b/framedglass/textures/framedglass_redglass.png differ diff --git a/framedglass/textures/framedglass_steel_frame.png b/framedglass/textures/framedglass_steel_frame.png new file mode 100644 index 0000000..383eab7 Binary files /dev/null and b/framedglass/textures/framedglass_steel_frame.png differ diff --git a/framedglass/textures/framedglass_violetglass.png b/framedglass/textures/framedglass_violetglass.png new file mode 100644 index 0000000..aec8ce0 Binary files /dev/null and b/framedglass/textures/framedglass_violetglass.png differ diff --git a/framedglass/textures/framedglass_whiteglass.png b/framedglass/textures/framedglass_whiteglass.png new file mode 100644 index 0000000..0f2a170 Binary files /dev/null and b/framedglass/textures/framedglass_whiteglass.png differ diff --git a/framedglass/textures/framedglass_wooden_frame.png b/framedglass/textures/framedglass_wooden_frame.png new file mode 100644 index 0000000..66f2b72 Binary files /dev/null and b/framedglass/textures/framedglass_wooden_frame.png differ diff --git a/framedglass/textures/framedglass_yellowglass.png b/framedglass/textures/framedglass_yellowglass.png new file mode 100644 index 0000000..521198c Binary files /dev/null and b/framedglass/textures/framedglass_yellowglass.png differ diff --git a/framedglass/textures/stained_glass_lime.png b/framedglass/textures/stained_glass_lime.png new file mode 100644 index 0000000..782edc9 Binary files /dev/null and b/framedglass/textures/stained_glass_lime.png differ diff --git a/framedglass/textures/stained_glass_magenta.png b/framedglass/textures/stained_glass_magenta.png new file mode 100644 index 0000000..43e28b7 Binary files /dev/null and b/framedglass/textures/stained_glass_magenta.png differ