mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-01-29 01:00:20 +01:00
take out the trash
This commit is contained in:
parent
1ceb47c108
commit
7fb775647d
@ -15,6 +15,7 @@ homedecor.materials = {
|
|||||||
dye_dark_grey = "dye:dark_grey",
|
dye_dark_grey = "dye:dark_grey",
|
||||||
dye_black = "dye:black",
|
dye_black = "dye:black",
|
||||||
dye_white = "dye:white",
|
dye_white = "dye:white",
|
||||||
|
dye_green = "dye:green",
|
||||||
silicon = "mesecons_materials:silicon",
|
silicon = "mesecons_materials:silicon",
|
||||||
string = "farming:string",
|
string = "farming:string",
|
||||||
paper = "default:paper",
|
paper = "default:paper",
|
||||||
@ -65,7 +66,8 @@ elseif minetest.get_modpath("fl_ores") and minetest.get_modpath("fl_stone") then
|
|||||||
empty_bucket = "fl_bucket:bucket",
|
empty_bucket = "fl_bucket:bucket",
|
||||||
dye_dark_grey = "fl_dyes:dark_grey_dye",
|
dye_dark_grey = "fl_dyes:dark_grey_dye",
|
||||||
dye_black = "fl_dyes:black_dye",
|
dye_black = "fl_dyes:black_dye",
|
||||||
dye_white = "fl_dye:white_dye",
|
dye_white = "fl_dyes:white_dye",
|
||||||
|
dye_green = "fl_dyes:green_dye",
|
||||||
copper_ingot = "fl_ores:copper_ingot",
|
copper_ingot = "fl_ores:copper_ingot",
|
||||||
tin_ingot = "fl_ores:tin_ingot",
|
tin_ingot = "fl_ores:tin_ingot",
|
||||||
silver_ingot = "fl_ores:iron_ingot",
|
silver_ingot = "fl_ores:iron_ingot",
|
||||||
|
@ -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 = {
|
|
||||||
}
|
|
||||||
|
|
@ -13,19 +13,28 @@ homedecor.register("trash_can_green", {
|
|||||||
tiles = { { name = "homedecor_generic_plastic.png", color = trashcan_green } },
|
tiles = { { name = "homedecor_generic_plastic.png", color = trashcan_green } },
|
||||||
inventory_image = "homedecor_trash_can_green_inv.png",
|
inventory_image = "homedecor_trash_can_green_inv.png",
|
||||||
description = S("Green Trash Can"),
|
description = S("Green Trash Can"),
|
||||||
groups = {snappy=3},
|
groups = {snappy=3, dig_stone=3},
|
||||||
selection_box = tg_cbox,
|
selection_box = tg_cbox,
|
||||||
collision_box = tg_cbox,
|
collision_box = tg_cbox,
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
on_punch = function(pos, node, puncher, pointed_thing)
|
||||||
minetest.set_node(pos, {name = "homedecor:trash_can_green_open", param2 = node.param2})
|
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", {
|
homedecor.register("trash_can_green_open", {
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
mesh = "homedecor_trash_can_green_open.obj",
|
mesh = "homedecor_trash_can_green_open.obj",
|
||||||
tiles = { { name = "homedecor_generic_plastic.png", color = trashcan_green } },
|
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,
|
selection_box = tg_cbox,
|
||||||
collision_box = tg_cbox,
|
collision_box = tg_cbox,
|
||||||
drop = "homedecor:trash_can_green",
|
drop = "homedecor:trash_can_green",
|
||||||
@ -35,7 +44,7 @@ homedecor.register("trash_can_green_open", {
|
|||||||
infotext=S("Trash Can"),
|
infotext=S("Trash Can"),
|
||||||
inventory= {
|
inventory= {
|
||||||
size = 9,
|
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]"..
|
"button[2.5,3.8;3,1;empty;Empty Trash]"..
|
||||||
"list[context;main;2.5,0.5;3,3;]"..
|
"list[context;main;2.5,0.5;3,3;]"..
|
||||||
"list[current_player;main;0,5;8,4;]" ..
|
"list[current_player;main;0,5;8,4;]" ..
|
||||||
@ -62,27 +71,16 @@ homedecor.register("trash_can", {
|
|||||||
inventory_image = "homedecor_trash_can_inv.png",
|
inventory_image = "homedecor_trash_can_inv.png",
|
||||||
description = S("Small Trash Can"),
|
description = S("Small Trash Can"),
|
||||||
use_texture_alpha = "clip",
|
use_texture_alpha = "clip",
|
||||||
groups = {snappy=3},
|
groups = {snappy=3, dig_stone=3},
|
||||||
selection_box = trash_cbox,
|
selection_box = trash_cbox,
|
||||||
collision_box = trash_cbox,
|
collision_box = trash_cbox,
|
||||||
})
|
crafts = {
|
||||||
|
{
|
||||||
-- crafting
|
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft( {
|
|
||||||
output = "homedecor:trash_can 3",
|
output = "homedecor:trash_can 3",
|
||||||
recipe = {
|
recipe = {
|
||||||
{ "basic_materials:steel_wire", "", "basic_materials:steel_wire" },
|
{ "basic_materials:steel_wire", "", "basic_materials:steel_wire" },
|
||||||
{ "default:steel_ingot", "default:steel_ingot", "default:steel_ingot" }
|
{ "steel_ingot", "steel_ingot", "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" }
|
|
||||||
},
|
},
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
name = homedecor_trash_cans
|
name = homedecor_trash_cans
|
||||||
description = Homedecor mod: trash cans
|
description = Homedecor mod: trash cans
|
||||||
depends = homedecor_common, default, basic_materials, dye
|
depends = homedecor_common
|
||||||
|
optional_depends = default, basic_materials, dye
|
||||||
|
Loading…
Reference in New Issue
Block a user