From 19f14ea35619036e1a24a825729effe6c6629c92 Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Sun, 4 Aug 2019 17:02:46 -0600 Subject: [PATCH] switch experimental simplecrafting_lib support to crafting mod --- df_farming/cooking.lua | 26 ++++++++++---------------- df_farming/depends.txt | 2 +- df_farming/sweet_pod.lua | 10 ++++------ 3 files changed, 15 insertions(+), 23 deletions(-) diff --git a/df_farming/cooking.lua b/df_farming/cooking.lua index 0a72d51..eb7736d 100644 --- a/df_farming/cooking.lua +++ b/df_farming/cooking.lua @@ -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({ diff --git a/df_farming/depends.txt b/df_farming/depends.txt index 1a884ec..74ea25f 100644 --- a/df_farming/depends.txt +++ b/df_farming/depends.txt @@ -6,4 +6,4 @@ dynamic_liquid? wool? intllib? doc? -simplecrafting_lib? +crafting? diff --git a/df_farming/sweet_pod.lua b/df_farming/sweet_pod.lua index 53a841e..6516c5a 100644 --- a/df_farming/sweet_pod.lua +++ b/df_farming/sweet_pod.lua @@ -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({