From c990a2bcc83f3f3ce3f50e4b6e9cc60e51b36165 Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Sun, 12 Mar 2017 18:13:21 +0100 Subject: [PATCH] Add nalc mod (mod that make correction between mods) Fix world.mt for moreplants --- mods/nalc/depends.txt | 3 +++ mods/nalc/init.lua | 28 ++++++++++++++++++++++++++++ worlds/minetestforfun/world.mt | 3 +++ 3 files changed, 34 insertions(+) create mode 100644 mods/nalc/depends.txt create mode 100644 mods/nalc/init.lua diff --git a/mods/nalc/depends.txt b/mods/nalc/depends.txt new file mode 100644 index 00000000..b09c83d8 --- /dev/null +++ b/mods/nalc/depends.txt @@ -0,0 +1,3 @@ +default +witchcraft? + diff --git a/mods/nalc/init.lua b/mods/nalc/init.lua new file mode 100644 index 00000000..36f29471 --- /dev/null +++ b/mods/nalc/init.lua @@ -0,0 +1,28 @@ +-- Change craft recipe of Witchcraft:tooth +if minetest.get_modpath("witchcraft") then + + -- clear crafts with this particular recipe + minetest.clear_craft( + { + recipe = { {"default:sand"} } + }) + + -- register default:desert_sand (by MFF) + minetest.register_craft( + { + output = "default:desert_sand", + recipe = { + {"default:sand"}, + } + }) + + -- register witchcraft:tooth (by NALC) + minetest.register_craft( + { + output = "witchcraft:tooth", + recipe = { + {"default:sand", "", "default:sand"}, + {"", "default:sand", ""}, + } + }) +end diff --git a/worlds/minetestforfun/world.mt b/worlds/minetestforfun/world.mt index 8b958a9a..33dea5d5 100755 --- a/worlds/minetestforfun/world.mt +++ b/worlds/minetestforfun/world.mt @@ -259,3 +259,6 @@ load_mod_bakedclay = true load_mod_moreflowers = true load_mod_morefarming = true + +load_mod_moreplants = true +load_mod_nalc = true \ No newline at end of file