1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-13 05:40:36 +01:00

add hd furniture

This commit is contained in:
unknown 2022-04-24 11:14:56 -04:00
parent 5ef8f18970
commit cab9df2256
3 changed files with 15 additions and 29 deletions

View File

@ -1,21 +0,0 @@
unused_args = false
allow_defined_top = true
max_comment_line_length = 999
read_globals = {
"DIR_DELIM",
"minetest", "core",
"unpack",
"dump",
table = { fields = { "copy", "getn" } },
"vector", "nodeupdate",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
"default",
"unifieddyes",
"homedecor",
}
globals = {
}

View File

@ -5,16 +5,21 @@ local ob_cbox = {
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
}
minetest.register_node(":homedecor:openframe_bookshelf", {
local wood_tex = "default_wood.png"
if not minetest.get_modpath("default") then wood_tex = "[combine:16x16^[noalpha^[colorize:#654321" end
homedecor.register("openframe_bookshelf", {
description = S("Bookshelf (open-frame)"),
drawtype = "mesh",
mesh = "homedecor_openframe_bookshelf.obj",
tiles = {
"homedecor_openframe_bookshelf_books.png",
"default_wood.png"
wood_tex
},
groups = {choppy=3,oddly_breakable_by_hand=2,flammable=3},
sounds = default.node_sound_wood_defaults(),
_sound_def = {
key = "node_sound_wood_defaults",
},
paramtype = "light",
paramtype2 = "facedir",
selection_box = ob_cbox,
@ -24,10 +29,12 @@ minetest.register_node(":homedecor:openframe_bookshelf", {
homedecor.register("wall_shelf", {
description = S("Wall Shelf"),
tiles = {
"default_wood.png",
wood_tex,
},
groups = { snappy = 3, dig_tree = 2 },
_sound_def = {
key = "node_sound_wood_defaults",
},
groups = { snappy = 3 },
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = {

View File

@ -1,4 +1,4 @@
name = homedecor_furniture
description = Homedecor mod: furniture
depends = homedecor_common, default, unifieddyes, wool
optional_depends = moreblocks, technic, bucket
depends = homedecor_common
optional_depends = moreblocks, technic, bucket, default, unifieddyes, wool