summaryrefslogtreecommitdiff
path: root/dairy.lua
blob: 68c02dbd1baa2ef6b9d6454e5db255ef371ebb3d (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
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/diary.lua
-- adds diary products
-- ======================================
-- [regis-food] Cheese
-- [craft] Cheese
-- [regis-item] Butter
-- [craft] Butter
-- ======================================

minetest.register_craftitem("food:butter", {
	description = "Butter",
	inventory_image = "food_butter.png",
})

minetest.register_craftitem("food:cheese", {
	description = "Cheese",
	inventory_image = "food_cheese.png",
	on_use = minetest.item_eat(4),
})


minetest.register_craft({
	output = '"food:butter" 1',
	recipe = {
	         {'"food:milk"','"food:milk"'},
	}
})

minetest.register_craft({
	output = '"food:cheese" 1',
	recipe = {
	         {'"food:butter"','"food:butter"'},
	}
})


--
--
-- CHOCOLATE
--
--


minetest.register_craftitem("food:chocolate_dark", {
	description = "Dark Chocolate",
	inventory_image = "food_choco_dark.png",
	on_use = minetest.item_eat(2),
})

minetest.register_craftitem("food:chocolate_milk", {
	description = "Milk Chocolate",
	inventory_image = "food_choco_milk.png",
	on_use = minetest.item_eat(3),
})

minetest.register_craftitem("food:chocolate_powder", {
	description = "Chocolate Powder",
	inventory_image = "food_choco_powder.png",
})

minetest.register_craft({
	output = '"food:chocolate_dark" 1',
	recipe = {
	         {'"food:cocoa"','"food:cocoa"','"food:cocoa"'},
	}
})

minetest.register_craft({
	output = '"food:chocolate_powder" 1',
	recipe = {
                 {"food:cocoa","food:cocoa","food:cocoa"},
	         {"food:cocoa","food:cocoa","food:cocoa"},
	         {"food:cocoa","food:cocoa","food:cocoa"},
	}
})

minetest.register_craft({
	output = '"food:chocolate_milk" 1',
	recipe = {
	         {"","food:milk",""},
	         {"food:cocoa","food:cocoa","food:cocoa"},
	}
})

minetest.register_craft({
	output = '"food:chocolate_milk" 1',
	recipe = {
	         {"","food:milk","food:chocolate_dark"},
	}
})