From 7449725a5671a55e8489caedd781a57ae12776c6 Mon Sep 17 00:00:00 2001 From: AFCMS Date: Sat, 26 Feb 2022 19:03:27 +0100 Subject: [PATCH] add target crafting receipe --- mods/ITEMS/REDSTONE/mcl_target/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mods/ITEMS/REDSTONE/mcl_target/init.lua b/mods/ITEMS/REDSTONE/mcl_target/init.lua index 30888204e8..1c0582f064 100644 --- a/mods/ITEMS/REDSTONE/mcl_target/init.lua +++ b/mods/ITEMS/REDSTONE/mcl_target/init.lua @@ -1,5 +1,7 @@ local S = minetest.get_translator("mcl_target") +local mod_farming = minetest.get_modpath("mcl_farming") + mcl_target = {} function mcl_target.hit(pos, time) @@ -55,3 +57,15 @@ minetest.register_node("mcl_target:target_on", { _mcl_blast_resistance = 0.5, _mcl_hardness = 0.5, }) + + +if mod_farming then + minetest.register_craft({ + output = "mcl_target:target_off", + recipe = { + {"", "mesecons:redstone", ""}, + {"mesecons:redstone", "mcl_farming:hay_block", "mesecons:redstone"}, + {"", "mesecons:redstone", ""}, + }, + }) +end \ No newline at end of file