add hd tables
This commit is contained in:
parent
2f5effd653
commit
89f9037b90
|
@ -59,7 +59,9 @@ minetest.register_node(":lrfurn:coffeetable", {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "blend",
|
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(),
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
@ -108,7 +110,7 @@ minetest.register_craft({
|
||||||
output = "lrfurn:coffeetable",
|
output = "lrfurn:coffeetable",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", "", },
|
{"", "", "", },
|
||||||
{"stairs:slab_wood", "stairs:slab_wood", "stairs:slab_wood", },
|
{homedecor.materials.slab_wood, homedecor.materials.slab_wood, homedecor.materials.slab_wood, },
|
||||||
{"group:stick", "", "group:stick", }
|
{"group:stick", "", "group:stick", }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -17,7 +17,9 @@ minetest.register_node(":lrfurn:endtable", {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "blend",
|
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(),
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
|
@ -43,7 +45,7 @@ minetest.register_craft({
|
||||||
output = "lrfurn:endtable",
|
output = "lrfurn:endtable",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", "", },
|
{"", "", "", },
|
||||||
{"stairs:slab_wood", "stairs:slab_wood", "", },
|
{homedecor.materials.slab_wood, homedecor.materials.slab_wood, "", },
|
||||||
{"group:stick", "group:stick", "", }
|
{"group:stick", "group:stick", "", }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -35,8 +35,10 @@ for _, t in ipairs(leg_materials) do
|
||||||
wield_image = "homedecor_table_legs_"..name..".png",
|
wield_image = "homedecor_table_legs_"..name..".png",
|
||||||
walkable = false,
|
walkable = false,
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = {snappy=3},
|
groups = {snappy=3, dig_tree=2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
selection_box = {
|
selection_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = { -0.37, -0.5, -0.37, 0.37, 0.5, 0.37 }
|
fixed = { -0.37, -0.5, -0.37, 0.37, 0.5, 0.37 }
|
||||||
|
@ -59,9 +61,9 @@ for i, mat in ipairs(tabletop_materials) do
|
||||||
local s
|
local s
|
||||||
|
|
||||||
if m == "glass" then
|
if m == "glass" then
|
||||||
s = default.node_sound_glass_defaults()
|
s = "node_sound_glass_defaults"
|
||||||
else
|
else
|
||||||
s = default.node_sound_wood_defaults()
|
s = "node_sound_wood_defaults"
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, shape in ipairs(table_shapes) do
|
for _, shape in ipairs(table_shapes) do
|
||||||
|
@ -78,8 +80,10 @@ for i, mat in ipairs(tabletop_materials) do
|
||||||
},
|
},
|
||||||
wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png',
|
wield_image = 'homedecor_'..m..'_table_'..shape..'_inv.png',
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3, dig_tree=2 },
|
||||||
sounds = s,
|
_sound_def = {
|
||||||
|
key = s,
|
||||||
|
},
|
||||||
selection_box = tables_cbox,
|
selection_box = tables_cbox,
|
||||||
collision_box = tables_cbox,
|
collision_box = tables_cbox,
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
@ -114,8 +118,10 @@ for i, mat in ipairs(tabletop_materials) do
|
||||||
"homedecor_table_legs_"..leg_mat..".png",
|
"homedecor_table_legs_"..leg_mat..".png",
|
||||||
},
|
},
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
groups = { snappy = 3 },
|
groups = { snappy = 3, dig_tree=2 },
|
||||||
sounds = s,
|
_sound_def = {
|
||||||
|
key = s
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -156,7 +162,9 @@ for _, t in ipairs(table_colors) do
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||||
sounds = default.node_sound_wood_defaults(),
|
_sound_def = {
|
||||||
|
key = "node_sound_wood_defaults",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -165,9 +173,9 @@ end
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:glass_table_small_round_b 15",
|
output = "homedecor:glass_table_small_round_b 15",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "", "default:glass", "" },
|
{ "", homedecor.materials.glass_block, "" },
|
||||||
{ "default:glass", "default:glass", "default:glass" },
|
{ homedecor.materials.glass_block, homedecor.materials.glass_block, homedecor.materials.glass_block },
|
||||||
{ "", "default:glass", "" },
|
{ "", homedecor.materials.glass_block, "" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -232,9 +240,9 @@ minetest.register_craft({
|
||||||
minetest.register_craft( {
|
minetest.register_craft( {
|
||||||
output = "homedecor:table_legs_wrought_iron 3",
|
output = "homedecor:table_legs_wrought_iron 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "", "default:iron_lump", "" },
|
{ "", homedecor.materials.iron_lump, "" },
|
||||||
{ "", "default:iron_lump", "" },
|
{ "", homedecor.materials.iron_lump, "" },
|
||||||
{ "default:iron_lump", "default:iron_lump", "default:iron_lump" },
|
{ homedecor.materials.iron_lump, homedecor.materials.iron_lump, homedecor.materials.iron_lump },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -290,7 +298,7 @@ minetest.register_craft({
|
||||||
output = "homedecor:table_mahogany",
|
output = "homedecor:table_mahogany",
|
||||||
recipe = {
|
recipe = {
|
||||||
"homedecor:table",
|
"homedecor:table",
|
||||||
"dye:brown",
|
homedecor.materials.dye_brown,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -308,7 +316,7 @@ minetest.register_craft({
|
||||||
output = "homedecor:table_white",
|
output = "homedecor:table_white",
|
||||||
recipe = {
|
recipe = {
|
||||||
"homedecor:table",
|
"homedecor:table",
|
||||||
"dye:white",
|
homedecor.materials.dye_white,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue