Make red curtain darker
This commit is contained in:
parent
4a10d2f68c
commit
8610d1e88f
@ -234,7 +234,7 @@ xdecor.register("cobweb", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
local curtain_colors = {
|
local curtain_colors = {
|
||||||
red = S("Red Curtain"),
|
red = { S("Red Curtain"), "wool_red.png", "wool:red" },
|
||||||
}
|
}
|
||||||
|
|
||||||
-- For preserve_metadata for curtains.
|
-- For preserve_metadata for curtains.
|
||||||
@ -248,15 +248,16 @@ local cleanup_curtain_meta = function(_,_,_,drops)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for c, desc in pairs(curtain_colors) do
|
for c, info in pairs(curtain_colors) do
|
||||||
|
local desc = info[1]
|
||||||
|
local base_texture = info[2]
|
||||||
|
local craft_item = info[3]
|
||||||
xdecor.register("curtain_" .. c, {
|
xdecor.register("curtain_" .. c, {
|
||||||
description = desc,
|
description = desc,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
tiles = {"wool_white.png"},
|
tiles = {base_texture},
|
||||||
color = c,
|
inventory_image = base_texture.."^xdecor_curtain_open_overlay.png^[makealpha:255,126,126",
|
||||||
inventory_image = "wool_white.png^[colorize:" .. c ..
|
wield_image = base_texture.."^xdecor_curtain_open_overlay.png^[makealpha:255,126,126",
|
||||||
":170^xdecor_curtain_open_overlay.png^[makealpha:255,126,126",
|
|
||||||
wield_image = "wool_white.png^[colorize:" .. c .. ":170",
|
|
||||||
drawtype = "signlike",
|
drawtype = "signlike",
|
||||||
paramtype2 = "colorwallmounted",
|
paramtype2 = "colorwallmounted",
|
||||||
groups = {dig_immediate = 3, flammable = 3},
|
groups = {dig_immediate = 3, flammable = 3},
|
||||||
@ -270,8 +271,7 @@ for c, desc in pairs(curtain_colors) do
|
|||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("curtain_open_" .. c, {
|
xdecor.register("curtain_open_" .. c, {
|
||||||
tiles = {"wool_white.png^xdecor_curtain_open_overlay.png^[makealpha:255,126,126"},
|
tiles = {base_texture.."^xdecor_curtain_open_overlay.png^[makealpha:255,126,126"},
|
||||||
color = c,
|
|
||||||
drawtype = "signlike",
|
drawtype = "signlike",
|
||||||
paramtype2 = "colorwallmounted",
|
paramtype2 = "colorwallmounted",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
@ -289,8 +289,8 @@ for c, desc in pairs(curtain_colors) do
|
|||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "xdecor:curtain_" .. c .. " 4",
|
output = "xdecor:curtain_" .. c .. " 4",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "wool:" .. c, ""},
|
{"", craft_item, ""},
|
||||||
{"", "wool:" .. c, ""}
|
{"", craft_item, ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user