1
0
miroir de https://github.com/mt-mods/homedecor_modpack.git synchronisé 2025-10-23 18:35:48 +02:00

Add candles and oil lamp

Cette révision appartient à :
Vanessa Ezekowitz
2014-07-27 11:52:42 -04:00
Parent f1f2db92c5
révision 2e05b5d49c
6 fichiers modifiés avec 70 ajouts et 0 suppressions

Voir le fichier

@@ -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({

Voir le fichier

@@ -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(),
})

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 95 B

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 2.4 KiB

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 95 B

Fichier binaire non affiché.

Après

Largeur:  |  Hauteur:  |  Taille: 460 B