forked from nalc/food_sweet
		
	Update to 0.2
This commit is contained in:
		| @@ -3,7 +3,7 @@ Sweet Foods | |||||||
|  |  | ||||||
| An expansion pack for the food mod, written by rubenwardy. | An expansion pack for the food mod, written by rubenwardy. | ||||||
|  |  | ||||||
| Version 0.1 | Version 0.2 | ||||||
|  |  | ||||||
| * Strawberry cheese cake | * Strawberry cheese cake | ||||||
| * Blueberry cheese cake | * Blueberry cheese cake | ||||||
|   | |||||||
							
								
								
									
										597
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										597
									
								
								init.lua
									
									
									
									
									
								
							| @@ -7,9 +7,9 @@ | |||||||
| -- things | -- things | ||||||
| -- ===================================== | -- ===================================== | ||||||
|  |  | ||||||
| print("Sweet Foods - Version 0.1") | print("Sweet Foods - Version 0.2") | ||||||
|  |  | ||||||
| if not food or not food.version or food.version < 2.1 then | if not food or not food.version or food.version < 2.3 then | ||||||
| 	error("You need to update your version of the Food mod - it is too old") | 	error("You need to update your version of the Food mod - it is too old") | ||||||
| end | end | ||||||
|  |  | ||||||
| @@ -22,16 +22,14 @@ else | |||||||
| 	S = function ( s ) return s end | 	S = function ( s ) return s end | ||||||
| end | end | ||||||
|  |  | ||||||
| food.support("strawberry","farming_plus","farming_plus:strawberry_item") | food.support("strawberry", {"farming_plus:strawberry_item", "plantlib:strawberry", "bushes:strawberry"}) | ||||||
| food.support("strawberry","plantlib","plantlib:strawberry") | food.support("rhubarb", "farming_plus:rhubarb_item") | ||||||
| food.support("strawberry","bushes_classic","bushes:strawberry") |  | ||||||
| food.support("rhubarb","farming_plus","farming_plus:rhubarb_item") |  | ||||||
|  |  | ||||||
| if minetest.setting_get("food_sweet_use_2d")==nil then | if minetest.setting_get("food_sweet_use_2d")==nil then | ||||||
| 	minetest.setting_set("food_sweet_use_2d", "1") | 	minetest.setting_set("food_sweet_use_2d", "1") | ||||||
| end | end | ||||||
|  |  | ||||||
| food.asupport("walnut",function() | food.module("walnut",function() | ||||||
| 	minetest.register_craftitem("food_sweet:walnut", { | 	minetest.register_craftitem("food_sweet:walnut", { | ||||||
| 		description = S("Walnut"), | 		description = S("Walnut"), | ||||||
| 		inventory_image = "food_sweet_walnut.png", | 		inventory_image = "food_sweet_walnut.png", | ||||||
| @@ -45,8 +43,8 @@ food.asupport("walnut",function() | |||||||
| 			{"default:sand","","default:sand"} | 			{"default:sand","","default:sand"} | ||||||
| 		} | 		} | ||||||
| 	}) | 	}) | ||||||
| end) | end, true) | ||||||
| food.asupport("strawberry",function() | food.module("strawberry",function() | ||||||
| 	minetest.register_alias("food:strawberry", "food_sweet:strawberry") | 	minetest.register_alias("food:strawberry", "food_sweet:strawberry") | ||||||
| 	minetest.register_craftitem("food_sweet:strawberry", { | 	minetest.register_craftitem("food_sweet:strawberry", { | ||||||
| 		description = S("Strawberry"), | 		description = S("Strawberry"), | ||||||
| @@ -60,8 +58,8 @@ food.asupport("strawberry",function() | |||||||
| 			{"default:apple"}, | 			{"default:apple"}, | ||||||
| 		} | 		} | ||||||
| 	}) | 	}) | ||||||
| end) | end, true) | ||||||
| food.asupport("blueberry",function() | food.module("blueberry",function() | ||||||
| 	minetest.register_craftitem("food_sweet:blueberry", { | 	minetest.register_craftitem("food_sweet:blueberry", { | ||||||
| 		description = S("Blueberry"), | 		description = S("Blueberry"), | ||||||
| 		inventory_image = "food_sweet_blueberry.png", | 		inventory_image = "food_sweet_blueberry.png", | ||||||
| @@ -75,8 +73,8 @@ food.asupport("blueberry",function() | |||||||
| 			{"","wool:blue",""} | 			{"","wool:blue",""} | ||||||
| 		} | 		} | ||||||
| 	}) | 	}) | ||||||
| end) | end, true) | ||||||
| food.asupport("rhubarb",function() | food.module("rhubarb",function() | ||||||
| 	minetest.register_craftitem("food_sweet:rhubarb", { | 	minetest.register_craftitem("food_sweet:rhubarb", { | ||||||
| 		description = S("Rhubard"), | 		description = S("Rhubard"), | ||||||
| 		inventory_image = "farming_rhubarb.png", | 		inventory_image = "farming_rhubarb.png", | ||||||
| @@ -90,8 +88,8 @@ food.asupport("rhubarb",function() | |||||||
| 			{"wool:red"} | 			{"wool:red"} | ||||||
| 		} | 		} | ||||||
| 	}) | 	}) | ||||||
| end) | end, true) | ||||||
| food.asupport("lemon",function() | food.module("lemon",function() | ||||||
| 	minetest.register_craftitem("food_sweet:lemon", { | 	minetest.register_craftitem("food_sweet:lemon", { | ||||||
| 		description = S("Lemon"), | 		description = S("Lemon"), | ||||||
| 		inventory_image = "food_lemon.png", | 		inventory_image = "food_lemon.png", | ||||||
| @@ -105,301 +103,326 @@ food.asupport("lemon",function() | |||||||
| 			{"","default:sand",""} | 			{"","default:sand",""} | ||||||
| 		} | 		} | ||||||
| 	}) | 	}) | ||||||
| end) | end, true) | ||||||
|  |  | ||||||
| -- Walnut and Coffee cake | -- Walnut and Coffee cake | ||||||
| food.register("food_sweet:cake_walnut_coffee",{ | food.module("cake_walnut_coffee", function() | ||||||
| 	description = S("Walnut and Coffee Cake"), | 	food.register("food_sweet:cake_walnut_coffee",{ | ||||||
| 	on_use = food.item_eat(4), | 		description = S("Walnut and Coffee Cake"), | ||||||
| 	groups={food=3,crumbly=3}, | 		on_use = food.item_eat(4), | ||||||
| 	walkable = false, | 		groups={food=3,crumbly=3}, | ||||||
| 	sunlight_propagates = true, | 		walkable = false, | ||||||
| 	inventory_image = "food_sweet_cake_walnut_coffee_2d.png", | 		sunlight_propagates = true, | ||||||
| 	tiles = { | 		inventory_image = "food_sweet_cake_walnut_coffee_2d.png", | ||||||
| 		"food_sweet_cake_walnut_coffee_3d_top.png", | 		tiles = { | ||||||
| 		"food_sweet_cake_walnut_coffee_3d_bottom.png", | 			"food_sweet_cake_walnut_coffee_3d_top.png", | ||||||
| 		"food_sweet_cake_walnut_coffee_3d.png", | 			"food_sweet_cake_walnut_coffee_3d_bottom.png", | ||||||
| 		"food_sweet_cake_walnut_coffee_3d.png", | 			"food_sweet_cake_walnut_coffee_3d.png", | ||||||
| 		"food_sweet_cake_walnut_coffee_3d.png", | 			"food_sweet_cake_walnut_coffee_3d.png", | ||||||
| 		"food_sweet_cake_walnut_coffee_3d.png" | 			"food_sweet_cake_walnut_coffee_3d.png", | ||||||
| 	}, | 			"food_sweet_cake_walnut_coffee_3d.png" | ||||||
| 	drawtype = "nodebox", | 		}, | ||||||
| 	paramtype = "light", | 		drawtype = "nodebox", | ||||||
| 	node_box = { | 		paramtype = "light", | ||||||
| 		type = "fixed", | 		node_box = { | ||||||
| 		fixed = { | 			type = "fixed", | ||||||
| 			{-0.5,-0.4375,-0.5,0.5,0,0.5}, --NodeBox1 | 			fixed = { | ||||||
| 			{-0.4375,-0.5,-0.4375,0.438462,-0.4375,0.426923}, --NodeBox2 | 				{-0.5,-0.4375,-0.5,0.5,0,0.5}, --NodeBox1 | ||||||
| 			{-0.4375,0,-0.4375,0.45,0.0625,0.426923}, --NodeBox3 | 				{-0.4375,-0.5,-0.4375,0.438462,-0.4375,0.426923}, --NodeBox2 | ||||||
| 			{-0.3125,0.0625,0.1875,-0.1875,0.1875,0.3125}, --NodeBox4 | 				{-0.4375,0,-0.4375,0.45,0.0625,0.426923}, --NodeBox3 | ||||||
| 			{0.1875,0.0625,-0.3125,0.3125,0.1875,-0.1875}, --NodeBox5 | 				{-0.3125,0.0625,0.1875,-0.1875,0.1875,0.3125}, --NodeBox4 | ||||||
|  | 				{0.1875,0.0625,-0.3125,0.3125,0.1875,-0.1875}, --NodeBox5 | ||||||
|  | 			} | ||||||
| 		} | 		} | ||||||
| 	} | 	},"sweet") | ||||||
| },"sweet") | 	minetest.register_craftitem("food_sweet:cakemix_walnut_coffee",{ | ||||||
| minetest.register_craftitem("food_sweet:cakemix_walnut_coffee",{ | 		description = S("Walnut and Coffee Cake Mix"), | ||||||
| 	description = S("Walnut and Coffee Cake Mix"), | 		inventory_image = "food_sweet_cakemix_walnut_coffee.png" | ||||||
| 	inventory_image = "food_sweet_cakemix_walnut_coffee.png" | 	}) | ||||||
| }) | 	food.craft({ | ||||||
| food.craft({ | 		type = "cooking", | ||||||
| 	type = "cooking", | 		output = "food_sweet:cake_walnut_coffee", | ||||||
| 	output = "food_sweet:cake_walnut_coffee", | 		recipe = "food_sweet:cakemix_walnut_coffee", | ||||||
| 	recipe = "food_sweet:cakemix_walnut_coffee", | 		cooktime = 10 | ||||||
| 	cooktime = 10 | 	}) | ||||||
| }) | 	food.craft({ | ||||||
| food.craft({ | 		output = "food_sweet:cakemix_walnut_coffee", | ||||||
| 	output = "food_sweet:cakemix_walnut_coffee", | 		recipe = { | ||||||
| 	recipe = { | 			{"","group:food_walnut",""}, | ||||||
| 		{"","group:food_walnut",""}, | 			{"group:food_flour","group:food_sugar","group:food_egg"} | ||||||
| 		{"group:food_flour","group:food_sugar","group:food_egg"} | 		} | ||||||
| 	} | 	}) | ||||||
| }) | end) | ||||||
|  |  | ||||||
| -- Strawberry Cheese cake | -- Strawberry Cheese cake | ||||||
| minetest.register_alias("food:cake_cheese", "food_sweet:cake_cheese") | food.module("cake_cheese", function() | ||||||
| minetest.register_alias("food:cakemix_cheese", "food_sweet:cakemix_cheese") | 	minetest.register_alias("food:cake_cheese", "food_sweet:cake_cheese") | ||||||
| minetest.register_craftitem("food_sweet:cake_cheese",{ | 	minetest.register_alias("food:cakemix_cheese", "food_sweet:cakemix_cheese") | ||||||
| 	description = S("Strawberry Cheese Cake"), | 	minetest.register_craftitem("food_sweet:cake_cheese",{ | ||||||
| 	inventory_image = "food_sweet_cake_cheese.png", | 		description = S("Strawberry Cheese Cake"), | ||||||
| 	on_use = food.item_eat(4), | 		inventory_image = "food_sweet_cake_cheese.png", | ||||||
| 	groups={food=3} | 		on_use = food.item_eat(4), | ||||||
| }) | 		groups={food=3} | ||||||
| minetest.register_craftitem("food_sweet:cakemix_cheese",{ | 	}) | ||||||
| 	description = S("Strawberry Cheese Cake Mix"), | 	minetest.register_craftitem("food_sweet:cakemix_cheese",{ | ||||||
| 	inventory_image = "food_sweet_cakemix_cheese.png" | 		description = S("Strawberry Cheese Cake Mix"), | ||||||
| }) | 		inventory_image = "food_sweet_cakemix_cheese.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:cake_cheese", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:cakemix_cheese", | 		output = "food_sweet:cake_cheese", | ||||||
| 	cooktime = 10 | 		recipe = "food_sweet:cakemix_cheese", | ||||||
| }) | 		cooktime = 10 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:cakemix_cheese", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:cakemix_cheese", | ||||||
| 		{"group:food_cheese","group:food_strawberry",""}, | 		recipe = { | ||||||
| 		{"group:food_flour","group:food_sugar","group:food_egg"} | 			{"group:food_cheese","group:food_strawberry",""}, | ||||||
| 	} | 			{"group:food_flour","group:food_sugar","group:food_egg"} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Blueberry Cheese Cake | -- Blueberry Cheese Cake | ||||||
| minetest.register_craftitem("food_sweet:cake_cheese_blueberry",{ | food.module("cake_cheese_blueberry", function() | ||||||
| 	description = S("Blueberry Cheese Cake"), | 	minetest.register_craftitem("food_sweet:cake_cheese_blueberry",{ | ||||||
| 	inventory_image = "food_sweet_cake_cheese_blueberry.png", | 		description = S("Blueberry Cheese Cake"), | ||||||
| 	on_use = food.item_eat(4), | 		inventory_image = "food_sweet_cake_cheese_blueberry.png", | ||||||
| 	groups={food=3} | 		on_use = food.item_eat(4), | ||||||
| }) | 		groups={food=3} | ||||||
| minetest.register_craftitem("food_sweet:cakemix_cheese_blueberry",{ | 	}) | ||||||
| 	description = S("Blueberry Cheese Cake Mix"), | 	minetest.register_craftitem("food_sweet:cakemix_cheese_blueberry",{ | ||||||
| 	inventory_image = "food_sweet_cakemix_cheese_blueberry.png" | 		description = S("Blueberry Cheese Cake Mix"), | ||||||
| }) | 		inventory_image = "food_sweet_cakemix_cheese_blueberry.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:cake_cheese_blueberry", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:cakemix_cheese_blueberry", | 		output = "food_sweet:cake_cheese_blueberry", | ||||||
| 	cooktime = 10 | 		recipe = "food_sweet:cakemix_cheese_blueberry", | ||||||
| }) | 		cooktime = 10 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:cakemix_cheese", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:cakemix_cheese", | ||||||
| 		{"group:food_cheese","group:food_blueberry",""}, | 		recipe = { | ||||||
| 		{"group:food_flour","group:food_sugar","group:food_egg"} | 			{"group:food_cheese","group:food_blueberry",""}, | ||||||
| 	} | 			{"group:food_flour","group:food_sugar","group:food_egg"} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Triple chocolate cake | -- Triple chocolate cake | ||||||
| minetest.register_craftitem("food_sweet:cake_triple_choco",{ | food.module("cake_triple_choco", function() | ||||||
| 	description = S("Triple Chocolate Cake"), | 	minetest.register_craftitem("food_sweet:cake_triple_choco",{ | ||||||
| 	inventory_image = "food_sweet_cake_triple_choco.png", | 		description = S("Triple Chocolate Cake"), | ||||||
| 	on_use = food.item_eat(4), | 		inventory_image = "food_sweet_cake_triple_choco.png", | ||||||
| 	groups={food=3} | 		on_use = food.item_eat(4), | ||||||
| }) | 		groups={food=3} | ||||||
| minetest.register_craftitem("food_sweet:cakemix_triple_choco",{ | 	}) | ||||||
| 	description = S("Triple Chocolate Cake Mix"), | 	minetest.register_craftitem("food_sweet:cakemix_triple_choco",{ | ||||||
| 	inventory_image = "food_sweet_cakemix_triple_choco.png" | 		description = S("Triple Chocolate Cake Mix"), | ||||||
| }) | 		inventory_image = "food_sweet_cakemix_triple_choco.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:cake_triple_choco", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:cakemix_triple_choco", | 		output = "food_sweet:cake_triple_choco", | ||||||
| 	cooktime = 10 | 		recipe = "food_sweet:cakemix_triple_choco", | ||||||
| }) | 		cooktime = 10 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:cakemix_triple_choco", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:cakemix_triple_choco", | ||||||
| 		{"group:food_milk_chocolate","group:food_milk_chocolate","group:food_milk_chocolate"}, | 		recipe = { | ||||||
| 		{"group:food_flour","group:food_sugar","group:food_egg"} | 			{"group:food_milk_chocolate","group:food_milk_chocolate","group:food_milk_chocolate"}, | ||||||
| 	} | 			{"group:food_flour","group:food_sugar","group:food_egg"} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Wedding Cake | -- Wedding Cake | ||||||
| minetest.register_craftitem("food_sweet:cake_wedding",{ | food.module("cake_wedding", function() | ||||||
| 	description = S("Wedding Cake"), | 	minetest.register_craftitem("food_sweet:cake_wedding",{ | ||||||
| 	inventory_image = "food_sweet_cake_wedding.png", | 		description = S("Wedding Cake"), | ||||||
| 	on_use = food.item_eat(4), | 		inventory_image = "food_sweet_cake_wedding.png", | ||||||
| 	groups={food=3} | 		on_use = food.item_eat(4), | ||||||
| }) | 		groups={food=3} | ||||||
|  | 	}) | ||||||
|  |  | ||||||
| food.craft({ | 	food.craft({ | ||||||
| 	output = "food_sweet:cake_wedding", | 		output = "food_sweet:cake_wedding", | ||||||
| 	recipe = { | 		recipe = { | ||||||
| 		{"food:cake"}, | 			{"food:cake"}, | ||||||
| 		{"food:cake"}, | 			{"food:cake"}, | ||||||
| 		{"food:cake"} | 			{"food:cake"} | ||||||
| 	} | 		} | ||||||
| }) | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Rhubarb Crumble | -- Rhubarb Crumble | ||||||
| minetest.register_craftitem("food_sweet:crumble_rhubarb",{ | food.module("crumble_rhubarb", function() | ||||||
| 	description = S("Rhubarb Crumble"), | 	minetest.register_craftitem("food_sweet:crumble_rhubarb",{ | ||||||
| 	inventory_image = "food_sweet_crumble_rhubarb.png", | 		description = S("Rhubarb Crumble"), | ||||||
| 	on_use = food.item_eat(4), | 		inventory_image = "food_sweet_crumble_rhubarb.png", | ||||||
| 	groups={food=3} | 		on_use = food.item_eat(4), | ||||||
| }) | 		groups={food=3} | ||||||
| minetest.register_craftitem("food_sweet:crumble_rhubarb_raw",{ | 	}) | ||||||
| 	description = S("Raw Rhubarb Crumble"), | 	minetest.register_craftitem("food_sweet:crumble_rhubarb_raw",{ | ||||||
| 	inventory_image = "food_sweet_crumble_rhubarb_raw.png" | 		description = S("Raw Rhubarb Crumble"), | ||||||
| }) | 		inventory_image = "food_sweet_crumble_rhubarb_raw.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:crumble_rhubarb", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:crumble_rhubarb_raw", | 		output = "food_sweet:crumble_rhubarb", | ||||||
| 	cooktime = 10 | 		recipe = "food_sweet:crumble_rhubarb_raw", | ||||||
| }) | 		cooktime = 10 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:crumble_rhubarb_raw", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:crumble_rhubarb_raw", | ||||||
| 		{"","group:food_rhubarb",""}, | 		recipe = { | ||||||
| 		{"group:food_flour","group:food_sugar","group:food_egg"} | 			{"","group:food_rhubarb",""}, | ||||||
| 	} | 			{"group:food_flour","group:food_sugar","group:food_egg"} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Cup cake | -- Cup cake | ||||||
| minetest.register_craftitem("food_sweet:cupcake",{ | food.module("cupcake", function() | ||||||
| 	description = S("Cupcake"), | 	minetest.register_craftitem("food_sweet:cupcake",{ | ||||||
| 	inventory_image = "food_sweet_cupcake.png", | 		description = S("Cupcake"), | ||||||
| 	on_use = food.item_eat(2), | 		inventory_image = "food_sweet_cupcake.png", | ||||||
| 	groups={food=1} | 		on_use = food.item_eat(2), | ||||||
| }) | 		groups={food=1} | ||||||
| minetest.register_craftitem("food_sweet:cupcake_mix",{ | 	}) | ||||||
| 	description = S("Cupcake Mix"), | 	minetest.register_craftitem("food_sweet:cupcake_mix",{ | ||||||
| 	inventory_image = "food_sweet_cupcake_mix.png" | 		description = S("Cupcake Mix"), | ||||||
| }) | 		inventory_image = "food_sweet_cupcake_mix.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:cupcake", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:cupcake_mix", | 		output = "food_sweet:cupcake", | ||||||
| 	cooktime = 1 | 		recipe = "food_sweet:cupcake_mix", | ||||||
| }) | 		cooktime = 1 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:cupcake_mix 6", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:cupcake_mix 6", | ||||||
| 		{"group:food_flour","","group:food_egg"}, | 		recipe = { | ||||||
| 		{"","group:food_sugar",""} | 			{"group:food_flour","","group:food_egg"}, | ||||||
| 	} | 			{"","group:food_sugar",""} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Chocolate Cupcake | -- Chocolate Cupcake | ||||||
| minetest.register_craftitem("food_sweet:cupcake_choco",{ | food.module("cupcake_choco", function() | ||||||
| 	description = S("Chocolate Cupcake"), | 	minetest.register_craftitem("food_sweet:cupcake_choco",{ | ||||||
| 	inventory_image = "food_sweet_cupcake_choco.png", | 		description = S("Chocolate Cupcake"), | ||||||
| 	on_use = food.item_eat(2), | 		inventory_image = "food_sweet_cupcake_choco.png", | ||||||
| 	groups={food=1} | 		on_use = food.item_eat(2), | ||||||
| }) | 		groups={food=1} | ||||||
| minetest.register_craftitem("food_sweet:cupcake_choco_mix",{ | 	}) | ||||||
| 	description = S("Chocolate Cupcake Mix"), | 	minetest.register_craftitem("food_sweet:cupcake_choco_mix",{ | ||||||
| 	inventory_image = "food_sweet_cupcake_choco_mix.png" | 		description = S("Chocolate Cupcake Mix"), | ||||||
| }) | 		inventory_image = "food_sweet_cupcake_choco_mix.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:cupcake_choco", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:cupcake_choco_mix", | 		output = "food_sweet:cupcake_choco", | ||||||
| 	cooktime = 1 | 		recipe = "food_sweet:cupcake_choco_mix", | ||||||
| }) | 		cooktime = 1 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:cupcake_choco_mix 6", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:cupcake_choco_mix 6", | ||||||
| 		{"group:food_flour","group:food_milk_chocolate","group:food_egg"}, | 		recipe = { | ||||||
| 		{"","group:food_sugar",""} | 			{"group:food_flour","group:food_milk_chocolate","group:food_egg"}, | ||||||
| 	} | 			{"","group:food_sugar",""} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Fairy Cake | -- Fairy Cake | ||||||
| minetest.register_craftitem("food_sweet:cupcake_fairy",{ | food.module("cupcake_fairy", function() | ||||||
| 	description = S("Fairy Cake"), | 	minetest.register_craftitem("food_sweet:cupcake_fairy",{ | ||||||
| 	inventory_image = "food_sweet_cupcake_fairy.png", | 		description = S("Fairy Cake"), | ||||||
| 	on_use = food.item_eat(2), | 		inventory_image = "food_sweet_cupcake_fairy.png", | ||||||
| 	groups={food=1} | 		on_use = food.item_eat(2), | ||||||
| }) | 		groups={food=1} | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:cupcake_fairy", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:cupcake_fairy", | ||||||
| 		{"group:food_sugar"}, | 		recipe = { | ||||||
| 		{"food_sweet:cupcake"} | 			{"group:food_sugar"}, | ||||||
| 	} | 			{"food_sweet:cupcake"} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Lemon Cake | -- Lemon Cake | ||||||
| minetest.register_craftitem("food_sweet:cupcake_lemon",{ | food.module("cupcake_lemon", function() | ||||||
| 	description = S("Lemon Drizzle Cupcake"), | 	minetest.register_craftitem("food_sweet:cupcake_lemon",{ | ||||||
| 	inventory_image = "food_sweet_cupcake_lemon.png", | 		description = S("Lemon Drizzle Cupcake"), | ||||||
| 	on_use = food.item_eat(2), | 		inventory_image = "food_sweet_cupcake_lemon.png", | ||||||
| 	groups={food=1} | 		on_use = food.item_eat(2), | ||||||
| }) | 		groups={food=1} | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:cupcake_lemon", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:cupcake_lemon", | ||||||
| 		{"group:food_lemon"}, | 		recipe = { | ||||||
| 		{"food_sweet:cupcake"} | 			{"group:food_lemon"}, | ||||||
| 	} | 			{"food_sweet:cupcake"} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Blueberry Muffin | -- Blueberry Muffin | ||||||
| minetest.register_craftitem("food_sweet:muffin_blueberry",{ | food.module("muffin_blueberry", function() | ||||||
| 	description = S("Blueberry Muffin"), | 	minetest.register_craftitem("food_sweet:muffin_blueberry",{ | ||||||
| 	inventory_image = "food_sweet_muffin_blueberry.png", | 		description = S("Blueberry Muffin"), | ||||||
| 	on_use = food.item_eat(2), | 		inventory_image = "food_sweet_muffin_blueberry.png", | ||||||
| 	groups={food=1} | 		on_use = food.item_eat(2), | ||||||
| }) | 		groups={food=1} | ||||||
| minetest.register_craftitem("food_sweet:muffin_blueberry_mix",{ | 	}) | ||||||
| 	description = S("Blueberry Muffin Mix"), | 	minetest.register_craftitem("food_sweet:muffin_blueberry_mix",{ | ||||||
| 	inventory_image = "food_sweet_cupcake_mix.png" | 		description = S("Blueberry Muffin Mix"), | ||||||
| }) | 		inventory_image = "food_sweet_cupcake_mix.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:muffin_blueberry", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:muffin_blueberry_mix", | 		output = "food_sweet:muffin_blueberry", | ||||||
| 	cooktime = 1 | 		recipe = "food_sweet:muffin_blueberry_mix", | ||||||
| }) | 		cooktime = 1 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:muffin_blueberry_mix 6", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:muffin_blueberry_mix 6", | ||||||
| 		{"group:food_flour","group:food_blueberry","group:food_egg"}, | 		recipe = { | ||||||
| 		{"","group:food_sugar",""} | 			{"group:food_flour","group:food_blueberry","group:food_egg"}, | ||||||
| 	} | 			{"","group:food_sugar",""} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
| -- Chocolate Chip Muffin | -- Chocolate Chip Muffin | ||||||
| minetest.register_craftitem("food_sweet:muffin_choco",{ | food.module("muffin_choco", function() | ||||||
| 	description = S("Chocolate Chip Muffin"), | 	minetest.register_craftitem("food_sweet:muffin_choco",{ | ||||||
| 	inventory_image = "food_sweet_muffin_choco.png", | 		description = S("Chocolate Chip Muffin"), | ||||||
| 	on_use = food.item_eat(2), | 		inventory_image = "food_sweet_muffin_choco.png", | ||||||
| 	groups={food=1} | 		on_use = food.item_eat(2), | ||||||
| }) | 		groups={food=1} | ||||||
| minetest.register_craftitem("food_sweet:muffin_choco_mix",{ | 	}) | ||||||
| 	description = S("Chocolate Chip Muffin Mix"), | 	minetest.register_craftitem("food_sweet:muffin_choco_mix",{ | ||||||
| 	inventory_image = "food_sweet_cupcake_choco_mix.png" | 		description = S("Chocolate Chip Muffin Mix"), | ||||||
| }) | 		inventory_image = "food_sweet_cupcake_choco_mix.png" | ||||||
| food.craft({ | 	}) | ||||||
| 	type = "cooking", | 	food.craft({ | ||||||
| 	output = "food_sweet:muffin_choco", | 		type = "cooking", | ||||||
| 	recipe = "food_sweet:muffin_choco_mix", | 		output = "food_sweet:muffin_choco", | ||||||
| 	cooktime = 1 | 		recipe = "food_sweet:muffin_choco_mix", | ||||||
| }) | 		cooktime = 1 | ||||||
| food.craft({ | 	}) | ||||||
| 	output = "food_sweet:muffin_choco_mix 6", | 	food.craft({ | ||||||
| 	recipe = { | 		output = "food_sweet:muffin_choco_mix 6", | ||||||
| 		{"","group:food_milk_chocolate",""}, | 		recipe = { | ||||||
| 		{"group:food_flour","group:food_milk_chocolate","group:food_egg"}, | 			{"","group:food_milk_chocolate",""}, | ||||||
| 		{"","group:food_sugar",""} | 			{"group:food_flour","group:food_milk_chocolate","group:food_egg"}, | ||||||
| 	} | 			{"","group:food_sugar",""} | ||||||
| }) | 		} | ||||||
|  | 	}) | ||||||
|  | end) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user