From b336aaa2b489ceee8e5bc803dabc3052d2bbd63a Mon Sep 17 00:00:00 2001 From: Rubenwardy Date: Mon, 10 Sep 2012 20:04:10 +0100 Subject: Moved stuff around and added hot chocolate --- init.lua | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 6035626..fb5bc88 100644 --- a/init.lua +++ b/init.lua @@ -14,18 +14,20 @@ print ("food: Loading mainframe: [Master]") ----------------------Load Files----------------------------- dofile(minetest.get_modpath("food").."/support.lua") -dofile(minetest.get_modpath("food").."/oven.lua") +dofile(minetest.get_modpath("food").."/tools/oven.lua") dofile(minetest.get_modpath("food").."/dairy.lua") -dofile(minetest.get_modpath("food").."/meats.lua") -dofile(minetest.get_modpath("food").."/sandwich.lua") -dofile(minetest.get_modpath("food").."/baking.lua") +dofile(minetest.get_modpath("food").."/food/meats.lua") +dofile(minetest.get_modpath("food").."/food/sandwich.lua") +dofile(minetest.get_modpath("food").."/food/baking.lua") -dofile(minetest.get_modpath("food").."/crumbles.lua") -dofile(minetest.get_modpath("food").."/cakes.lua") -dofile(minetest.get_modpath("food").."/tarts.lua") +dofile(minetest.get_modpath("food").."/snacks/crumbles.lua") +dofile(minetest.get_modpath("food").."/snacks/cakes.lua") +dofile(minetest.get_modpath("food").."/snacks/tarts.lua") -dofile(minetest.get_modpath("food").."/drinks.lua") +dofile(minetest.get_modpath("food").."/drinks/juice.lua") +dofile(minetest.get_modpath("food").."/drinks/hot.lua") +dofile(minetest.get_modpath("food").."/drinks/milkshakes.lua") @@ -36,14 +38,27 @@ minetest.register_craftitem("food:mug",{ inventory_image = "food_mug.png", }) +minetest.register_craftitem("food:clay_mug",{ + description = "Clay Mug", + inventory_image = "food_clay_mug.png", +}) + minetest.register_craft({ - output = '"food:cup" 4', + output = '"food:clay_mug" 1', recipe = { - {"default:glass"}, - {"default:glass"}, + {"default:clay_lump","","default:clay_lump"}, + {"default:clay_lump","","default:clay_lump"}, + {"default:clay_lump","default:clay_lump","default:clay_lump"}, } }) +minetest.register_craft({ + type = "cooking", + output = "food:mug", + recipe = "food:clay_mug", +}) + + -----------------------------Sugar------------------------------ minetest.register_craftitem("food:sugar", { description = "Sugar", @@ -58,7 +73,7 @@ minetest.register_craft({ }) ----------------------------Cigerete---------------------------- -minetest.register_node("food:cigarette", { +minetest.register_craftitem("food:cigarette", { description = "Cigarette", inventory_image = "food_cigar.png", on_use = minetest.item_eat(-4), -- cgit v1.2.3