From af72871bf0096f4909eb2e55088d67baf19d85b4 Mon Sep 17 00:00:00 2001 From: MrIbby Date: Fri, 6 Nov 2015 19:24:30 -0800 Subject: [PATCH] Add sugar and change recipe --- README.txt | 11 ++++++----- init.lua | 18 +++++++++++++++++- textures/cake_sugar.png | Bin 0 -> 4425 bytes 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 textures/cake_sugar.png diff --git a/README.txt b/README.txt index 54abfdc..165de15 100644 --- a/README.txt +++ b/README.txt @@ -33,8 +33,9 @@ http://creativecommons.org/licenses/by-sa/4.0/ Authors of textures: -------------------- -Derived from textures by rubenwardy (CC BY-SA): - cake_bottom.png - cake_inner.png - cake_side.png - cake_top.png +rubenwardy (CC-BY-SA): + cake_bottom.png, derivative + cake_inner.png, derivative + cake_side.png, derivative + cake_sugar.png + cake_top.png, derivative diff --git a/init.lua b/init.lua index a3b8ecd..2c8edd4 100644 --- a/init.lua +++ b/init.lua @@ -49,8 +49,24 @@ for i, size in ipairs(sizes) do }) end +if minetest.get_modpath("food") == nil then + minetest.register_craftitem("cake:sugar", { + description = "Sugar", + inventory_image = "cake_sugar.png", + groups = {food_sugar=1} + }) + + minetest.register_craft({ + type = "shapeless", + output = "cake:sugar", + recipe = {"default:papyrus"} + }) +else + minetest.register_alias("cake:sugar", "food:sugar") +end + minetest.register_craft({ type = "shapeless", output = "cake:cake", - recipe = {"farming:flour", "farming:flour", "group:water_bucket"} + recipe = {"farming:flour", "group:water_bucket", "group:food_sugar", "group:food_sugar"} }) diff --git a/textures/cake_sugar.png b/textures/cake_sugar.png new file mode 100644 index 0000000000000000000000000000000000000000..10ecf703096828e9b15e8ad9f41d9fec2ba7f4a6 GIT binary patch literal 4425 zcmV-P5w`A$P)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01m_e01m_fl`9S#00007bV*G`2iyb* z3Oga>P=ad!01(MZL_t(|+U1&kbW>%X$3Hhso2ChAOKGTuw!B!V$Xgo<3IgK54wXhk z4~wsZ0wzWAWgK;n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