From db29458b2a67778307c128ab720ca9c4a3de5fc1 Mon Sep 17 00:00:00 2001 From: Zaraki98 Date: Tue, 3 Sep 2013 18:22:23 +0200 Subject: [PATCH] Dofiles and cigarete --- init.lua | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index c694b20..43cb99c 100644 --- a/init.lua +++ b/init.lua @@ -24,10 +24,11 @@ dofile(minetest.get_modpath("food").."/food/soup.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").."/snacks/misc.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") ----------------------------Cup------------------------------ @@ -100,4 +101,20 @@ minetest.register_craft({ } }) +----------------------------Cigarete---------------------------- +minetest.register_craftitem("food:cigarette", { + description = "Cigarette", + inventory_image = "food_cigar.png", + on_use = minetest.item_eat(-4), +}) + +minetest.register_craft({ + output = '"food:cigarette" 1', + recipe = { + {'"default:dry_shrub"','"default:dry_shrub"','"default:dry_shrub"'}, + + } +}) + + print("Food: Mainframe loaded")