forked from nalc/homedecor_modpack
make colored lamps flammable
This commit is contained in:
parent
d6bddbc97b
commit
a2536da5fa
|
@ -7,6 +7,7 @@ minetest.register_craft({
|
|||
},
|
||||
})
|
||||
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:table",
|
||||
|
@ -52,6 +53,12 @@ minetest.register_craft({
|
|||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:table_lamp_off",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
local lamp_colors = { "blue", "green", "pink", "red", "violet" }
|
||||
|
||||
for _, color in ipairs(lamp_colors) do
|
||||
|
@ -82,13 +89,14 @@ for _, color in ipairs(lamp_colors) do
|
|||
"homedecor:table_lamp_off",
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:table_lamp_off",
|
||||
burntime = 10,
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
recipe = "homedecor:table_lamp_"..color.."_off",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:toilet",
|
||||
|
|
Loading…
Reference in New Issue
Block a user