Trash sound variables

This commit is contained in:
kilbith 2015-08-28 14:13:51 +02:00
parent ce4969935c
commit d6ab0377f1

View File

@ -1,9 +1,3 @@
local sound = {}
sound.wood = default.node_sound_wood_defaults()
sound.glass = default.node_sound_glass_defaults()
sound.leaves = default.node_sound_leaves_defaults()
sound.stone = default.node_sound_stone_defaults()
xpanes.register_pane("bamboo_frame", { xpanes.register_pane("bamboo_frame", {
description = "Bamboo Frame", description = "Bamboo Frame",
tiles = {"xdecor_bamboo_frame.png"}, tiles = {"xdecor_bamboo_frame.png"},
@ -38,7 +32,7 @@ xdecor.register("barrel", {
infotext = "Barrel", infotext = "Barrel",
tiles = {"xdecor_barrel_top.png", "xdecor_barrel_sides.png"}, tiles = {"xdecor_barrel_top.png", "xdecor_barrel_sides.png"},
groups = {choppy=3, flammable=2}, groups = {choppy=3, flammable=2},
sounds = sound.wood sounds = default.node_sound_wood_defaults()
}) })
xdecor.register("cabinet", { xdecor.register("cabinet", {
@ -46,7 +40,7 @@ xdecor.register("cabinet", {
inventory = {size=24}, inventory = {size=24},
infotext = "Cabinet", infotext = "Cabinet",
groups = {choppy=3, flammable=2}, groups = {choppy=3, flammable=2},
sounds = sound.wood, sounds = default.node_sound_wood_defaults(),
tiles = { tiles = {
"default_wood.png", "default_wood.png", "default_wood.png", "default_wood.png",
"default_wood.png", "default_wood.png", "default_wood.png", "default_wood.png",
@ -59,7 +53,7 @@ xdecor.register("cabinet_half", {
inventory = {size=8}, inventory = {size=8},
infotext = "Half Cabinet", infotext = "Half Cabinet",
groups = {choppy=3, flammable=3}, groups = {choppy=3, flammable=3},
sounds = sound.wood, sounds = default.node_sound_wood_defaults(),
node_box = xdecor.nodebox.slab_y(0.5, 0.5), node_box = xdecor.nodebox.slab_y(0.5, 0.5),
tiles = { tiles = {
"default_wood.png", "default_wood.png", "default_wood.png", "default_wood.png",
@ -161,7 +155,7 @@ xpanes.register_pane("chainlink", {
xdecor.register("chair", { xdecor.register("chair", {
description = "Chair", description = "Chair",
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
sounds = sound.wood, sounds = default.node_sound_wood_defaults(),
groups = {choppy=3, flammable=2}, groups = {choppy=3, flammable=2},
sunlight_propagates = true, sunlight_propagates = true,
node_box = { node_box = {
@ -202,7 +196,7 @@ xdecor.register("cobweb", {
walkable = false, walkable = false,
selection_box = {type = "regular"}, selection_box = {type = "regular"},
groups = {dig_immediate=3, liquid=3, flammable=3}, groups = {dig_immediate=3, liquid=3, flammable=3},
sounds = sound.leaves sounds = default.node_sound_leaves_defaults()
}) })
local colors = {"red"} -- Add more curtains colors simply here. local colors = {"red"} -- Add more curtains colors simply here.
@ -261,12 +255,9 @@ local function door_access(door)
end end
local door_types = { local door_types = {
{"japanese", "brown"}, {"japanese", "brown"}, {"prison", "grey"},
{"prison", "grey"}, {"prison_rust", "rust"}, {"screen", "brownb"},
{"prison_rust", "rust"}, {"slide", "brownc"}, {"woodglass", "brown"}
{"screen", "brownb"},
{"slide", "brownc"},
{"woodglass", "brown"}
} }
for _, d in pairs(door_types) do for _, d in pairs(door_types) do
@ -277,7 +268,7 @@ for _, d in pairs(door_types) do
tiles_bottom = {"xdecor_"..d[1].."_door_b.png", "xdecor_"..d[2]..".png"}, tiles_bottom = {"xdecor_"..d[1].."_door_b.png", "xdecor_"..d[2]..".png"},
tiles_top = {"xdecor_"..d[1].."_door_a.png", "xdecor_"..d[2]..".png"}, tiles_top = {"xdecor_"..d[1].."_door_a.png", "xdecor_"..d[2]..".png"},
only_placer_can_open = door_access(d[1]), only_placer_can_open = door_access(d[1]),
sounds = sound.wood, sounds = default.node_sound_wood_defaults(),
sunlight = false sunlight = false
}) })
end end
@ -288,7 +279,7 @@ xdecor.register("empty_shelf", {
infotext = "Empty Shelf", infotext = "Empty Shelf",
tiles = {"default_wood.png", "xdecor_empty_shelf.png"}, tiles = {"default_wood.png", "xdecor_empty_shelf.png"},
groups = {choppy=3, flammable=2}, groups = {choppy=3, flammable=2},
sounds = sound.wood sounds = default.node_sound_wood_defaults()
}) })
xdecor.register("enderchest", { xdecor.register("enderchest", {
@ -302,7 +293,7 @@ xdecor.register("enderchest", {
"xdecor_enderchest_front.png" "xdecor_enderchest_front.png"
}, },
groups = {cracky=2}, groups = {cracky=2},
sounds = sound.stone, sounds = default.node_sound_stone_defaults(),
on_construct = function(pos) on_construct = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)
local xbg = default.gui_bg..default.gui_bg_img..default.gui_slots local xbg = default.gui_bg..default.gui_bg_img..default.gui_slots
@ -390,7 +381,7 @@ xdecor.register("ivy", {
tiles = {"xdecor_ivy.png"}, tiles = {"xdecor_ivy.png"},
inventory_image = "xdecor_ivy.png", inventory_image = "xdecor_ivy.png",
wield_image = "xdecor_ivy.png", wield_image = "xdecor_ivy.png",
sounds = sound.leaves sounds = default.node_sound_leaves_defaults()
}) })
xdecor.register("lantern", { xdecor.register("lantern", {
@ -418,7 +409,7 @@ xdecor.register("lightbox", {
tiles = {"xdecor_lightbox.png"}, tiles = {"xdecor_lightbox.png"},
groups = {cracky=3}, groups = {cracky=3},
light_source = 13, light_source = 13,
sounds = sound.glass sounds = default.node_sound_glass_defaults()
}) })
xdecor.register("packed_ice", { xdecor.register("packed_ice", {
@ -426,7 +417,7 @@ xdecor.register("packed_ice", {
description = "Packed Ice", description = "Packed Ice",
tiles = {"xdecor_packed_ice.png"}, tiles = {"xdecor_packed_ice.png"},
groups = {cracky=2}, groups = {cracky=2},
sounds = sound.glass sounds = default.node_sound_glass_defaults()
}) })
local flowerstype = { "dandelion_white", "dandelion_yellow", "geranium", local flowerstype = { "dandelion_white", "dandelion_yellow", "geranium",
@ -440,7 +431,7 @@ for _, f in pairs(flowerstype) do
tiles = {"xdecor_"..f.."_pot.png"}, tiles = {"xdecor_"..f.."_pot.png"},
inventory_image = "xdecor_"..f.."_pot.png", inventory_image = "xdecor_"..f.."_pot.png",
drawtype = "plantlike", drawtype = "plantlike",
sounds = sound.leaves, sounds = default.node_sound_leaves_defaults(),
selection_box = xdecor.nodebox.slab_y(0.3) selection_box = xdecor.nodebox.slab_y(0.3)
}) })
@ -470,7 +461,8 @@ xdecor.register("plant_pot", {
description = "Plant Pot", description = "Plant Pot",
groups = {snappy=3}, groups = {snappy=3},
tiles = {"xdecor_plant_pot_top.png", "xdecor_plant_pot_bottom.png", tiles = {"xdecor_plant_pot_top.png", "xdecor_plant_pot_bottom.png",
"xdecor_plant_pot_sides.png"} "xdecor_plant_pot_sides.png"},
sounds = default.node_sound_stone_defaults(),
}) })
xdecor.register("metal_cabinet", { xdecor.register("metal_cabinet", {
@ -490,7 +482,7 @@ xdecor.register("moonbrick", {
description = "Moon Brick", description = "Moon Brick",
tiles = {"xdecor_moonbrick.png"}, tiles = {"xdecor_moonbrick.png"},
groups = {cracky=2}, groups = {cracky=2},
sounds = sound.stone sounds = default.node_sound_stone_defaults(),
}) })
xdecor.register("multishelf", { xdecor.register("multishelf", {
@ -499,7 +491,7 @@ xdecor.register("multishelf", {
infotext = "Multi Shelf", infotext = "Multi Shelf",
tiles = {"default_wood.png", "xdecor_multishelf.png"}, tiles = {"default_wood.png", "xdecor_multishelf.png"},
groups = {choppy=3, flammable=2}, groups = {choppy=3, flammable=2},
sounds = sound.wood sounds = default.node_sound_wood_defaults()
}) })
xpanes.register_pane("rust_bar", { xpanes.register_pane("rust_bar", {
@ -533,7 +525,7 @@ xdecor.register("stonepath", {
description = "Garden Stone Path", description = "Garden Stone Path",
tiles = {"default_stone.png"}, tiles = {"default_stone.png"},
groups = {snappy=3, stone=1}, groups = {snappy=3, stone=1},
sounds = sound.stone, sounds = default.node_sound_stone_defaults(),
sunlight_propagates = true, sunlight_propagates = true,
node_box = { node_box = {
type = "fixed", type = "fixed",
@ -561,7 +553,7 @@ xdecor.register(t, {
.." "..t:sub(-4):gsub("^%l", string.upper), .." "..t:sub(-4):gsub("^%l", string.upper),
tiles = {"xdecor_"..t..".png"}, tiles = {"xdecor_"..t..".png"},
groups = {cracky=2}, groups = {cracky=2},
sounds = sound.stone sounds = default.node_sound_stone_defaults()
}) })
end end
@ -569,7 +561,7 @@ xdecor.register("table", {
description = "Table", description = "Table",
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
groups = {choppy=3, flammable=2}, groups = {choppy=3, flammable=2},
sounds = sound.wood, sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -597,7 +589,7 @@ xdecor.register("trash_can", {
tiles = {"xdecor_wood.png"}, tiles = {"xdecor_wood.png"},
groups = {choppy=3, flammable=2}, groups = {choppy=3, flammable=2},
sunlight_propagates = true, sunlight_propagates = true,
sounds = sound.wood, sounds = default.node_sound_wood_defaults(),
node_box = { node_box = {
type = "fixed", type = "fixed",
fixed = { fixed = {
@ -649,7 +641,7 @@ xdecor.register("woodframed_glass", {
drawtype = "glasslike_framed", drawtype = "glasslike_framed",
tiles = {"xdecor_framed_glass.png", "xdecor_framed_glass_detail.png"}, tiles = {"xdecor_framed_glass.png", "xdecor_framed_glass_detail.png"},
groups = {cracky=3}, groups = {cracky=3},
sounds = sound.glass sounds = default.node_sound_glass_defaults()
}) })
xdecor.register("wood_tile", { xdecor.register("wood_tile", {
@ -657,5 +649,5 @@ xdecor.register("wood_tile", {
tiles = {"xdecor_wood_tile.png"}, tiles = {"xdecor_wood_tile.png"},
drawtype = "normal", drawtype = "normal",
groups = {choppy=2, wood=1, flammable=2}, groups = {choppy=2, wood=1, flammable=2},
sounds = sound.wood sounds = default.node_sound_wood_defaults()
}) })