0
0
Fork 0

Move some groups (api.lua → chests.lua)

This commit is contained in:
Mikita Wiśniewski 2024-06-22 17:05:08 +07:00 committed by the-real-herowl
parent 16dd8694a6
commit b4b5bf8391
2 changed files with 20 additions and 5 deletions

View File

@ -548,12 +548,8 @@ function mcl_chests.register_chest(basename, d)
-- Construct groups
local groups_inv = table_merge({ deco_block = 1 }, d.groups)
local groups_small = table_merge(groups_inv, {
handy = 1,
axey = 1,
container = 2,
deco_block = 1,
material_wood = 1,
flammable = -1,
chest_entity = 1,
not_in_creative_inventory = 1
}, d.groups)

View File

@ -21,6 +21,12 @@ mcl_chests.register_chest("chest", {
"mcl_chests_chest_right.png", "mcl_chests_chest_left.png",
"mcl_chests_chest_back.png", "default_chest_front.png" },
},
groups = {
handy = 1,
axey = 1,
material_wood = 1,
flammable = -1,
},
sounds = mcl_sounds.node_sound_wood_defaults(),
hardness = 2.5,
hidden = false,
@ -42,7 +48,13 @@ mcl_chests.register_chest("trapped_chest", {
tt_help = S("27 inventory slots") ..
"\n" .. S("Can be combined to a large chest") .. "\n" .. S("Emits a redstone signal when opened"),
tiles = traptiles,
groups = { mesecon = 2 },
groups = {
handy = 1,
axey = 1,
material_wood = 1,
flammable = -1,
mesecon = 2,
},
sounds = mcl_sounds.node_sound_wood_defaults(),
hardness = 2.5,
hidden = false,
@ -93,6 +105,13 @@ mcl_chests.register_chest("trapped_chest_on", {
usagehelp = nil,
tt_help = nil,
tiles = traptiles,
groups = {
handy = 1,
axey = 1,
material_wood = 1,
flammable = -1,
mesecon = 2,
},
sounds = mcl_sounds.node_sound_wood_defaults(),
hardness = 2.5,
hidden = true,