1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00

add animated ceiling fan

This commit is contained in:
Vanessa Ezekowitz 2014-08-08 16:27:46 -04:00
parent 6626032f28
commit febcdb2605
6 changed files with 34 additions and 0 deletions

View File

@ -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",

View File

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB