-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.lua
75 lines (62 loc) · 1.92 KB
/
init.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
66
67
68
69
70
71
72
73
74
75
jpizza = {}
jpizza.toppings = {}
jpizza.op_depends = {"hunger_ng", "hbhunger", "pineapple", "mobs", "creatures", "fire", "stairs", "dungeon_loot", "farming"}
jpizza.has_depends = {}
for _, i in pairs(jpizza.op_depends) do
if minetest.get_modpath(i) then
jpizza.has_depends[i] = true
else
jpizza.has_depends[i] = false
end
end
jpizza.path = minetest.get_modpath("jelys_pizzaria")
dofile(jpizza.path.."/functions.lua")
dofile(jpizza.path.."/nodes.lua")--nodes
dofile(jpizza.path.."/oven.lua")
dofile(jpizza.path.."/items.lua")
jpizza.register_topping({
item = "jelys_pizzaria:olives",
name = "olives",
topping_inv = {
"jelys_pizzaria_topping_olives_inv_1.png",
"jelys_pizzaria_topping_olives_inv_2.png"
},
texture = "jelys_pizzaria_topping_olives.png",
cooked_texture = "jelys_pizzaria_topping_olives_cooked.png",
eat = 2,
})
jpizza.register_topping({
item = "jelys_pizzaria:pepperoni_cured",
name = "pepperoni",
topping_inv = {
"jelys_pizzaria_topping_pepperoni_inv_1.png",
"jelys_pizzaria_topping_pepperoni_inv_2.png"
},
texture = "jelys_pizzaria_topping_pepperoni.png",
cooked_texture = "jelys_pizzaria_topping_pepperoni_cooked.png",
eat = 4,
})
jpizza.register_topping({
item = "jelys_pizzaria:sausage",
name = "sausage",
topping_inv = {
"jelys_pizzaria_topping_sausage_inv_1.png",
"jelys_pizzaria_topping_sausage_inv_2.png"
},
texture = "jelys_pizzaria_topping_sausage.png",
cooked_texture = "jelys_pizzaria_topping_sausage_cooked.png",
eat = 4,
})
jpizza.register_topping({
item = "flowers:mushroom_brown",
name = "mushrooms",
topping_inv = {
"jelys_pizzaria_topping_mushroom_inv_1.png",
"jelys_pizzaria_topping_mushroom_inv_2.png",
},
texture = "jelys_pizzaria_topping_mushrooms.png",
cooked_texture = "jelys_pizzaria_topping_mushrooms_cooked.png",
eat = 1,
})
dofile(jpizza.path.."/mutation_backup.lua")
jpizza.make_pizzas()