forked from your-land-mirror/canned_food
unified inventory integration
This commit is contained in:
parent
e595fd03a4
commit
6af363db5a
|
@ -2,4 +2,5 @@ default
|
||||||
vessels
|
vessels
|
||||||
flowers
|
flowers
|
||||||
ethereal?
|
ethereal?
|
||||||
farming?
|
farming?
|
||||||
|
unified_inventory?
|
18
init.lua
18
init.lua
|
@ -19,6 +19,16 @@
|
||||||
image files for items must follow the scheme "internal_name_of_the_product.png"
|
image files for items must follow the scheme "internal_name_of_the_product.png"
|
||||||
]]
|
]]
|
||||||
|
|
||||||
|
if minetest.get_modpath("unified_inventory") and unified_inventory.register_craft_type then
|
||||||
|
unified_inventory.register_craft_type("pickling", {
|
||||||
|
description = "Dark room, wooden shelf",
|
||||||
|
icon = "pickling_icon.png",
|
||||||
|
width = 1,
|
||||||
|
height = 1,
|
||||||
|
uses_crafting_grid = false,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
local canned_food_definitions = {
|
local canned_food_definitions = {
|
||||||
apple_jam = {
|
apple_jam = {
|
||||||
proper_name = "Apple jam",
|
proper_name = "Apple jam",
|
||||||
|
@ -348,6 +358,14 @@ for product, def in pairs(canned_food_definitions) do
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if minetest.get_modpath("unified_inventory") and unified_inventory.register_craft then
|
||||||
|
unified_inventory.register_craft({
|
||||||
|
type = "pickling",
|
||||||
|
output = "canned_food:" .. product .."_plus",
|
||||||
|
items = {"canned_food:" .. product},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- a family of shapeless recipes, with sugar for jams
|
-- a family of shapeless recipes, with sugar for jams
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 145 B |
Loading…
Reference in New Issue