Add thin candle, repurpose "thick" candle recipe for it

add new recipe for thick candle
This commit is contained in:
kilbith 2014-09-22 08:40:03 +02:00 committed by Vanessa Ezekowitz
parent b8807bfe83
commit 5f1ce0b01f
2 changed files with 41 additions and 1 deletions

View File

@ -1250,13 +1250,22 @@ minetest.register_craft({
-- candles -- candles
minetest.register_craft({ minetest.register_craft({
output = "homedecor:candle 4", output = "homedecor:candle_thin 4",
recipe = { recipe = {
{"farming:string" }, {"farming:string" },
{"homedecor:paraffin" } {"homedecor:paraffin" }
} }
}) })
minetest.register_craft({
output = "homedecor:candle 2",
recipe = {
{"farming:string" },
{"homedecor:paraffin" },
{"homedecor:paraffin" }
}
})
minetest.register_craft({ minetest.register_craft({
output = "homedecor:oil_lamp 4", output = "homedecor:oil_lamp 4",
recipe = { recipe = {

View File

@ -299,6 +299,37 @@ minetest.register_node('homedecor:candle', {
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
}) })
minetest.register_node('homedecor:candle_thin', {
description = S("Candle"),
drawtype = "nodebox",
tiles = {
'homedecor_candle_top.png',
'homedecor_candle_bottom.png',
{name="homedecor_candle_sides.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
},
node_box = {
type = "fixed",
fixed = {
{ -0.0625, -0.5, -0.0625, 0.0625, 0, 0.0625 },
{ -0.125, 0, 0, 0.125, 0.5, 0 },
{ 0, 0, -0.125, 0, 0.5, 0.125 }
}
},
selection_box = {
type = "fixed",
fixed = {
{ -0.125, -0.5, -0.125, 0.125, 0.35, 0.125 },
}
},
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node('homedecor:oil_lamp', { minetest.register_node('homedecor:oil_lamp', {
description = S("Oil lamp"), description = S("Oil lamp"),
drawtype = "plantlike", drawtype = "plantlike",