add recipes for new lamp colors

This commit is contained in:
Vanessa Ezekowitz 2014-06-27 17:15:57 -04:00
parent f78ee16d6f
commit d6bddbc97b

View File

@ -35,23 +35,55 @@ minetest.register_craft({
})
minetest.register_craft({
output = "homedecor:table_lamp_off",
recipe = {
{"default:paper","default:torch" ,"default:paper"},
{"","default:stick",""},
{"","stairs:slab_wood",""},
},
output = "homedecor:table_lamp_off",
recipe = {
{"default:paper","default:torch" ,"default:paper"},
{"","default:stick",""},
{"","stairs:slab_wood",""},
},
})
minetest.register_craft({
output = "homedecor:table_lamp_off",
recipe = {
{"default:paper","default:torch" ,"default:paper"},
{"","default:stick",""},
{"","stairsplus:slab_wood",""},
},
output = "homedecor:table_lamp_off",
recipe = {
{"default:paper","default:torch" ,"default:paper"},
{"","default:stick",""},
{"","stairsplus:slab_wood",""},
},
})
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({
type = "fuel",
recipe = "homedecor:table_lamp_off",