removed bags from i3
This commit is contained in:
parent
88b8e857cb
commit
edcfc93db3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user