switch experimental simplecrafting_lib support to crafting mod

This commit is contained in:
FaceDeer 2019-08-04 17:02:46 -06:00
parent ab3c671029
commit 19f14ea356
3 changed files with 15 additions and 23 deletions

View File

@ -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({

View File

@ -6,4 +6,4 @@ dynamic_liquid?
wool?
intllib?
doc?
simplecrafting_lib?
crafting?

View File

@ -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({