fixed Z-fighting between ceiling fan blades and block above

moved it to climate control where it belongs
This commit is contained in:
Vanessa Ezekowitz 2014-08-20 15:01:41 -04:00
parent 2609e68d9d
commit 65c502fe0f
2 changed files with 29 additions and 26 deletions

View File

@ -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', {

View File

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