forked from acmgit/cucina_vegana
-
Notifications
You must be signed in to change notification settings - Fork 1
/
recipes_5xx.lua
65 lines (53 loc) · 2.71 KB
/
recipes_5xx.lua
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
-- *******************************************
-- ** Support for 5.0 **
-- *******************************************
local modname = minetest.get_current_modname()
local nodes = { { name = "default:sand_with_kelp", -- Name
output = "cucina_vegana:vegan_sushi", -- Output
recipe = { -- Recipe
{"cucina_vegana:imitation_fish", "cucina_vegana:bowl_rice", ""},
{"default:sand_with_kelp", "", ""}
},
repclaements = nil -- Replacements
-- replacements = {{"cucina_vegana:molasses", "vessels:drinking_glass"}}
},
}
for node, value in ipairs(nodes) do
--print("[MT 5.x.x] Found " .. value.name .. " to register.")
if(minetest.registered_nodes[value.name] or minetest.registered_items[value.name]) then
minetest.register_craft({
output = value.output,
recipe = value.recipe,
replacements = value.replacements
})
minetest.log("info", "[MOD] " .. modname .. " Added a 5.x.x-Recipe with " .. value.name .. "\".")
--print("[MT 5.x.x] " .. value.output .. " Recipe with " .. value.name .. " registered.")
end -- if(minetest.registered_nodes
end -- for node
local berries = {
"default:blueberries",
"farming:blueberries",
"bushes:blueberry"
}
local press = {
"default:stone",
"default:cobble",
"default:desert_stone",
"default:desert_cobble"
}
for bkey,berry in ipairs(berries) do
for mkey,mat in ipairs(press) do
minetest.log("info", "[MOD] " .. modname .. " Registering Berry: " .. berry .. " with " .. mat .. ".")
minetest.register_craft({
output = "cucina_vegana:blueberry_puree",
recipe = {
{mat, berry, berry},
{mat, berry, berry},
{mat, berry, berry},
},
replacements = {
{mat, mat .. " 3"}
}
}) -- minetest.register_craft
end -- for mkey, mat
end -- for bkey, berry