fixes warning spam (#20)

* fix fake fire warnings

* fix hd 3d extras warnings

* fix hd climate control warnings

* fix hd clocks warnings

* fix hd cobweb warnings

* fix hd doors/gates warnings

* fix hd exterior warnings

* fix hd fences warnings

* fix hd gastronomy warnings

* fix hd kitchen missing dependency

* fix hd office warnings

* fix hd roofing warnings

* fix hd table warnings

* fix hd trash cans warnings

* fix hd wardrobe warnings

* remove legacy hack
This commit is contained in:
wsor4035 2022-02-07 08:18:17 -05:00 committed by GitHub
parent d68e90f017
commit 0c2271fa46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 41 additions and 10 deletions

View File

@ -179,6 +179,7 @@ minetest.register_node("fake_fire:fancy_fire", {
mesh = "fancy_fire.obj", mesh = "fancy_fire.obj",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
use_texture_alpha = "clip",
groups = {oddly_breakable_by_hand=3, flammable=0}, groups = {oddly_breakable_by_hand=3, flammable=0},
sunlight_propagates = true, sunlight_propagates = true,
light_source = 13, light_source = 13,

View File

@ -1,2 +1,2 @@
name = fake_fire name = fake_fire
depends = default depends = default, basic_materials

View File

@ -21,7 +21,7 @@ if minetest.get_modpath("vessels") then
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
use_texture_alpha = true use_texture_alpha = "blend",
}) })
local sbox = { local sbox = {
@ -35,7 +35,7 @@ if minetest.get_modpath("vessels") then
tiles = {"homedecor_3d_vessels_shelf_glass.png"}, tiles = {"homedecor_3d_vessels_shelf_glass.png"},
inventory_image = "homedecor_3d_vessels_glass_bottle_inv.png", inventory_image = "homedecor_3d_vessels_glass_bottle_inv.png",
wield_image = "homedecor_3d_vessels_glass_bottle_inv.png", wield_image = "homedecor_3d_vessels_glass_bottle_inv.png",
use_texture_alpha = true, use_texture_alpha = "blend",
selection_box = sbox selection_box = sbox
}) })
@ -54,7 +54,7 @@ if minetest.get_modpath("vessels") then
tiles = {"homedecor_3d_vessels_shelf_glass.png"}, tiles = {"homedecor_3d_vessels_shelf_glass.png"},
inventory_image = "homedecor_3d_vessels_drinking_glass_inv.png", inventory_image = "homedecor_3d_vessels_drinking_glass_inv.png",
wield_image = "homedecor_3d_vessels_drinking_glass_inv.png", wield_image = "homedecor_3d_vessels_drinking_glass_inv.png",
use_texture_alpha = true, use_texture_alpha = "blend",
selection_box = sbox selection_box = sbox
}) })
end end

View File

@ -10,6 +10,7 @@ homedecor.register("air_conditioner", {
"default_glass.png" "default_glass.png"
}, },
groups = { snappy = 3 }, groups = { snappy = 3 },
use_texture_alpha = "clip",
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = { type="regular" }, selection_box = { type="regular" },
}) })
@ -95,6 +96,7 @@ homedecor.register("ceiling_fan", {
{ -0.0625, 0.375, -0.0625, 0.0625, 0.5, 0.0625 } { -0.0625, 0.375, -0.0625, 0.0625, 0.5, 0.0625 }
} }
}, },
use_texture_alpha = "clip",
groups = { snappy = 3 }, groups = { snappy = 3 },
light_source = default.LIGHT_MAX-1, light_source = default.LIGHT_MAX-1,
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),

View File

@ -88,6 +88,7 @@ homedecor.register("grandfather_clock", {
"homedecor_grandfather_clock_face_edge.png", "homedecor_grandfather_clock_face_edge.png",
"homedecor_generic_metal_brass.png" "homedecor_generic_metal_brass.png"
}, },
use_texture_alpha = "clip",
inventory_image = "homedecor_grandfather_clock_inv.png", inventory_image = "homedecor_grandfather_clock_inv.png",
groups = { snappy = 3 }, groups = { snappy = 3 },
selection_box = gf_cbox, selection_box = gf_cbox,

View File

