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:
wsor4035
2022-05-03 15:21:14 -04:00
committed by GitHub
parent 3ba59dc2d5
commit 546cd7110f
124 changed files with 2584 additions and 2597 deletions

View File

@@ -1,20 +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",
"homedecor",
}
globals = {
}

View File

@@ -13,19 +13,28 @@ homedecor.register("trash_can_green", {
tiles = { { name = "homedecor_generic_plastic.png", color = trashcan_green } },
inventory_image = "homedecor_trash_can_green_inv.png",
description = S("Green Trash Can"),
groups = {snappy=3},
groups = {snappy=3, dig_stone=3},
selection_box = tg_cbox,
collision_box = tg_cbox,
on_punch = function(pos, node, puncher, pointed_thing)
minetest.set_node(pos, {name = "homedecor:trash_can_green_open", param2 = node.param2})
end
end,
crafts = {
{
recipe = {
{ "basic_materials:plastic_sheet", "", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "dye_green", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
},
}
}
})
homedecor.register("trash_can_green_open", {
drawtype = "mesh",
mesh = "homedecor_trash_can_green_open.obj",
tiles = { { name = "homedecor_generic_plastic.png", color = trashcan_green } },
groups = {snappy=3, not_in_creative_inventory=1},
groups = {snappy=3, not_in_creative_inventory=1, dig_stone=3},
selection_box = tg_cbox,
collision_box = tg_cbox,
drop = "homedecor:trash_can_green",
@@ -35,7 +44,7 @@ homedecor.register("trash_can_green_open", {
infotext=S("Trash Can"),
inventory= {
size = 9,
formspec = "size[8,9]" .. default.gui_bg .. default.gui_bg_img .. default.gui_slots ..
formspec = "size[8,9]"..
"button[2.5,3.8;3,1;empty;Empty Trash]"..
"list[context;main;2.5,0.5;3,3;]"..
"list[current_player;main;0,5;8,4;]" ..
@@ -62,27 +71,16 @@ homedecor.register("trash_can", {
inventory_image = "homedecor_trash_can_inv.png",
description = S("Small Trash Can"),
use_texture_alpha = "clip",
groups = {snappy=3},
groups = {snappy=3, dig_stone=3},
selection_box = trash_cbox,
collision_box = trash_cbox,
})
-- crafting
minetest.register_craft( {
output = "homedecor:trash_can 3",
recipe = {
{ "basic_materials:steel_wire", "", "basic_materials:steel_wire" },
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
},
})
minetest.register_craft({
output = "homedecor:trash_can_green",
recipe = {
{ "basic_materials:plastic_sheet", "", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "dye:green", "basic_materials:plastic_sheet" },
{ "basic_materials:plastic_sheet", "basic_materials:plastic_sheet", "basic_materials:plastic_sheet" }
},
crafts = {
{
output = "homedecor:trash_can 3",
recipe = {
{ "basic_materials:steel_wire", "", "basic_materials:steel_wire" },
{ "steel_ingot", "steel_ingot", "steel_ingot" }
},
},
}
})

View File

@@ -1,3 +1,4 @@
name = homedecor_trash_cans
description = Homedecor mod: trash cans
depends = homedecor_common, default, basic_materials, dye
depends = homedecor_common
optional_depends = default, basic_materials, dye