Add framedglass mod that uses new drawtype
authorRealBadAngel <mk@realbadangel.pl>
Thu, 25 Apr 2013 16:45:15 +0000 (18:45 +0200)
committerRealBadAngel <mk@realbadangel.pl>
Thu, 25 Apr 2013 16:45:39 +0000 (18:45 +0200)
framedglass/depends.txt [new file with mode: 0644]
framedglass/init.lua [new file with mode: 0644]
framedglass/textures/framedglass_glass_face_clean.png [new file with mode: 0644]
framedglass/textures/framedglass_glass_face_streaks.png [new file with mode: 0644]
framedglass/textures/framedglass_steel_frame.png [new file with mode: 0644]
framedglass/textures/framedglass_wooden_frame.png [new file with mode: 0644]

diff --git a/framedglass/depends.txt b/framedglass/depends.txt
new file mode 100644 (file)
index 0000000..4ad96d5
--- /dev/null
@@ -0,0 +1 @@
+default
diff --git a/framedglass/init.lua b/framedglass/init.lua
new file mode 100644 (file)
index 0000000..ebe88ea
--- /dev/null
@@ -0,0 +1,77 @@
+-- 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(),
+})
diff --git a/framedglass/textures/framedglass_glass_face_clean.png b/framedglass/textures/framedglass_glass_face_clean.png
new file mode 100644 (file)
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 (file)
index 0000000..eb169d1
Binary files /dev/null and b/framedglass/textures/framedglass_glass_face_streaks.png differ
diff --git a/framedglass/textures/framedglass_steel_frame.png b/framedglass/textures/framedglass_steel_frame.png
new file mode 100644 (file)
index 0000000..383eab7
Binary files /dev/null and b/framedglass/textures/framedglass_steel_frame.png differ
diff --git a/framedglass/textures/framedglass_wooden_frame.png b/framedglass/textures/framedglass_wooden_frame.png
new file mode 100644 (file)
index 0000000..66f2b72
Binary files /dev/null and b/framedglass/textures/framedglass_wooden_frame.png differ