forked from mtcontrib/homedecor_modpack
add animated ceiling fan
This commit is contained in:
parent
6626032f28
commit
febcdb2605
@ -2065,6 +2065,14 @@ minetest.register_craft({
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:ceiling_fan",
|
||||
recipe = {
|
||||
{ "homedecor:motor" },
|
||||
{ "homedecor:fan_blades" },
|
||||
{ "homedecor:glowlight_small_cube_white" }
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "homedecor:welcome_mat_grey 2",
|
||||
|
@ -356,3 +356,29 @@ minetest.register_node('homedecor:lattice_lantern_small', {
|
||||
on_place = minetest.rotate_node
|
||||
})
|
||||
|
||||
minetest.register_node('homedecor:ceiling_fan', {
|
||||
description = S("Ceiling Fan"),
|
||||
drawtype = "nodebox",
|
||||
tiles = {
|
||||
{ name="homedecor_ceiling_fan_top.png",
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.5} },
|
||||
{ name="homedecor_ceiling_fan_bottom.png",
|
||||
animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=0.5} },
|
||||
'homedecor_ceiling_fan_sides.png',
|
||||
},
|
||||
inventory_image = "homedecor_ceiling_fan_inv.png",
|
||||
node_box = {
|
||||
type = "fixed",
|
||||
fixed = {
|
||||
{ -0.5, 0.5, -0.5, 0.5, 0.5, 0.5 },
|
||||
{ -0.0625, 0.375, -0.0625, 0.0625, 0.5, 0.0625 }
|
||||
}
|
||||
},
|
||||
sunlight_propagates = false,
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
walkable = true,
|
||||
groups = { snappy = 3 },
|
||||
light_source = LIGHT_MAX-1,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
BIN
homedecor/textures/homedecor_ceiling_fan_bottom.png
Normal file
BIN
homedecor/textures/homedecor_ceiling_fan_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
BIN
homedecor/textures/homedecor_ceiling_fan_inv.png
Normal file
BIN
homedecor/textures/homedecor_ceiling_fan_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.1 KiB |
BIN
homedecor/textures/homedecor_ceiling_fan_sides.png
Normal file
BIN
homedecor/textures/homedecor_ceiling_fan_sides.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 164 B |
BIN
homedecor/textures/homedecor_ceiling_fan_top.png
Normal file
BIN
homedecor/textures/homedecor_ceiling_fan_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue
Block a user