summaryrefslogtreecommitdiff
path: root/framedglass
diff options
context:
space:
mode:
Diffstat (limited to 'framedglass')
-rw-r--r--framedglass/depends.txt2
-rw-r--r--framedglass/init.lua118
-rw-r--r--framedglass/textures/framedglass_blackglass.pngbin0 -> 346 bytes
-rw-r--r--framedglass/textures/framedglass_blueglass.pngbin0 -> 432 bytes
-rw-r--r--framedglass/textures/framedglass_brownglass.pngbin0 -> 403 bytes
-rw-r--r--framedglass/textures/framedglass_cyanglass.pngbin0 -> 442 bytes
-rw-r--r--framedglass/textures/framedglass_darkgreenglass.pngbin0 -> 414 bytes
-rw-r--r--framedglass/textures/framedglass_darkgreyglass.pngbin0 -> 436 bytes
-rw-r--r--framedglass/textures/framedglass_glass_face_clean.pngbin0 -> 926 bytes
-rw-r--r--framedglass/textures/framedglass_glass_face_streaks.pngbin0 -> 951 bytes
-rw-r--r--framedglass/textures/framedglass_greenglass.pngbin0 -> 445 bytes
-rw-r--r--framedglass/textures/framedglass_greyglass.pngbin0 -> 349 bytes
-rw-r--r--framedglass/textures/framedglass_orangeglass.pngbin0 -> 410 bytes
-rw-r--r--framedglass/textures/framedglass_pinkglass.pngbin0 -> 412 bytes
-rw-r--r--framedglass/textures/framedglass_redglass.pngbin0 -> 444 bytes
-rw-r--r--framedglass/textures/framedglass_steel_frame.pngbin0 -> 740 bytes
-rw-r--r--framedglass/textures/framedglass_violetglass.pngbin0 -> 418 bytes
-rw-r--r--framedglass/textures/framedglass_whiteglass.pngbin0 -> 348 bytes
-rw-r--r--framedglass/textures/framedglass_wooden_frame.pngbin0 -> 387 bytes
-rw-r--r--framedglass/textures/framedglass_yellowglass.pngbin0 -> 400 bytes
-rw-r--r--framedglass/textures/stained_glass_lime.pngbin0 -> 444 bytes
-rw-r--r--framedglass/textures/stained_glass_magenta.pngbin0 -> 313 bytes
22 files changed, 120 insertions, 0 deletions
diff --git a/framedglass/depends.txt b/framedglass/depends.txt
new file mode 100644
index 0000000..765575d
--- /dev/null
+++ b/framedglass/depends.txt
@@ -0,0 +1,2 @@
+default
+dye?
diff --git a/framedglass/init.lua b/framedglass/init.lua
new file mode 100644
index 0000000..bf50495
--- /dev/null
+++ b/framedglass/init.lua
@@ -0,0 +1,118 @@
+-- Minetest 0.4.7 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(),
+ })
+
+ minetest.register_craft({
+ type = "shapeless",
+ output = "framedglass:steel_framed_obsidian_glass"..name,
+ recipe = {
+ "framedglass:steel_framed_glass",
+ "group:basecolor_white",
+ dye
+ }
+ })
+
+end
+
+add_coloured_framedglass ("red","Red","group:basecolor_red","framedglass_redglass.png")
+add_coloured_framedglass ("green","Green","group:basecolor_green","framedglass_greenglass.png")
+add_coloured_framedglass ("blue","Blue","group:basecolor_blue","framedglass_blueglass.png")
+add_coloured_framedglass ("cyan","Cyan","group:basecolor_cyan","framedglass_cyanglass.png")
+add_coloured_framedglass ("darkgreen","Dark Green","group:unicolor_dark_green","framedglass_darkgreenglass.png")
+add_coloured_framedglass ("violet","Violet","group:excolor_violet","framedglass_violetglass.png")
+add_coloured_framedglass ("pink","Pink","group:unicolor_light_red","framedglass_pinkglass.png")
+add_coloured_framedglass ("yellow","Yellow","group:basecolor_yellow","framedglass_yellowglass.png")
+add_coloured_framedglass ("orange","Orange","group:basecolor_orange","framedglass_orangeglass.png")
+add_coloured_framedglass ("brown","Brown","group:unicolor_dark_orange","framedglass_brownglass.png")
+add_coloured_framedglass ("white","White","group:basecolor_white","framedglass_whiteglass.png")
+add_coloured_framedglass ("grey","Grey","group:basecolor_grey","framedglass_greyglass.png")
+add_coloured_framedglass ("darkgrey","Dark Grey","group:excolor_darkgrey","framedglass_darkgreyglass.png")
+add_coloured_framedglass ("black","Black","group:basecolor_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
--- /dev/null
+++ b/framedglass/textures/framedglass_blackglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_blueglass.png b/framedglass/textures/framedglass_blueglass.png
new file mode 100644
index 0000000..2768017
--- /dev/null
+++ b/framedglass/textures/framedglass_blueglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_brownglass.png b/framedglass/textures/framedglass_brownglass.png
new file mode 100644
index 0000000..b61bdbf
--- /dev/null
+++ b/framedglass/textures/framedglass_brownglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_cyanglass.png b/framedglass/textures/framedglass_cyanglass.png
new file mode 100644
index 0000000..31edcc6
--- /dev/null
+++ b/framedglass/textures/framedglass_cyanglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_darkgreenglass.png b/framedglass/textures/framedglass_darkgreenglass.png
new file mode 100644
index 0000000..c90a027
--- /dev/null
+++ b/framedglass/textures/framedglass_darkgreenglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_darkgreyglass.png b/framedglass/textures/framedglass_darkgreyglass.png
new file mode 100644
index 0000000..78c394b
--- /dev/null
+++ b/framedglass/textures/framedglass_darkgreyglass.png
Binary files 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
--- /dev/null
+++ b/framedglass/textures/framedglass_glass_face_clean.png
Binary files 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
--- /dev/null
+++ b/framedglass/textures/framedglass_glass_face_streaks.png
Binary files differ
diff --git a/framedglass/textures/framedglass_greenglass.png b/framedglass/textures/framedglass_greenglass.png
new file mode 100644
index 0000000..0886c74
--- /dev/null
+++ b/framedglass/textures/framedglass_greenglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_greyglass.png b/framedglass/textures/framedglass_greyglass.png
new file mode 100644
index 0000000..bb1927d
--- /dev/null
+++ b/framedglass/textures/framedglass_greyglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_orangeglass.png b/framedglass/textures/framedglass_orangeglass.png
new file mode 100644
index 0000000..4ac3eb7
--- /dev/null
+++ b/framedglass/textures/framedglass_orangeglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_pinkglass.png b/framedglass/textures/framedglass_pinkglass.png
new file mode 100644
index 0000000..68185c7
--- /dev/null
+++ b/framedglass/textures/framedglass_pinkglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_redglass.png b/framedglass/textures/framedglass_redglass.png
new file mode 100644
index 0000000..1d20920
--- /dev/null
+++ b/framedglass/textures/framedglass_redglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_steel_frame.png b/framedglass/textures/framedglass_steel_frame.png
new file mode 100644
index 0000000..383eab7
--- /dev/null
+++ b/framedglass/textures/framedglass_steel_frame.png
Binary files differ
diff --git a/framedglass/textures/framedglass_violetglass.png b/framedglass/textures/framedglass_violetglass.png
new file mode 100644
index 0000000..aec8ce0
--- /dev/null
+++ b/framedglass/textures/framedglass_violetglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_whiteglass.png b/framedglass/textures/framedglass_whiteglass.png
new file mode 100644
index 0000000..0f2a170
--- /dev/null
+++ b/framedglass/textures/framedglass_whiteglass.png
Binary files differ
diff --git a/framedglass/textures/framedglass_wooden_frame.png b/framedglass/textures/framedglass_wooden_frame.png
new file mode 100644
index 0000000..66f2b72
--- /dev/null
+++ b/framedglass/textures/framedglass_wooden_frame.png
Binary files differ
diff --git a/framedglass/textures/framedglass_yellowglass.png b/framedglass/textures/framedglass_yellowglass.png
new file mode 100644
index 0000000..521198c
--- /dev/null
+++ b/framedglass/textures/framedglass_yellowglass.png
Binary files differ
diff --git a/framedglass/textures/stained_glass_lime.png b/framedglass/textures/stained_glass_lime.png
new file mode 100644
index 0000000..782edc9
--- /dev/null
+++ b/framedglass/textures/stained_glass_lime.png
Binary files differ
diff --git a/framedglass/textures/stained_glass_magenta.png b/framedglass/textures/stained_glass_magenta.png
new file mode 100644
index 0000000..43e28b7
--- /dev/null
+++ b/framedglass/textures/stained_glass_magenta.png
Binary files differ