From dfac9ed3167d7adff46e5d1e5f6e0511c2247702 Mon Sep 17 00:00:00 2001 From: Xanthin Date: Tue, 8 Apr 2014 22:52:34 +0200 Subject: [PATCH] use strawberry and sugar from bushes only --- init.lua | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/init.lua b/init.lua index b5724a8..21fa5d1 100644 --- a/init.lua +++ b/init.lua @@ -123,6 +123,7 @@ food.support("cup","vessels","vessels:drinking_glass") food.support("cup","animalmaterials","animalmaterials:glass") food.support("sugar","jkfarming","jkfarming:sugar") food.support("sugar","bushes_classic","bushes:sugar") +food.support("strawberry","bushes_classic","bushes:strawberry") -- Default inbuilt ingrediants food.asupport("wheat",function() @@ -265,6 +266,19 @@ food.asupport("cocoa",function() } }) end) +food.asupport("sugar",function() + minetest.register_craftitem("food:sugar", { + description = S("Sugar"), + inventory_image = "food_sugar.png", + groups = {food_sugar=1} + }) + minetest.register_craft({ + output = "food:sugar 20", + recipe = { + {"default:papyrus"}, + } + }) +end) food.asupport("meat_raw",function() minetest.register_craftitem("food:meat_raw", { description = S("Raw meat"), @@ -306,19 +320,6 @@ if minetest.get_modpath("animalmaterials") then end --- Register sugar -minetest.register_craftitem("food:sugar", { - description = S("Sugar"), - inventory_image = "food_sugar.png", - groups = {food_sugar=1} -}) -minetest.register_craft({ - output = "food:sugar 20", - recipe = { - {"default:papyrus"}, - } -}) - -- Register chocolate powder minetest.register_craftitem("food:chocolate_powder", { description = S("Chocolate Powder"),