forked from VoxeLibre/VoxeLibre
Move some groups (api.lua → chests.lua)
This commit is contained in:
parent
16dd8694a6
commit
b4b5bf8391
|
@ -548,12 +548,8 @@ function mcl_chests.register_chest(basename, d)
|
||||||
-- Construct groups
|
-- Construct groups
|
||||||
local groups_inv = table_merge({ deco_block = 1 }, d.groups)
|
local groups_inv = table_merge({ deco_block = 1 }, d.groups)
|
||||||
local groups_small = table_merge(groups_inv, {
|
local groups_small = table_merge(groups_inv, {
|
||||||
handy = 1,
|
|
||||||
axey = 1,
|
|
||||||
container = 2,
|
container = 2,
|
||||||
deco_block = 1,
|
deco_block = 1,
|
||||||
material_wood = 1,
|
|
||||||
flammable = -1,
|
|
||||||
chest_entity = 1,
|
chest_entity = 1,
|
||||||
not_in_creative_inventory = 1
|
not_in_creative_inventory = 1
|
||||||
}, d.groups)
|
}, d.groups)
|
||||||
|
|
|
@ -21,6 +21,12 @@ mcl_chests.register_chest("chest", {
|
||||||
"mcl_chests_chest_right.png", "mcl_chests_chest_left.png",
|
"mcl_chests_chest_right.png", "mcl_chests_chest_left.png",
|
||||||
"mcl_chests_chest_back.png", "default_chest_front.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(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
hardness = 2.5,
|
hardness = 2.5,
|
||||||
hidden = false,
|
hidden = false,
|
||||||
|
@ -42,7 +48,13 @@ mcl_chests.register_chest("trapped_chest", {
|
||||||
tt_help = S("27 inventory slots") ..
|
tt_help = S("27 inventory slots") ..
|
||||||
"\n" .. S("Can be combined to a large chest") .. "\n" .. S("Emits a redstone signal when opened"),
|
"\n" .. S("Can be combined to a large chest") .. "\n" .. S("Emits a redstone signal when opened"),
|
||||||
tiles = traptiles,
|
tiles = traptiles,
|
||||||
groups = { mesecon = 2 },
|
groups = {
|
||||||
|
handy = 1,
|
||||||
|
axey = 1,
|
||||||
|
material_wood = 1,
|
||||||
|
flammable = -1,
|
||||||
|
mesecon = 2,
|
||||||
|
},
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
hardness = 2.5,
|
hardness = 2.5,
|
||||||
hidden = false,
|
hidden = false,
|
||||||
|
@ -93,6 +105,13 @@ mcl_chests.register_chest("trapped_chest_on", {
|
||||||
usagehelp = nil,
|
usagehelp = nil,
|
||||||
tt_help = nil,
|
tt_help = nil,
|
||||||
tiles = traptiles,
|
tiles = traptiles,
|
||||||
|
groups = {
|
||||||
|
handy = 1,
|
||||||
|
axey = 1,
|
||||||
|
material_wood = 1,
|
||||||
|
flammable = -1,
|
||||||
|
mesecon = 2,
|
||||||
|
},
|
||||||
sounds = mcl_sounds.node_sound_wood_defaults(),
|
sounds = mcl_sounds.node_sound_wood_defaults(),
|
||||||
hardness = 2.5,
|
hardness = 2.5,
|
||||||
hidden = true,
|
hidden = true,
|
||||||
|
|
Loading…
Reference in New Issue