forked from mtcontrib/homedecor_modpack
make homedecor game agnostic (#28)
* make materials.lua with hades, minetest game, farlands items * make textures file for central handling * make mods game agnostic * take out the trash * handle multiple seats in sofas * add github luacheck workflow and various luacheck fixes * add fluxionary scope creep * fix devtest breaking right to a name policy Co-authored-by: wsor4035 <24964441+wsor4035@users.noreply.github.com> Co-authored-by: SFENCE <sfence.software@gmail.com>
This commit is contained in:
@ -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 = {
|
||||
}
|
||||
|
@ -5,29 +5,44 @@ local ob_cbox = {
|
||||
fixed = { -0.5, -0.5, 0, 0.5, 0.5, 0.5 }
|
||||
}
|
||||
|
||||
minetest.register_node(":homedecor:openframe_bookshelf", {
|
||||
local wood_tex = homedecor.textures.default_wood
|
||||
|
||||
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,
|
||||
collision_box = ob_cbox,
|
||||
crafts = {
|
||||
{
|
||||
recipe = {
|
||||
{"group:wood", "", "group:wood"},
|
||||
{"book", "book", "book"},
|
||||
{"group:wood", "", "group:wood"},
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
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 = {
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user