summaryrefslogtreecommitdiff
path: root/snacks/cakes.lua
blob: 4b517dc5487693b1c766b1cc454c9bccd107fe50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/snacks/cakes.lua
-- adds cakes
-- =====================================
-- [regis-food] Plain Cake
-- [craft] Plain Cake
-- [regis-food] Chocolate Cake
-- [craft] Chocolate Cake
-- [regis-food] Carrot Cake
-- [craft] Chocolate Cake
-- =====================================
print("RubenFood [Master] - Loading Cakes")

--------------------------Cakes-------------------------
minetest.register_craftitem("food:cakemix_plain",{
	description = "Cake Mix",
	inventory_image = "food_pastry.png",
})

minetest.register_craftitem("food:cakemix_choco",{
	description = "Chocolate Cake Mix",
	inventory_image = "food_pastry_choco.png",
})

minetest.register_craftitem("food:cakemix_carrot",{
	description = "Carrot Cake Mix",
	inventory_image = "food_pastry_carrot.png",
})

minetest.register_craft({
	type = "cooking",
	output = "food:cake",
	recipe = "food:cakemix_plain",
	cooktime = 10,
})

minetest.register_craft({
	type = "cooking",
	output = "food:cake_chocolate",
	recipe = "food:cakemix_choco",
	cooktime = 10,
})

minetest.register_craft({
	type = "cooking",
	output = "food:cake_carrot",
	recipe = "food:cakemix_carrot",
	cooktime = 10,
})

minetest.register_craftitem("food:cake", {
	description = "Cake",
	inventory_image = "food_cake.png",
	on_use = minetest.item_eat(30),
	groups={food=3},
})

minetest.register_craftitem("food:cake_chocolate", {
	description = "Chocolate Cake",
	inventory_image = "food_cake_choco.png",
	on_use = minetest.item_eat(40),
	groups={food=3},
})

minetest.register_craftitem("food:cake_carrot", {
	description = "Carrot Cake",
	inventory_image = "food_cake_carrot.png",
	on_use = minetest.item_eat(40),
	groups={food=3},
})






----------------------------- Cake Pastry ----------------------------

minetest.register_craft({
	output = '"food:cakemix_plain" 1',
	recipe = {
		{'"food:flour"','"food:sugar"','"food:egg"'},
	}
})

minetest.register_craft({
	output = '"food:cakemix_choco" 1',
	recipe = {
	{'""','"default:dirt"','""'},	{'"food:flour"','"food:sugar"','"food:egg"'},
	}
})

minetest.register_craft({
	output = '"food:cakemix_carrot" 1',
	recipe = {
	{'""','"food:carrot"','""'},	{'"food:flour"','"food:sugar"','"food:egg"'},
	}
})