Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
bc6b6326c8 | |||
645ad09de9 | |||
3917f23826 | |||
|
b4b5fb96dd |
@ -1,2 +0,0 @@
|
|||||||
default
|
|
||||||
dye?
|
|
41
init.lua
41
init.lua
@ -76,15 +76,17 @@ minetest.register_node("framedglass:steel_framed_obsidian_glass", {
|
|||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("dye") then
|
||||||
function add_coloured_framedglass(name, desc, dye)
|
function add_coloured_framedglass(name, desc, dye)
|
||||||
minetest.register_node( "framedglass:steel_framed_obsidian_glass"..name, {
|
minetest.register_node(
|
||||||
|
"framedglass:steel_framed_obsidian_glass"..name, {
|
||||||
description = "Steel-framed "..desc.." Obsidian Glass",
|
description = "Steel-framed "..desc.." Obsidian Glass",
|
||||||
tiles = {"framedglass_".. name.. "glass_frame.png", "framedglass_".. name.. "glass.png"},
|
tiles = {"framedglass_".. name.. "glass_frame.png", "framedglass_".. name.. "glass.png"},
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = "blend",
|
||||||
groups = {cracky=3},
|
groups = {cracky=3},
|
||||||
sounds = default.node_sound_glass_defaults(),
|
sounds = default.node_sound_glass_defaults(),
|
||||||
})
|
})
|
||||||
@ -93,26 +95,27 @@ function add_coloured_framedglass(name, desc, dye)
|
|||||||
type = "shapeless",
|
type = "shapeless",
|
||||||
output = "framedglass:steel_framed_obsidian_glass"..name,
|
output = "framedglass:steel_framed_obsidian_glass"..name,
|
||||||
recipe = {
|
recipe = {
|
||||||
"framedglass:steel_framed_glass",
|
"framedglass:steel_framed_obsidian_glass",
|
||||||
"group:basecolor_white",
|
"group:color_white",
|
||||||
dye
|
dye
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
add_coloured_framedglass ("red","Red","group:basecolor_red")
|
add_coloured_framedglass ("red","Red","group:color_red")
|
||||||
add_coloured_framedglass ("green","Green","group:basecolor_green")
|
add_coloured_framedglass ("green","Green","group:color_green")
|
||||||
add_coloured_framedglass ("blue","Blue","group:basecolor_blue")
|
add_coloured_framedglass ("blue","Blue","group:color_blue")
|
||||||
add_coloured_framedglass ("cyan","Cyan","group:basecolor_cyan")
|
add_coloured_framedglass ("cyan","Cyan","group:color_cyan")
|
||||||
add_coloured_framedglass ("darkgreen","Dark Green","group:unicolor_dark_green")
|
add_coloured_framedglass ("darkgreen","Dark Green","group:color_dark_green")
|
||||||
add_coloured_framedglass ("violet","Violet","group:excolor_violet")
|
add_coloured_framedglass ("violet","Violet","group:color_violet")
|
||||||
add_coloured_framedglass ("pink","Pink","group:unicolor_light_red")
|
add_coloured_framedglass ("pink","Pink","group:color_pink")
|
||||||
add_coloured_framedglass ("yellow","Yellow","group:basecolor_yellow")
|
add_coloured_framedglass ("yellow","Yellow","group:color_yellow")
|
||||||
add_coloured_framedglass ("orange","Orange","group:basecolor_orange")
|
add_coloured_framedglass ("orange","Orange","group:color_orange")
|
||||||
add_coloured_framedglass ("brown","Brown","group:unicolor_dark_orange")
|
add_coloured_framedglass ("brown","Brown","group:color_brown")
|
||||||
add_coloured_framedglass ("white","White","group:basecolor_white")
|
add_coloured_framedglass ("white","White","group:color_white")
|
||||||
add_coloured_framedglass ("grey","Grey","group:basecolor_grey")
|
add_coloured_framedglass ("grey","Grey","group:color_grey")
|
||||||
add_coloured_framedglass ("darkgrey","Dark Grey","group:excolor_darkgrey")
|
add_coloured_framedglass ("darkgrey","Dark Grey","group:color_dark_grey")
|
||||||
add_coloured_framedglass ("black","Black","group:basecolor_black")
|
add_coloured_framedglass ("black","Black","group:color_black")
|
||||||
|
end
|
||||||
|
|
||||||
|
minetest.log("action", "[framedglass] loaded.")
|
||||||
|
Loading…
Reference in New Issue
Block a user