forked from mff/framedglass
Corrige la fabrication des versions colorées
This commit is contained in:
parent
b4b5fb96dd
commit
3917f23826
74
init.lua
74
init.lua
@ -76,44 +76,46 @@ minetest.register_node("framedglass:steel_framed_obsidian_glass", {
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
||||
function add_coloured_framedglass(name, desc, dye)
|
||||
minetest.register_node( "framedglass:steel_framed_obsidian_glass"..name, {
|
||||
description = "Steel-framed "..desc.." Obsidian Glass",
|
||||
tiles = {"framedglass_".. name.. "glass_frame.png", "framedglass_".. name.. "glass.png"},
|
||||
drawtype = "glasslike_framed_optional",
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = true,
|
||||
use_texture_alpha = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
if minetest.get_modpath("dye") then
|
||||
function add_coloured_framedglass(name, desc, dye)
|
||||
minetest.register_node(
|
||||
"framedglass:steel_framed_obsidian_glass"..name, {
|
||||
description = "Steel-framed "..desc.." Obsidian Glass",
|
||||
tiles = {"framedglass_".. name.. "glass_frame.png", "framedglass_".. name.. "glass.png"},
|
||||
drawtype = "glasslike_framed_optional",
|
||||
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
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = "framedglass:steel_framed_obsidian_glass"..name,
|
||||
recipe = {
|
||||
"framedglass:steel_framed_obsidian_glass",
|
||||
"group:color_white",
|
||||
dye
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
add_coloured_framedglass ("red","Red","group:color_red")
|
||||
add_coloured_framedglass ("green","Green","group:color_green")
|
||||
add_coloured_framedglass ("blue","Blue","group:color_blue")
|
||||
add_coloured_framedglass ("cyan","Cyan","group:color_cyan")
|
||||
add_coloured_framedglass ("darkgreen","Dark Green","group:color_dark_green")
|
||||
add_coloured_framedglass ("violet","Violet","group:color_violet")
|
||||
add_coloured_framedglass ("pink","Pink","group:color_pink")
|
||||
add_coloured_framedglass ("yellow","Yellow","group:color_yellow")
|
||||
add_coloured_framedglass ("orange","Orange","group:color_orange")
|
||||
add_coloured_framedglass ("brown","Brown","group:color_brown")
|
||||
add_coloured_framedglass ("white","White","group:color_white")
|
||||
add_coloured_framedglass ("grey","Grey","group:color_grey")
|
||||
add_coloured_framedglass ("darkgrey","Dark Grey","group:color_dark_grey")
|
||||
add_coloured_framedglass ("black","Black","group:color_black")
|
||||
end
|
||||
|
||||
add_coloured_framedglass ("red","Red","group:basecolor_red")
|
||||
add_coloured_framedglass ("green","Green","group:basecolor_green")
|
||||
add_coloured_framedglass ("blue","Blue","group:basecolor_blue")
|
||||
add_coloured_framedglass ("cyan","Cyan","group:basecolor_cyan")
|
||||
add_coloured_framedglass ("darkgreen","Dark Green","group:unicolor_dark_green")
|
||||
add_coloured_framedglass ("violet","Violet","group:excolor_violet")
|
||||
add_coloured_framedglass ("pink","Pink","group:unicolor_light_red")
|
||||
add_coloured_framedglass ("yellow","Yellow","group:basecolor_yellow")
|
||||
add_coloured_framedglass ("orange","Orange","group:basecolor_orange")
|
||||
add_coloured_framedglass ("brown","Brown","group:unicolor_dark_orange")
|
||||
add_coloured_framedglass ("white","White","group:basecolor_white")
|
||||
add_coloured_framedglass ("grey","Grey","group:basecolor_grey")
|
||||
add_coloured_framedglass ("darkgrey","Dark Grey","group:excolor_darkgrey")
|
||||
add_coloured_framedglass ("black","Black","group:basecolor_black")
|
||||
|
||||
minetest.log("action", "[framedglass] loaded.")
|
||||
|
Loading…
Reference in New Issue
Block a user