mirror of
https://github.com/FaceDeer/dfcaverns.git
synced 2024-11-14 14:40:29 +01:00
switch experimental simplecrafting_lib support to crafting mod
This commit is contained in:
parent
ab3c671029
commit
19f14ea356
|
@ -32,36 +32,30 @@ local register_cooking_recipes = function(prefix, item, name, returns)
|
||||||
minetest.register_alias("dfcaverns:"..item.."_stew", "df_farming:"..item.."_stew")
|
minetest.register_alias("dfcaverns:"..item.."_stew", "df_farming:"..item.."_stew")
|
||||||
minetest.register_alias("dfcaverns:"..item.."_roast", "df_farming:"..item.."_roast")
|
minetest.register_alias("dfcaverns:"..item.."_roast", "df_farming:"..item.."_roast")
|
||||||
|
|
||||||
if minetest.get_modpath("simplecrafting_lib") then
|
if minetest.get_modpath("crafting") then
|
||||||
simplecrafting_lib.register("cooking", {
|
simplecrafting_lib.register("furnace", {
|
||||||
input = {
|
input = {
|
||||||
["group:dfcaverns_cookable"] = 1,
|
["group:dfcaverns_cookable"] = 1,
|
||||||
[prefix..":"..item] = 1,
|
[prefix..":"..item] = 1,
|
||||||
|
["simplecrafting_lib:heat"] = 5,
|
||||||
},
|
},
|
||||||
output = {
|
output = "df_farming:"..item.."_biscuit",
|
||||||
["df_farming:"..item.."_biscuit"] = 1,
|
|
||||||
},
|
|
||||||
cooktime = 5.0,
|
|
||||||
})
|
})
|
||||||
simplecrafting_lib.register("cooking", {
|
simplecrafting_lib.register("furnace", {
|
||||||
input = {
|
input = {
|
||||||
["group:dfcaverns_cookable"] = 2,
|
["group:dfcaverns_cookable"] = 2,
|
||||||
[prefix..":"..item] = 1,
|
[prefix..":"..item] = 1,
|
||||||
|
["simplecrafting_lib:heat"] = 10,
|
||||||
},
|
},
|
||||||
output = {
|
output = "df_farming:"..item.."_stew",
|
||||||
["df_farming:"..item.."_stew"] = 1,
|
|
||||||
},
|
|
||||||
cooktime = 10.0,
|
|
||||||
})
|
})
|
||||||
simplecrafting_lib.register("cooking", {
|
simplecrafting_lib.register("furnace", {
|
||||||
input = {
|
input = {
|
||||||
["group:dfcaverns_cookable"] = 3,
|
["group:dfcaverns_cookable"] = 3,
|
||||||
[prefix..":"..item] = 1,
|
[prefix..":"..item] = 1,
|
||||||
|
["simplecrafting_lib:heat"] = 15,
|
||||||
},
|
},
|
||||||
output = {
|
output = "df_farming:"..item.."_roast",
|
||||||
["df_farming:"..item.."_roast"] = 1,
|
|
||||||
},
|
|
||||||
cooktime = 15.0,
|
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
|
@ -6,4 +6,4 @@ dynamic_liquid?
|
||||||
wool?
|
wool?
|
||||||
intllib?
|
intllib?
|
||||||
doc?
|
doc?
|
||||||
simplecrafting_lib?
|
crafting?
|
||||||
|
|
|
@ -239,16 +239,14 @@ if minetest.get_modpath("bucket") then
|
||||||
S("Dwarven Syrup Bucket")
|
S("Dwarven Syrup Bucket")
|
||||||
)
|
)
|
||||||
|
|
||||||
if minetest.get_modpath("simplecrafting_lib") then
|
if minetest.get_modpath("crafting") then
|
||||||
simplecrafting_lib.register("cooking", {
|
simplecrafting_lib.register("furnace", {
|
||||||
input = {
|
input = {
|
||||||
["bucket:bucket_empty"] = 1,
|
["bucket:bucket_empty"] = 1,
|
||||||
["df_farming:sugar"] = 3,
|
["df_farming:sugar"] = 3,
|
||||||
|
["simplecrafting_lib:heat"] = 5,
|
||||||
},
|
},
|
||||||
output = {
|
output = "df_farming:dwarven_syrup_bucket",
|
||||||
["df_farming:dwarven_syrup_bucket"] = 1,
|
|
||||||
},
|
|
||||||
cooktime = 5.0,
|
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
|
Loading…
Reference in New Issue
Block a user