@ -30,6 +30,7 @@ minetest.register_node(":homedecor:cobweb_centered", {
drawtype = "nodebox", drawtype = "nodebox",
tiles = { "homedecor_cobweb.png" }, tiles = { "homedecor_cobweb.png" },
inventory_image = "homedecor_cobweb.png", inventory_image = "homedecor_cobweb.png",
use_texture_alpha = "clip",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, sunlight_propagates = true,
@ -59,6 +60,7 @@ minetest.register_node(":homedecor:cobweb_flat", {
inventory_image = "homedecor_cobweb.png", inventory_image = "homedecor_cobweb.png",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
use_texture_alpha = "clip",
sunlight_propagates = true, sunlight_propagates = true,
liquid_viscosity = 8, liquid_viscosity = 8,
liquidtype = "source", liquidtype = "source",

View File

@ -183,12 +183,11 @@ for _, door in ipairs(door_list) do
if door.alpha then if door.alpha then
local def = table.copy(minetest.registered_nodes[nn_a]) local def = table.copy(minetest.registered_nodes[nn_a])
def.use_texture_alpha = true def.use_texture_alpha = "blend"
def.mesh = "door_a.obj" -- leaving this out will break the _a model
minetest.register_node(":"..nn_a, def) -- assignment when the override takes place minetest.register_node(":"..nn_a, def) -- assignment when the override takes place
def = table.copy(minetest.registered_nodes[nn_b]) def = table.copy(minetest.registered_nodes[nn_b])
def.use_texture_alpha = true def.use_texture_alpha = "blend"
minetest.register_node(":"..nn_b, def) minetest.register_node(":"..nn_b, def)
end end
@ -307,6 +306,7 @@ for i, g in ipairs(gate_list) do
description = gatedesc, description = gatedesc,
tiles = tiles, tiles = tiles,
paramtype = "light", paramtype = "light",
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir", paramtype2 = "facedir",

View File

@ -94,6 +94,7 @@ homedecor.register("lattice_"..name, {
description = S("Garden Lattice (@1)", desc), description = S("Garden Lattice (@1)", desc),
tiles = {"homedecor_lattice"..texture}, tiles = {"homedecor_lattice"..texture},
inventory_image = "homedecor_lattice"..texture, inventory_image = "homedecor_lattice"..texture,
use_texture_alpha = "clip",
groups = { snappy=3 }, groups = { snappy=3 },
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -121,6 +122,7 @@ homedecor.register("swing", {
"homedecor_swing_top.png" "homedecor_swing_top.png"
}, },
inventory_image = "homedecor_swing_inv.png", inventory_image = "homedecor_swing_inv.png",
use_texture_alpha = "clip",
groups = { snappy=3, oddly_breakable_by_hand=3 }, groups = { snappy=3, oddly_breakable_by_hand=3 },
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
walkable = false, walkable = false,
@ -219,6 +221,7 @@ homedecor.register("well", {
}, },
inventory_image = "homedecor_well_inv.png", inventory_image = "homedecor_well_inv.png",
description = S("Water well"), description = S("Water well"),
use_texture_alpha = "clip",
groups = { snappy = 3 }, groups = { snappy = 3 },
selection_box = homedecor.nodebox.slab_y(2), selection_box = homedecor.nodebox.slab_y(2),
collision_box = homedecor.nodebox.slab_y(2), collision_box = homedecor.nodebox.slab_y(2),
@ -265,6 +268,7 @@ for color, color_loc in pairs(homedecor_exterior.shrub_colors) do
tiles = {"homedecor_shrubbery_"..color..".png"}, tiles = {"homedecor_shrubbery_"..color..".png"},
paramtype = "light", paramtype = "light",
is_ground_content = false, is_ground_content = false,
use_texture_alpha = "clip",
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
}) })
@ -280,6 +284,7 @@ for color, color_loc in pairs(homedecor_exterior.shrub_colors) do
}, },
paramtype = "light", paramtype = "light",
is_ground_content = false, is_ground_content = false,
use_texture_alpha = "clip",
groups = {snappy=3, flammable=2}, groups = {snappy=3, flammable=2},
sounds = default.node_sound_leaves_defaults(), sounds = default.node_sound_leaves_defaults(),
selection_box = shrub_cbox, selection_box = shrub_cbox,

View File

