forked from Mineclonia/Mineclonia
Add recoloring recipes for white bed
This commit is contained in:
parent
1af8cd59b6
commit
6281d885f1
|
@ -14,27 +14,35 @@ local nodebox = {
|
||||||
}
|
}
|
||||||
|
|
||||||
local colors = {
|
local colors = {
|
||||||
{ "red", "Red Bed", "mcl_wool:red" },
|
-- { ID, decription, wool, dye }
|
||||||
{ "blue", "Blue Bed", "mcl_wool:blue" },
|
{ "red", "Red Bed", "mcl_wool:red", "mcl_dye:red" },
|
||||||
{ "cyan", "Cyan Bed", "mcl_wool:cyan" },
|
{ "blue", "Blue Bed", "mcl_wool:blue", "mcl_dye:blue" },
|
||||||
{ "grey", "Grey Bed", "mcl_wool:grey" },
|
{ "cyan", "Cyan Bed", "mcl_wool:cyan", "mcl_dye:cyan" },
|
||||||
{ "silver", "Light Grey Bed", "mcl_wool:silver" },
|
{ "grey", "Grey Bed", "mcl_wool:grey", "mcl_dye:dark_grey" },
|
||||||
{ "black", "Black Bed", "mcl_wool:black" },
|
{ "silver", "Light Grey Bed", "mcl_wool:silver", "mcl_dye:grey" },
|
||||||
{ "yellow", "Yellow Bed", "mcl_wool:yellow" },
|
{ "black", "Black Bed", "mcl_wool:black", "mcl_dye:black" },
|
||||||
{ "green", "Green Bed", "mcl_wool:green" },
|
{ "yellow", "Yellow Bed", "mcl_wool:yellow", "mcl_dye:yellow" },
|
||||||
{ "magenta", "Magenta Bed", "mcl_wool:magenta" },
|
{ "green", "Green Bed", "mcl_wool:green", "mcl_dye:dark_green" },
|
||||||
{ "orange", "Orange Bed", "mcl_wool:orange" },
|
{ "magenta", "Magenta Bed", "mcl_wool:magenta", "mcl_dye:magenta" },
|
||||||
{ "purple", "Purple Bed", "mcl_wool:purple" },
|
{ "orange", "Orange Bed", "mcl_wool:orange", "mcl_dye:orange" },
|
||||||
{ "brown", "Brown Bed", "mcl_wool:brown" },
|
{ "purple", "Purple Bed", "mcl_wool:purple", "mcl_dye:violet" },
|
||||||
{ "pink", "Pink Bed", "mcl_wool:pink" },
|
{ "brown", "Brown Bed", "mcl_wool:brown", "mcl_dye:brown" },
|
||||||
{ "lime", "Lime Bed", "mcl_wool:lime" },
|
{ "pink", "Pink Bed", "mcl_wool:pink", "mcl_dye:pink" },
|
||||||
{ "light_blue", "Light Blue Bed", "mcl_wool:light_blue" },
|
{ "lime", "Lime Bed", "mcl_wool:lime", "mcl_dye:green" },
|
||||||
{ "white", "White Bed", "mcl_wool:white" },
|
{ "light_blue", "Light Blue Bed", "mcl_wool:light_blue", "mcl_dye:lightblue" },
|
||||||
|
{ "white", "White Bed", "mcl_wool:white", "mcl_dye:white" },
|
||||||
}
|
}
|
||||||
|
|
||||||
for c=1, #colors do
|
for c=1, #colors do
|
||||||
local colorid = colors[c][1]
|
local colorid = colors[c][1]
|
||||||
|
|
||||||
|
-- Recoloring recipe for white bed
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mcl_beds:bed_"..colorid.."_bottom",
|
||||||
|
recipe = { { "mcl_beds:bed_white_bottom", colors[c][4] } },
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Register bed
|
||||||
mcl_beds.register_bed("mcl_beds:bed_"..colorid, {
|
mcl_beds.register_bed("mcl_beds:bed_"..colorid, {
|
||||||
description = colors[c][2],
|
description = colors[c][2],
|
||||||
inventory_image = "mcl_beds_bed_"..colorid..".png",
|
inventory_image = "mcl_beds_bed_"..colorid..".png",
|
||||||
|
@ -67,11 +75,13 @@ for c=1, #colors do
|
||||||
bottom = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
|
bottom = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
|
||||||
top = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
|
top = {-0.5, -0.5, -0.5, 0.5, 0.06, 0.5},
|
||||||
},
|
},
|
||||||
|
-- Main bed recipe
|
||||||
recipe = {
|
recipe = {
|
||||||
{colors[c][3], colors[c][3], colors[c][3]},
|
{colors[c][3], colors[c][3], colors[c][3]},
|
||||||
{"group:wood", "group:wood", "group:wood"}
|
{"group:wood", "group:wood", "group:wood"}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_alias("beds:bed_bottom", "mcl_beds:bed_red_bottom")
|
minetest.register_alias("beds:bed_bottom", "mcl_beds:bed_red_bottom")
|
||||||
|
|
Loading…
Reference in New Issue