From 6bd71003a2fbd3a1820eb3e37ffb7c5db7b12325 Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Fri, 31 Aug 2012 14:56:59 +0100 Subject: Added Textures and Tarts --- dairy.lua | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'dairy.lua') diff --git a/dairy.lua b/dairy.lua index c2ca2dd..7487a62 100644 --- a/dairy.lua +++ b/dairy.lua @@ -2,7 +2,7 @@ -- A mod written by rubenwardy that adds -- food to the minetest game -- ====================================== --- >> rubenfood/support.lua +-- >> rubenfood/diary.lua -- adds diary products -- ====================================== -- [regis-food] Cheese @@ -11,6 +11,31 @@ -- [craft] Butter -- ====================================== +minetest.register_craftitem("rubenfood:butter", { + description = "Butter", + inventory_image = "ruben_butter.png", +}) + +minetest.register_craftitem("rubenfood:cheese", { + description = "Cheese", + inventory_image = "ruben_cheese.png", + on_use = minetest.item_eat(4), +}) + +minetest.register_craft({ + output = '"rubenfood:butter" 1', + recipe = { + {'"rubenfood:milk"','"rubenfood:milk"'}, + } +}) + +minetest.register_craft({ + output = '"rubenfood:cheese" 1', + recipe = { + {'"rubenfood:butter"','"rubenfood:butter"'}, + } +}) + -- cgit v1.2.3