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")