@ -35,6 +35,7 @@ homedecor.register("fence_picket", {
"homedecor_fence_picket_backside.png", "homedecor_fence_picket_backside.png",
"homedecor_fence_picket.png" "homedecor_fence_picket.png"
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.slab_z(-0.1), selection_box = homedecor.nodebox.slab_z(-0.1),
@ -51,6 +52,7 @@ homedecor.register("fence_picket_corner", {
"homedecor_fence_picket_backside.png", "homedecor_fence_picket_backside.png",
"homedecor_fence_picket.png", "homedecor_fence_picket.png",
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.corner_xz(0.1, -0.1), selection_box = homedecor.nodebox.corner_xz(0.1, -0.1),
@ -67,6 +69,7 @@ homedecor.register("fence_picket_white", {
"homedecor_fence_picket_white_backside.png", "homedecor_fence_picket_white_backside.png",
"homedecor_fence_picket_white.png" "homedecor_fence_picket_white.png"
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.slab_z(-0.1), selection_box = homedecor.nodebox.slab_z(-0.1),
@ -83,6 +86,7 @@ homedecor.register("fence_picket_corner_white", {
"homedecor_fence_picket_white_backside.png", "homedecor_fence_picket_white_backside.png",
"homedecor_fence_picket_white.png", "homedecor_fence_picket_white.png",
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.corner_xz(0.1, -0.1), selection_box = homedecor.nodebox.corner_xz(0.1, -0.1),
@ -152,6 +156,7 @@ homedecor.register("fence_barbed_wire", {
description = S("Barbed Wire Fence"), description = S("Barbed Wire Fence"),
mesh = "homedecor_fence_barbed_wire.obj", mesh = "homedecor_fence_barbed_wire.obj",
tiles = {"homedecor_fence_barbed_wire.png"}, tiles = {"homedecor_fence_barbed_wire.png"},
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.slab_z(-0.125), selection_box = homedecor.nodebox.slab_z(-0.125),
@ -162,6 +167,7 @@ homedecor.register("fence_barbed_wire_corner", {
description = S("Barbed Wire Fence Corner"), description = S("Barbed Wire Fence Corner"),
mesh = "homedecor_fence_barbed_wire_corner.obj", mesh = "homedecor_fence_barbed_wire_corner.obj",
tiles = { "homedecor_fence_barbed_wire.png" }, tiles = { "homedecor_fence_barbed_wire.png" },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.corner_xz(0.125, -0.125), selection_box = homedecor.nodebox.corner_xz(0.125, -0.125),
@ -179,6 +185,7 @@ homedecor.register("fence_chainlink", {
"homedecor_fence_chainlink_fb.png", "homedecor_fence_chainlink_fb.png",
"homedecor_fence_chainlink_fb.png", "homedecor_fence_chainlink_fb.png",
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.slab_z(-0.125), selection_box = homedecor.nodebox.slab_z(-0.125),
@ -197,6 +204,7 @@ homedecor.register("fence_chainlink_corner", {
"homedecor_fence_chainlink_corner_front.png", "homedecor_fence_chainlink_corner_front.png",
"homedecor_fence_chainlink_corner_front.png", "homedecor_fence_chainlink_corner_front.png",
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.corner_xz(0.125, -0.125), selection_box = homedecor.nodebox.corner_xz(0.125, -0.125),
@ -213,6 +221,7 @@ homedecor.register("fence_wrought_iron_2", {
"homedecor_fence_wrought_iron_2_fb.png", "homedecor_fence_wrought_iron_2_fb.png",
"homedecor_fence_wrought_iron_2_fb.png" "homedecor_fence_wrought_iron_2_fb.png"
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.slab_z(-0.08), selection_box = homedecor.nodebox.slab_z(-0.08),
@ -240,6 +249,7 @@ homedecor.register("fence_wrought_iron_2_corner", {
"homedecor_fence_corner_wrought_iron_2_sides.png^[transformFX", "homedecor_fence_corner_wrought_iron_2_sides.png^[transformFX",
"homedecor_fence_corner_wrought_iron_2_sides.png" "homedecor_fence_corner_wrought_iron_2_sides.png"
}, },
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = homedecor.nodebox.corner_xz(0.08, -0.08), selection_box = homedecor.nodebox.corner_xz(0.08, -0.08),

View File

@ -136,6 +136,7 @@ homedecor.register("toaster", {
tiles = { "homedecor_toaster_sides.png" }, tiles = { "homedecor_toaster_sides.png" },
inventory_image = "homedecor_toaster_inv.png", inventory_image = "homedecor_toaster_inv.png",
walkable = false, walkable = false,
use_texture_alpha = "clip",
groups = { snappy=3 }, groups = { snappy=3 },
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -165,6 +166,7 @@ homedecor.register("toaster_loaf", {
"homedecor_toaster_sides.png" "homedecor_toaster_sides.png"
}, },
walkable = false, walkable = false,
use_texture_alpha = "clip",
groups = { snappy=3, not_in_creative_inventory=1 }, groups = { snappy=3, not_in_creative_inventory=1 },
node_box = { node_box = {
type = "fixed", type = "fixed",

View File

@ -1,4 +1,4 @@
name = homedecor_kitchen name = homedecor_kitchen
description = Homedecor mod: kitchen description = Homedecor mod: kitchen
depends = homedecor_common, default, basic_materials, dye depends = homedecor_common, default, basic_materials, dye, unifieddyes
optional_depends = moreblocks, building_blocks, technic, bucket, screwdriver optional_depends = moreblocks, building_blocks, technic, bucket, screwdriver

View File

@ -77,6 +77,7 @@ homedecor.register("calendar", {
wall_bottom = { -4/16, -8/16, -8/16, 4/16, -5/16, 5/16 }, wall_bottom = { -4/16, -8/16, -8/16, 4/16, -5/16, 5/16 },
wall_top = { -4/16, 5/16, -8/16, 4/16, 8/16, 5/16 } wall_top = { -4/16, 5/16, -8/16, 4/16, 8/16, 5/16 }
}, },
use_texture_alpha = "clip",
groups = {choppy=2,attached_node=1}, groups = {choppy=2,attached_node=1},
legacy_wallmounted = true, legacy_wallmounted = true,
sounds = default.node_sound_defaults(), sounds = default.node_sound_defaults(),

View File

@ -20,7 +20,7 @@ minetest.register_node(":homedecor:skylight_frosted", {
tiles = { "homedecor_skylight_frosted.png" }, tiles = { "homedecor_skylight_frosted.png" },
wield_image = "homedecor_skylight_frosted.png", wield_image = "homedecor_skylight_frosted.png",
inventory_image = "homedecor_skylight_frosted_inv.png", inventory_image = "homedecor_skylight_frosted_inv.png",
use_texture_alpha = true, use_texture_alpha = "blend",
groups = { snappy = 3 }, groups = { snappy = 3 },
paramtype = "light", paramtype = "light",
sounds = default.node_sound_glass_defaults(), sounds = default.node_sound_glass_defaults(),
@ -134,6 +134,7 @@ homedecor_roofing.register_slope = function(modname, subname, recipeitem, groups
paramtype2 = "facedir", paramtype2 = "facedir",
selection_box = slope_cbox, selection_box = slope_cbox,
collision_box = slope_cbox, collision_box = slope_cbox,
use_texture_alpha = "blend",
groups = groups, groups = groups,
on_place = minetest.rotate_node, on_place = minetest.rotate_node,
sounds = default.node_sound_wood_defaults() sounds = default.node_sound_wood_defaults()

View File

@ -57,6 +57,7 @@ minetest.register_node(":lrfurn:coffeetable", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
use_texture_alpha = "blend",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {

View File

@ -15,6 +15,7 @@ minetest.register_node(":lrfurn:endtable", {
}, },
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
use_texture_alpha = "blend",
groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3}, groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {

View File

@ -34,6 +34,7 @@ for _, t in ipairs(leg_materials) do
inventory_image = "homedecor_table_legs_"..name..".png", inventory_image = "homedecor_table_legs_"..name..".png",
wield_image = "homedecor_table_legs_"..name..".png", wield_image = "homedecor_table_legs_"..name..".png",
walkable = false, walkable = false,
use_texture_alpha = "blend",
groups = {snappy=3}, groups = {snappy=3},
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),
selection_box = { selection_box = {
@ -76,6 +77,7 @@ for i, mat in ipairs(tabletop_materials) do
'homedecor_blanktile.png', 'homedecor_blanktile.png',
}, },
wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png', wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png',
use_texture_alpha = "blend",
groups = { snappy = 3 }, groups = { snappy = 3 },
sounds = s, sounds = s,
selection_box = tables_cbox, selection_box = tables_cbox,
@ -111,6 +113,7 @@ for i, mat in ipairs(tabletop_materials) do
'homedecor_'..m..'_table_edges.png', 'homedecor_'..m..'_table_edges.png',
"homedecor_table_legs_"..leg_mat..".png", "homedecor_table_legs_"..leg_mat..".png",
}, },
use_texture_alpha = "blend",
groups = { snappy = 3 }, groups = { snappy = 3 },
sounds = s, sounds = s,
}) })

View File

@ -61,6 +61,7 @@ homedecor.register("trash_can", {
tiles = { "homedecor_trash_can.png" }, tiles = { "homedecor_trash_can.png" },
inventory_image = "homedecor_trash_can_inv.png", inventory_image = "homedecor_trash_can_inv.png",
description = S("Small Trash Can"), description = S("Small Trash Can"),
use_texture_alpha = "clip",
groups = {snappy=3}, groups = {snappy=3},
selection_box = trash_cbox, selection_box = trash_cbox,
collision_box = trash_cbox, collision_box = trash_cbox,

View File

@ -173,7 +173,7 @@ if not skinsdb_mod_path then -- If not managed by skinsdb
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
local skin = player:get_attribute("homedecor:player_skin") local skin = player:get_meta():get("homedecor:player_skin")
if skin and skin ~= "" then if skin and skin ~= "" then