revised crafting recipe for desk lamp

This commit is contained in:
Vanessa Ezekowitz 2017-01-31 19:08:21 -05:00
parent 5dd5d3a14b
commit c683874904

View File

@ -2861,18 +2861,14 @@ for i in ipairs(picture_dyes) do
}) })
end end
local dlamp_colors = { "red","blue","green","violet" } minetest.register_craft({
output = "homedecor:desk_lamp 2",
for _, color in ipairs(dlamp_colors) do recipe = {
minetest.register_craft({ { "", "default:steel_ingot", "homedecor:glowlight_small_cube" },
output = "homedecor:desk_lamp_"..color, { "", "homedecor:steel_strip", "" },
recipe = { { "homedecor:plastic_sheeting", "homedecor:copper_wire", "homedecor:plastic_sheeting" },
{ "", "homedecor:steel_strip", "homedecor:glowlight_small_cube" }, },
{ "", "homedecor:copper_wire", "" }, })
{ "homedecor:plastic_sheeting", "dye:"..color, "homedecor:plastic_sheeting" },
},
})
end
minetest.register_craft({ minetest.register_craft({
output = "homedecor:hanging_lantern 2", output = "homedecor:hanging_lantern 2",