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.."_roast", "df_farming:"..item.."_roast")
|
||||
|
||||
if minetest.get_modpath("simplecrafting_lib") then
|
||||
simplecrafting_lib.register("cooking", {
|
||||
if minetest.get_modpath("crafting") then
|
||||
simplecrafting_lib.register("furnace", {
|
||||
input = {
|
||||
["group:dfcaverns_cookable"] = 1,
|
||||
[prefix..":"..item] = 1,
|
||||
["simplecrafting_lib:heat"] = 5,
|
||||
},
|
||||
output = {
|
||||
["df_farming:"..item.."_biscuit"] = 1,
|
||||
},
|
||||
cooktime = 5.0,
|
||||
output = "df_farming:"..item.."_biscuit",
|
||||
})
|
||||
simplecrafting_lib.register("cooking", {
|
||||
simplecrafting_lib.register("furnace", {
|
||||
input = {
|
||||
["group:dfcaverns_cookable"] = 2,
|
||||
[prefix..":"..item] = 1,
|
||||
["simplecrafting_lib:heat"] = 10,
|
||||
},
|
||||
output = {
|
||||
["df_farming:"..item.."_stew"] = 1,
|
||||
},
|
||||
cooktime = 10.0,
|
||||
output = "df_farming:"..item.."_stew",
|
||||
})
|
||||
simplecrafting_lib.register("cooking", {
|
||||
simplecrafting_lib.register("furnace", {
|
||||
input = {
|
||||
["group:dfcaverns_cookable"] = 3,
|
||||
[prefix..":"..item] = 1,
|
||||
["simplecrafting_lib:heat"] = 15,
|
||||
},
|
||||
output = {
|
||||
["df_farming:"..item.."_roast"] = 1,
|
||||
},
|
||||
cooktime = 15.0,
|
||||
output = "df_farming:"..item.."_roast",
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
|
|
|
@ -6,4 +6,4 @@ dynamic_liquid?
|
|||
wool?
|
||||
intllib?
|
||||
doc?
|
||||
simplecrafting_lib?
|
||||
crafting?
|
||||
|
|
|
@ -239,16 +239,14 @@ if minetest.get_modpath("bucket") then
|
|||
S("Dwarven Syrup Bucket")
|
||||
)
|
||||
|
||||
if minetest.get_modpath("simplecrafting_lib") then
|
||||
simplecrafting_lib.register("cooking", {
|
||||
if minetest.get_modpath("crafting") then
|
||||
simplecrafting_lib.register("furnace", {
|
||||
input = {
|
||||
["bucket:bucket_empty"] = 1,
|
||||
["df_farming:sugar"] = 3,
|
||||
["simplecrafting_lib:heat"] = 5,
|
||||
},
|
||||
output = {
|
||||
["df_farming:dwarven_syrup_bucket"] = 1,
|
||||
},
|
||||
cooktime = 5.0,
|
||||
output = "df_farming:dwarven_syrup_bucket",
|
||||
})
|
||||
else
|
||||
minetest.register_craft({
|
||||
|
|
Loading…
Reference in New Issue
Block a user