From 925285e88887864c3fd626b5a2760390e42d8e53 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sun, 4 Mar 2018 04:00:45 +0100 Subject: [PATCH] Add recipes for extractor --- mods/nalc/depends.txt | 1 + mods/nalc/technic.lua | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/mods/nalc/depends.txt b/mods/nalc/depends.txt index 0afe40ab..404be5b5 100644 --- a/mods/nalc/depends.txt +++ b/mods/nalc/depends.txt @@ -19,6 +19,7 @@ mff_quests? doors? darkage? dye? +unifieddyes? cherry_tree? nether? mobs_animal? diff --git a/mods/nalc/technic.lua b/mods/nalc/technic.lua index a1aa3f45..f564445f 100644 --- a/mods/nalc/technic.lua +++ b/mods/nalc/technic.lua @@ -30,3 +30,54 @@ minetest.register_ore({ noise_params = uranium_params, noise_threshold = uranium_threshold, }) + +-- Add recipes for extractor + +if minetest.get_modpath("dye") then + local unifieddyes = minetest.get_modpath("unifieddyes") + local dye_recipes = + { + {"bakedclay:delphinium", "dye:cyan 4"}, + {"bakedclay:lazarus", "dye:pink 4"}, + {"bakedclay:mannagrass", "dye:dark_green 4"}, + {"bakedclay:thistle", "dye:magenta 4"}, + {"nalc:scorched_stuff", "dye:black 4"}, + {"moreflowers:wild_carrot", "dye:white 2"}, + {"moreflowers:teosinte", unifieddyes and "unifieddyes:lime 2"}, + {"morefarming:wildcarrot", "dye:white 4"}, + {"morefarming:teosinte", unifieddyes and "unifieddyes:lime 4"} + } + + for _, data in ipairs(dye_recipes) do + technic.register_extractor_recipe({input = {data[1]}, output = data[2]}) + end + + -- overwrite the existing crafting recipes + minetest.register_craft( + { + type = "shapeless", + output = "dye:cyan 1", + recipe = {"bakedclay:delphinium"} + }) + + minetest.register_craft( + { + type = "shapeless", + output = "dye:pink 1", + recipe = {"bakedclay:lazarus"} + }) + + minetest.register_craft( + { + type = "shapeless", + output = "dye:dark_green 1", + recipe = {"bakedclay:mannagrass"} + }) + + minetest.register_craft( + { + type = "shapeless", + output = "dye:magenta 1", + recipe = {"bakedclay:thistle"} + }) +end