Merge pull request #61 from Wuzzy2/bagdep
Add optional farming dependency for bag craft
This commit is contained in:
commit
8332707198
15
bags.lua
15
bags.lua
@ -215,30 +215,31 @@ minetest.register_tool("unified_inventory:bag_large", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
-- register bag crafts
|
-- register bag crafts
|
||||||
minetest.register_craft({
|
if minetest.get_modpath("farming") ~= nil then
|
||||||
|
minetest.register_craft({
|
||||||
output = "unified_inventory:bag_small",
|
output = "unified_inventory:bag_small",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "farming:cotton", ""},
|
{"", "farming:cotton", ""},
|
||||||
{"group:wool", "group:wool", "group:wool"},
|
{"group:wool", "group:wool", "group:wool"},
|
||||||
{"group:wool", "group:wool", "group:wool"},
|
{"group:wool", "group:wool", "group:wool"},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "unified_inventory:bag_medium",
|
output = "unified_inventory:bag_medium",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", ""},
|
{"", "", ""},
|
||||||
{"farming:cotton", "unified_inventory:bag_small", "farming:cotton"},
|
{"farming:cotton", "unified_inventory:bag_small", "farming:cotton"},
|
||||||
{"farming:cotton", "unified_inventory:bag_small", "farming:cotton"},
|
{"farming:cotton", "unified_inventory:bag_small", "farming:cotton"},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "unified_inventory:bag_large",
|
output = "unified_inventory:bag_large",
|
||||||
recipe = {
|
recipe = {
|
||||||
{"", "", ""},
|
{"", "", ""},
|
||||||
{"farming:cotton", "unified_inventory:bag_medium", "farming:cotton"},
|
{"farming:cotton", "unified_inventory:bag_medium", "farming:cotton"},
|
||||||
{"farming:cotton", "unified_inventory:bag_medium", "farming:cotton"},
|
{"farming:cotton", "unified_inventory:bag_medium", "farming:cotton"},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
creative?
|
creative?
|
||||||
intllib?
|
intllib?
|
||||||
datastorage?
|
datastorage?
|
||||||
|
farming?
|
||||||
|
Loading…
Reference in New Issue
Block a user