removed bags from i3
This commit is contained in:
parent
88b8e857cb
commit
edcfc93db3
@ -131,43 +131,43 @@ local function init_bags(player)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local bag_recipes = {
|
--local bag_recipes = {
|
||||||
small = {
|
-- small = {
|
||||||
rcp = {
|
-- rcp = {
|
||||||
{"", "farming:string", ""},
|
-- {"", "farming:string", ""},
|
||||||
{"group:wool", "group:wool", "group:wool"},
|
-- {"group:wool", "group:wool", "group:wool"},
|
||||||
{"group:wool", "group:wool", "group:wool"},
|
-- {"group:wool", "group:wool", "group:wool"},
|
||||||
},
|
-- },
|
||||||
size = 2,
|
-- size = 2,
|
||||||
},
|
-- },
|
||||||
medium = {
|
-- medium = {
|
||||||
rcp = {
|
-- rcp = {
|
||||||
{"farming:string", "i3:bag_small", "farming:string"},
|
-- {"farming:string", "i3:bag_small", "farming:string"},
|
||||||
{"farming:string", "i3:bag_small", "farming:string"},
|
-- {"farming:string", "i3:bag_small", "farming:string"},
|
||||||
},
|
-- },
|
||||||
size = 3,
|
-- size = 3,
|
||||||
},
|
-- },
|
||||||
large = {
|
-- large = {
|
||||||
rcp = {
|
-- rcp = {
|
||||||
{"farming:string", "i3:bag_medium", "farming:string"},
|
-- {"farming:string", "i3:bag_medium", "farming:string"},
|
||||||
{"farming:string", "i3:bag_medium", "farming:string"},
|
-- {"farming:string", "i3:bag_medium", "farming:string"},
|
||||||
},
|
-- },
|
||||||
size = 4,
|
-- size = 4,
|
||||||
},
|
-- },
|
||||||
}
|
--}
|
||||||
|
--
|
||||||
for size, item in pairs(bag_recipes) do
|
--for size, item in pairs(bag_recipes) do
|
||||||
local bagname = fmt("i3:bag_%s", size)
|
-- local bagname = fmt("i3:bag_%s", size)
|
||||||
|
--
|
||||||
core.register_craftitem(bagname, {
|
-- core.register_craftitem(bagname, {
|
||||||
description = fmt("%s Backpack", size:gsub("^%l", string.upper)),
|
-- description = fmt("%s Backpack", size:gsub("^%l", string.upper)),
|
||||||
inventory_image = fmt("i3_bag_%s.png", size),
|
-- inventory_image = fmt("i3_bag_%s.png", size),
|
||||||
groups = {bag = item.size},
|
-- groups = {bag = item.size},
|
||||||
stack_max = 1,
|
-- stack_max = 1,
|
||||||
})
|
-- })
|
||||||
|
--
|
||||||
core.register_craft{output = bagname, recipe = item.rcp}
|
-- core.register_craft{output = bagname, recipe = item.rcp}
|
||||||
core.register_craft{type = "fuel", recipe = bagname, burntime = 3}
|
-- core.register_craft{type = "fuel", recipe = bagname, burntime = 3}
|
||||||
end
|
--end
|
||||||
|
|
||||||
return init_bags
|
return init_bags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user