diff options
author | kpoppel <poulsen.kim@gmail.com> | 2013-05-09 14:05:30 -0700 |
---|---|---|
committer | kpoppel <poulsen.kim@gmail.com> | 2013-05-09 14:05:30 -0700 |
commit | 6234e5de8328b9d02b2307c52bf91fb5b656d9db (patch) | |
tree | fa4646f849c7400e3e4ac7d1701c46edf03a6498 /framedglass/init.lua | |
parent | 2d68498dc10bc74a35a5cc0ff4e81b6640807511 (diff) | |
parent | 64207baa4563db90fa80ed23f3b8f41f96f0260d (diff) |
Merge pull request #2 from RealBadAngel/indev
Indev
Diffstat (limited to 'framedglass/init.lua')
-rw-r--r-- | framedglass/init.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/framedglass/init.lua b/framedglass/init.lua index ebe88ea..6bb92ae 100644 --- a/framedglass/init.lua +++ b/framedglass/init.lua @@ -75,3 +75,33 @@ minetest.register_node("framedglass:steel_framed_obsidian_glass", { 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") + |