diff --git a/mods/i3/src/bags.lua b/mods/i3/src/bags.lua index 5b3deca..4afd009 100644 --- a/mods/i3/src/bags.lua +++ b/mods/i3/src/bags.lua @@ -131,43 +131,43 @@ local function init_bags(player) end end -local bag_recipes = { - small = { - rcp = { - {"", "farming:string", ""}, - {"group:wool", "group:wool", "group:wool"}, - {"group:wool", "group:wool", "group:wool"}, - }, - size = 2, - }, - medium = { - rcp = { - {"farming:string", "i3:bag_small", "farming:string"}, - {"farming:string", "i3:bag_small", "farming:string"}, - }, - size = 3, - }, - large = { - rcp = { - {"farming:string", "i3:bag_medium", "farming:string"}, - {"farming:string", "i3:bag_medium", "farming:string"}, - }, - size = 4, - }, -} - -for size, item in pairs(bag_recipes) do - local bagname = fmt("i3:bag_%s", size) - - core.register_craftitem(bagname, { - description = fmt("%s Backpack", size:gsub("^%l", string.upper)), - inventory_image = fmt("i3_bag_%s.png", size), - groups = {bag = item.size}, - stack_max = 1, - }) - - core.register_craft{output = bagname, recipe = item.rcp} - core.register_craft{type = "fuel", recipe = bagname, burntime = 3} -end +--local bag_recipes = { +-- small = { +-- rcp = { +-- {"", "farming:string", ""}, +-- {"group:wool", "group:wool", "group:wool"}, +-- {"group:wool", "group:wool", "group:wool"}, +-- }, +-- size = 2, +-- }, +-- medium = { +-- rcp = { +-- {"farming:string", "i3:bag_small", "farming:string"}, +-- {"farming:string", "i3:bag_small", "farming:string"}, +-- }, +-- size = 3, +-- }, +-- large = { +-- rcp = { +-- {"farming:string", "i3:bag_medium", "farming:string"}, +-- {"farming:string", "i3:bag_medium", "farming:string"}, +-- }, +-- size = 4, +-- }, +--} +-- +--for size, item in pairs(bag_recipes) do +-- local bagname = fmt("i3:bag_%s", size) +-- +-- core.register_craftitem(bagname, { +-- description = fmt("%s Backpack", size:gsub("^%l", string.upper)), +-- inventory_image = fmt("i3_bag_%s.png", size), +-- groups = {bag = item.size}, +-- stack_max = 1, +-- }) +-- +-- core.register_craft{output = bagname, recipe = item.rcp} +-- core.register_craft{type = "fuel", recipe = bagname, burntime = 3} +--end return init_bags