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
|
--[[
Copyright (C) 2015 - Auke Kok <sofar@foo-projects.org>
"crops" is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1
of the license, or (at your option) any later version.
--]]
--
-- cooking recipes that don't go directly with any of the
-- crops in this mod - either these combine them in new
-- ways or use other items
--
-- Intllib
local S = crops.intllib
minetest.register_craftitem("crops:unbaked_clay_bowl", {
description = S("Unbaked clay bowl"),
inventory_image = "crops_unbaked_clay_bowl.png",
})
minetest.register_craft({
output = "crops:unbaked_clay_bowl",
recipe = {
{ "", "", "" },
{ "default:clay_lump", "", "default:clay_lump" },
{ "", "default:clay_lump", "" }
}
})
minetest.register_craftitem("crops:clay_bowl", {
description = S("Clay bowl"),
inventory_image = "crops_clay_bowl.png",
groups = { food_bowl=1 }
})
minetest.register_craft({
type = "cooking",
output = "crops:clay_bowl",
recipe = "crops:unbaked_clay_bowl"
})
minetest.register_craftitem("crops:vegetable_stew", {
description = S("Bowl of vegetable stew"),
inventory_image = "crops_bowl_vegetable_stew.png",
groups = { eatable=1 },
on_use = minetest.item_eat(8, "crops:clay_bowl"),
})
minetest.register_craft({
type = "cooking",
output = "crops:vegetable_stew",
recipe = "crops:uncooked_vegetable_stew"
})
minetest.register_craftitem("crops:uncooked_vegetable_stew", {
description = S("Bowl of uncooked vegetable stew"),
inventory_image = "crops_bowl_uncooked_vegetable_stew.png",
groups = { eatable=1 },
on_use = minetest.item_eat(2, "crops:clay_bowl")
})
minetest.register_craft({
output = "crops:uncooked_vegetable_stew",
recipe = {
{ "", "", "" },
{ "crops:green_bean", "crops:potato", "crops:tomato" },
{ "", "group:food_bowl", "" }
}
})
|