-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
73 lines (62 loc) · 1.73 KB
/
init.lua
File metadata and controls
73 lines (62 loc) · 1.73 KB
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
-- More Cupcakes
-- cupcake texture by TacoBella
-- sugar texture by TenPlus?
local cupcake = {}
cupcake.colours = {
{"black", "Black"},
{"blue", "Blue"},
{"brown", "Brown"},
{"cyan", "Cyan"},
{"dark_green", "Dark Green"},
{"green", "Green"},
{"magenta", "Magenta"},
{"orange", "Orange"},
{"pink", "Pink"},
{"red", "Red"},
{"violet", "Violet"},
{"white", "White"},
{"yellow", "Yellow"},
}
for _, row in ipairs(cupcake.colours) do
local name = row[1]
local desc = row[2]
minetest.register_craftitem("more_cupcakes:"..name.."_cupcake", {
description = desc.." Cupcake",
inventory_image = "morecupcakes_"..name.."_cupcake.png",
on_use = minetest.item_eat(6),
})
minetest.register_craft({
output = "more_cupcakes:"..name.."_cupcake",
recipe = {
{"", "dye:"..name, ""},
{ "farming:flour", "farming:sugar", "mobs:bucket_milk" },
{"default:paper", "default:paper","default:paper"},
}
})
end
minetest.register_craftitem("more_cupcakes:cupcake_bow", {
description = "Cupcake with a bow",
inventory_image = "morecupcakes_cupcake4.png",
on_use = minetest.item_eat(6),
})
minetest.register_craft( {
output = "more_cupcakes:cupcake_bow",
recipe = {
{"", "farming:sugar", ""},
{ "farming:sugar", "dye:blue", "farming:sugar" },
{"", "farming:flour",""},
}
})
if farming.mod ~= "redo" then -- If we don't have TenPlus1's farming redo version, register sugar. We need it!
--= Sugar (from TenPlus1's farming redo mod)
minetest.register_craftitem(":farming:sugar", {
description = "Sugar",
inventory_image = "farming_sugar.png",
})
minetest.register_craft({
type = "cooking",
cooktime = 3,
output = "farming:sugar 2",
recipe = "default:papyrus",
})
end