forked from nalc/homedecor_modpack
placeholder usage for decor, where useable
This commit is contained in:
parent
fb1b620316
commit
7d5287cc04
@ -91,7 +91,7 @@ homedecor.register("grandfather_clock", {
|
|||||||
selection_box = gf_cbox,
|
selection_box = gf_cbox,
|
||||||
collision_box = gf_cbox,
|
collision_box = gf_cbox,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
on_rotate = screwdriver.rotate_simple
|
on_rotate = screwdriver.rotate_simple
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ homedecor.register("barbecue", {
|
|||||||
selection_box = bbq_cbox,
|
selection_box = bbq_cbox,
|
||||||
collision_box = bbq_cbox,
|
collision_box = bbq_cbox,
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
-- no need for placeholder it appears
|
||||||
expand = { top="air" },
|
expand = { top="air" },
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ homedecor.register("bench_large_1", {
|
|||||||
description = "Garden Bench (style 1)",
|
description = "Garden Bench (style 1)",
|
||||||
inventory_image = "homedecor_bench_large_1_inv.png",
|
inventory_image = "homedecor_bench_large_1_inv.png",
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
expand = { right="air" },
|
expand = { right="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
selection_box = bl1_sbox,
|
selection_box = bl1_sbox,
|
||||||
node_box = bl1_cbox,
|
node_box = bl1_cbox,
|
||||||
@ -83,7 +84,7 @@ homedecor.register("bench_large_2", {
|
|||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
selection_box = bl2_sbox,
|
selection_box = bl2_sbox,
|
||||||
node_box = bl2_cbox,
|
node_box = bl2_cbox,
|
||||||
expand = { right="air" },
|
expand = { right="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_rotate = screwdriver.disallow
|
on_rotate = screwdriver.disallow
|
||||||
})
|
})
|
||||||
@ -101,7 +102,7 @@ homedecor.register("deckchair", {
|
|||||||
tiles = {"homedecor_deckchair.png"},
|
tiles = {"homedecor_deckchair.png"},
|
||||||
description = "Deck Chair",
|
description = "Deck Chair",
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
expand = { forward="air" },
|
expand = { forward="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
selection_box = dc_cbox,
|
selection_box = dc_cbox,
|
||||||
collision_box = dc_cbox,
|
collision_box = dc_cbox,
|
||||||
@ -116,7 +117,7 @@ homedecor.register("deckchair_striped_blue", {
|
|||||||
tiles = {"homedecor_deckchair_striped_blue.png"},
|
tiles = {"homedecor_deckchair_striped_blue.png"},
|
||||||
description = "Deck Chair",
|
description = "Deck Chair",
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
expand = { forward="air" },
|
expand = { forward="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
selection_box = dc_cbox,
|
selection_box = dc_cbox,
|
||||||
collision_box = dc_cbox,
|
collision_box = dc_cbox,
|
||||||
@ -135,7 +136,7 @@ homedecor.register("doghouse", {
|
|||||||
selection_box = homedecor.nodebox.slab_y(1.5),
|
selection_box = homedecor.nodebox.slab_y(1.5),
|
||||||
collision_box = homedecor.nodebox.slab_y(1.5),
|
collision_box = homedecor.nodebox.slab_y(1.5),
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_rotate = screwdriver.rotate_simple
|
on_rotate = screwdriver.rotate_simple
|
||||||
})
|
})
|
||||||
@ -323,7 +324,7 @@ homedecor.register("well", {
|
|||||||
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),
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
on_rotate = screwdriver.rotate_simple
|
on_rotate = screwdriver.rotate_simple
|
||||||
})
|
})
|
||||||
|
@ -32,7 +32,7 @@ homedecor.register("coat_tree", {
|
|||||||
description = "Coat tree",
|
description = "Coat tree",
|
||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
walkable = false,
|
walkable = false,
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
@ -185,7 +185,7 @@ homedecor.register("soda_machine", {
|
|||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
selection_box = svm_cbox,
|
selection_box = svm_cbox,
|
||||||
collision_box = svm_cbox,
|
collision_box = svm_cbox,
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
on_punch = function(pos, node, puncher, pointed_thing)
|
||||||
|
@ -12,7 +12,7 @@ homedecor.register("refrigerator_steel", {
|
|||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
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),
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
infotext=S("Refrigerator"),
|
infotext=S("Refrigerator"),
|
||||||
inventory = {
|
inventory = {
|
||||||
size=50,
|
size=50,
|
||||||
@ -31,7 +31,7 @@ homedecor.register("refrigerator_white", {
|
|||||||
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),
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
infotext=S("Refrigerator"),
|
infotext=S("Refrigerator"),
|
||||||
inventory = {
|
inventory = {
|
||||||
size=50,
|
size=50,
|
||||||
|
@ -54,7 +54,7 @@ homedecor.register("ironing_board", {
|
|||||||
"wool_grey.png",
|
"wool_grey.png",
|
||||||
"homedecor_generic_metal_black.png^[brighten"
|
"homedecor_generic_metal_black.png^[brighten"
|
||||||
},
|
},
|
||||||
expand = {right = "air"},
|
expand = {right = "placeholder"},
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
selection_box = ib_cbox,
|
selection_box = ib_cbox,
|
||||||
collision_box = ib_cbox
|
collision_box = ib_cbox
|
||||||
|
@ -477,7 +477,7 @@ local function reg_lamp(suffix, nxt, tilesuffix, light, color)
|
|||||||
node.name = "homedecor:standing_lamp"..lampcolor.."_"..repl[suffix]
|
node.name = "homedecor:standing_lamp"..lampcolor.."_"..repl[suffix]
|
||||||
minetest.set_node(pos, node)
|
minetest.set_node(pos, node)
|
||||||
end,
|
end,
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("homedecor:standing_lamp_bottom"..lampcolor.."_"..suffix, "homedecor:standing_lamp"..lampcolor.."_"..suffix)
|
minetest.register_alias("homedecor:standing_lamp_bottom"..lampcolor.."_"..suffix, "homedecor:standing_lamp"..lampcolor.."_"..suffix)
|
||||||
|
@ -273,7 +273,7 @@ homedecor.register("pool_table", {
|
|||||||
groups = {snappy=3},
|
groups = {snappy=3},
|
||||||
selection_box = pooltable_cbox,
|
selection_box = pooltable_cbox,
|
||||||
collision_box = pooltable_cbox,
|
collision_box = pooltable_cbox,
|
||||||
expand = { forward="air" },
|
expand = { forward="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_rotate = screwdriver.disallow
|
on_rotate = screwdriver.disallow
|
||||||
})
|
})
|
||||||
@ -297,7 +297,7 @@ homedecor.register("piano", {
|
|||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
selection_box = piano_cbox,
|
selection_box = piano_cbox,
|
||||||
collision_box = piano_cbox,
|
collision_box = piano_cbox,
|
||||||
expand = { right="air" },
|
expand = { right="placeholder" },
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
on_rotate = screwdriver.disallow
|
on_rotate = screwdriver.disallow
|
||||||
})
|
})
|
||||||
@ -377,7 +377,7 @@ homedecor.register("tool_cabinet", {
|
|||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
groups = { snappy=3 },
|
groups = { snappy=3 },
|
||||||
selection_box = homedecor.nodebox.slab_y(2),
|
selection_box = homedecor.nodebox.slab_y(2),
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
inventory = {
|
inventory = {
|
||||||
size=24,
|
size=24,
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ homedecor.register("desk", {
|
|||||||
collision_box = desk_cbox,
|
collision_box = desk_cbox,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3 },
|
||||||
expand = { right="air" },
|
expand = { right="placeholder" },
|
||||||
inventory = {
|
inventory = {
|
||||||
size=24,
|
size=24,
|
||||||
lockable=true,
|
lockable=true,
|
||||||
@ -112,7 +112,7 @@ for _, c in pairs({"basic", "upscale"}) do
|
|||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
selection_box = ofchairs_sbox,
|
selection_box = ofchairs_sbox,
|
||||||
collision_box = ofchairs_cbox,
|
collision_box = ofchairs_cbox,
|
||||||
expand = { top = "air" },
|
expand = { top = "placeholder" },
|
||||||
on_rotate = screwdriver.rotate_simple
|
on_rotate = screwdriver.rotate_simple
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
@ -18,7 +18,7 @@ homedecor.register("wardrobe", {
|
|||||||
selection_box = wd_cbox,
|
selection_box = wd_cbox,
|
||||||
collision_box = wd_cbox,
|
collision_box = wd_cbox,
|
||||||
sounds = default.node_sound_wood_defaults(),
|
sounds = default.node_sound_wood_defaults(),
|
||||||
expand = { top="air" },
|
expand = { top="placeholder" },
|
||||||
on_rotate = screwdriver.rotate_simple,
|
on_rotate = screwdriver.rotate_simple,
|
||||||
infotext = "Wardrobe",
|
infotext = "Wardrobe",
|
||||||
inventory = {
|
inventory = {
|
||||||
|
Loading…
Reference in New Issue
Block a user