Add candles and oil lamp

这个提交包含在:
Vanessa Ezekowitz
2014-07-27 11:52:42 -04:00
父节点 f1f2db92c5
当前提交 2e05b5d49c
共有 6 个文件被更改,包括 70 次插入0 次删除

查看文件

@@ -1195,6 +1195,25 @@ minetest.register_craft({
-- Lighting
-- candles
minetest.register_craft({
output = "homedecor:candle 4",
recipe = {
{"farming:string" },
{"homedecor:paraffin" }
}
})
minetest.register_craft({
output = "homedecor:oil_lamp 4",
recipe = {
{ "", "vessels:glass_bottle", "" },
{ "", "farming:string", "" },
{ "default:steel_ingot", "homedecor:oil_extract", "default:steel_ingot" }
}
})
-- yellow
minetest.register_craft({

查看文件

@@ -268,3 +268,54 @@ minetest.register_node("homedecor:plasma_lamp", {
end
})
minetest.register_node('homedecor:candle', {
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.125, -0.5, -0.125, 0.125, 0, 0.125 },
{ -0.125, 0, 0, 0.125, 0.5, 0 },
{ 0, 0, -0.125, 0, 0.5, 0.125 }
}
},
selection_box = {
type = "fixed",
fixed = {
{ -0.1875, -0.5, -0.1875, 0.1875, 0.5, 0.1875 },
}
},
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', {
description = S("Oil lamp"),
drawtype = "plantlike",
tiles = { 'homedecor_oil_lamp.png' },
inventory_image = 'homedecor_oil_lamp.png',
sunlight_propagates = true,
paramtype = "light",
paramtype2 = "facedir",
walkable = true,
selection_box = {
type = "fixed",
fixed = {
{ -0.3, -0.5, -0.3, 0.3, 0.5, 0.3 },
}
},
groups = { snappy = 3 },
light_source = LIGHT_MAX-4,
sounds = default.node_sound_wood_defaults(),
})

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 95 B

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 2.4 KiB

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 95 B

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 460 B