-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsea_strawberry_recipes.lua
executable file
·47 lines (42 loc) · 2.14 KB
/
sea_strawberry_recipes.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
local S = aqua_farming.S
local name = "aqua_farming:sea_strawberry"
local desc = S("Sea Strawberry")
minetest.register_craftitem(name .. "_cake", {
description = desc .. " " .. S("Cake"),
groups = {food = 1, food_vegan = 1, food_sweet = 1},
inventory_image = "aqua_farming_" .. name:split(":")[2] .. "_cake.png",
})
minetest.register_craftitem(name .. "_cake_piece", {
description = desc .. " " .. S("Cake") .. " " .. S("Piece"),
groups = {food = 1, food_vegan = 1, food_sweet = 1},
inventory_image = "aqua_farming_" .. name:split(":")[2] .. "_cake_piece.png",
on_use = minetest.item_eat(3)
})
minetest.register_craft({
output = name .. "_cake",
recipe = {
{name .. "_item", name .. "_item", name .. "_item"},
{"group:food_flour", "dye:pink", "group:food_flour"},
{"", "bucket:bucket_water", ""},
},
replacements = {
{"bucket:bucket_water", "bucket:bucket_empty"},
},
})
minetest.register_craft({
output = name .. "_cake",
recipe = {
{name .. "_item", name .. "_item", name .. "_item"},
{"group:food_flour", "dye:pink", "group:food_flour"},
{"", "bucket:bucket_river_water", ""},
},
replacements = {
{"bucket:bucket_river_water", "bucket:bucket_empty"},
},
})
minetest.register_craft({
output = name .. "_cake_piece 8",
recipe = {
{name .. "_cake"},
},
})