forked from nalc/homedecor_modpack
add recipes for new lamp colors
This commit is contained in:
parent
f78ee16d6f
commit
d6bddbc97b
@ -52,6 +52,38 @@ minetest.register_craft({
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local lamp_colors = { "blue", "green", "pink", "red", "violet" }
|
||||||
|
|
||||||
|
for _, color in ipairs(lamp_colors) do
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:table_lamp_"..color.."_off",
|
||||||
|
recipe = {
|
||||||
|
{"wool:"..color,"default:torch" ,"wool:"..color},
|
||||||
|
{"","default:stick",""},
|
||||||
|
{"","stairs:slab_wood",""},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "homedecor:table_lamp_"..color.."_off",
|
||||||
|
recipe = {
|
||||||
|
{"wool:"..color,"default:torch" ,"wool:"..color},
|
||||||
|
{"","default:stick",""},
|
||||||
|
{"","stairsplus:slab_wood",""},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "shapeless",
|
||||||
|
output = "homedecor:table_lamp_"..color.."_off",
|
||||||
|
recipe = {
|
||||||
|
"dye:"..color,
|
||||||
|
"homedecor:table_lamp_off",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "homedecor:table_lamp_off",
|
recipe = "homedecor:table_lamp_off",
|
||||||
|
Loading…
Reference in New Issue
Block a user