From 93f7eb44d677f8a79ed0a3b7e1b39c11dc6dd925 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 4 May 2020 20:52:27 +0100 Subject: [PATCH] can craft dye from mulch, bonemeal, fertiliser --- README.md | 1 + mods.lua | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index e3ed954..79b66e4 100644 --- a/README.md +++ b/README.md @@ -32,5 +32,6 @@ Changelog: - 1.0 - add_deco() now adds to existing item list while set_deco() replaces item list (thanks h-v-smacker) - 1.1 - Added {can_bonemeal=1} group for special nodes - 1.2 - Added support for minetest 5.0 cactus seedling, blueberry bush sapling and emergent jungle tree saplings, additional flowers and pine bush sapling. +- 1.3 - Ability to craft dye from mulch, bonemeal and fertiliser (thanks orbea) Lucky Blocks: 6 diff --git a/mods.lua b/mods.lua index 1c8f577..e193273 100644 --- a/mods.lua +++ b/mods.lua @@ -141,3 +141,20 @@ if minetest.get_modpath("caverealms") then {"caverealms:mushroom_sapling", add_shroom, "soil"} }) end + + +if minetest.get_modpath("dye") then + + local bonemeal_dyes = { + bonemeal = "white", fertiliser = "green", mulch = "brown"} + + for mat, dye in pairs(bonemeal_dyes) do + + minetest.register_craft({ + output = "dye:" .. dye .. " 4", + recipe = { + {"bonemeal:" .. mat} + }, + }) + end +end