diff --git a/homedecor/climate-control.lua b/homedecor/climate-control.lua index 4afeb192..03f1f021 100644 --- a/homedecor/climate-control.lua +++ b/homedecor/climate-control.lua @@ -115,6 +115,35 @@ minetest.register_node("homedecor:desk_fan", { end, }) +-- ceiling fan + +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.495, -0.5, 0.5, 0.495, 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(), +}) + -- heating devices minetest.register_node('homedecor:space_heater', { diff --git a/homedecor/lighting.lua b/homedecor/lighting.lua index 4edd279f..9d03e50d 100644 --- a/homedecor/lighting.lua +++ b/homedecor/lighting.lua @@ -356,29 +356,3 @@ 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(), -})