-
Notifications
You must be signed in to change notification settings - Fork 3
/
mutation_backup.lua
160 lines (147 loc) · 4.41 KB
/
mutation_backup.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
local mutagen = "jelys_pizzaria:mese_mutator"
minetest.register_craftitem("jelys_pizzaria:mese_mutator", {
description = "Mese Mutation Crystals",
inventory_image = "jelys_pizzaria_mese_mutation_crystal.png",
})
local f = "default:mese_crystal_fragment"
local m = "default:mese_crystal"
minetest.register_craft({
output = "jelys_pizzaria:mese_mutator 4",
recipe = {
{"", f, ""},
{f, m, f},
}
})
local tomato = "jelys_pizzaria:tomato"
if farming and farming.mod == "redo" then
tomato = "farming:tomato"
else
minetest.register_craftitem("jelys_pizzaria:tomato", {
description = "Tomato",
inventory_image = "jelys_pizzaria_tomato.png",
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:tomato",
recipe = {"default:apple", mutagen},
})
end
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:sauce",
recipe = {tomato, "vessels:glass_bottle"},
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:olives",
recipe = {"default:blueberries", mutagen},
})
minetest.register_craftitem("jelys_pizzaria:cheese", {
description = "Cheese",
inventory_image = "jelys_pizzaria_cheese.png",
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:cheese 2",
recipe = {"default:gold_ingot", mutagen},
})
minetest.register_craftitem("jelys_pizzaria:olives", {
description = "Olives",
inventory_image = "jelys_pizzaria_olives.png",
})
minetest.register_craftitem("jelys_pizzaria:olives", {
description = "Olives",
inventory_image = "jelys_pizzaria_olives.png",
})
minetest.register_craftitem("jelys_pizzaria:sausage_raw", {
description = "Raw Sausage",
inventory_image = "jelys_pizzaria_sausage_raw.png",
})
minetest.register_craft({
type = "cooking",
output = "jelys_pizzaria:sausage",
recipe = "jelys_pizzaria:sausage_raw",
cooktime = 20,
})
minetest.register_craftitem("jelys_pizzaria:sausage", {
description = "Sausage",
inventory_image = "jelys_pizzaria_sausage.png",
})
minetest.register_craftitem("jelys_pizzaria:sauce", {
description = "Tomato Sauce",
inventory_image = "jelys_pizzaria_sauce.png",
})
local meat = "jelys_pizzaria:meat"
if jpizza.has_depends.mobs then
meat = "mobs:meat_raw"
elseif jpizza.has_depends.creatures then
meat = "creatures:flesh"
else
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:meat 9",
recipe = {mutagen, mutagen, mutagen, mutagen, "bones:bones", mutagen, mutagen, mutagen, mutagen},
})
minetest.register_craftitem("jelys_pizzaria:meat", {
description = "Meat",
inventory_image = "jelys_pizzaria_meat.png",
})
end
minetest.register_craft({
output = "jelys_pizzaria:pepperoni_uncured",
recipe = {
{meat},
{meat},
{meat}
},
})
minetest.register_craft({
output = "jelys_pizzaria:sausage_raw",
recipe = {
{meat,meat,meat},
},
})
local pineapple = "jelys_pizzaria:pineapple"
if jpizza.has_depends.pineapple then
minetest.register_alias("pineapple:pineapple", "jelys_pizzaria:pineapple")
pineapple = "pineapple:pineapple"
end
if farming and farming.mod == "redo" then
minetest.register_alias("farming:pineapple_ring", "jelys_pizzaria:pineapple")
pineapple = "farming:pineapple_ring"
end
if not jpizza.has_depends.pineapple and (not farming or farming and not farming.mod) then
minetest.register_node("jelys_pizzaria:pineapple", {
description = "Pineapple",
drawtype = "plantlike",
tiles = {"jelys_pizzaria_pineapple.png"},
inventory_image = "jelys_pizzaria_pineapple_inv.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
selection_box = {
type = "fixed",
fixed = {-3 / 16, -7 / 16, -3 / 16, 3 / 16, 4 / 16, 3 / 16}
},
groups = {fleshy = 3, dig_immediate = 3, flammable = 2},
on_use = minetest.item_eat(2),
sounds = default.node_sound_leaves_defaults(),
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:pineapple",
recipe = {"default:pine_needles","default:pine_needles","default:apple", mutagen, mutagen},
})
end
jpizza.register_topping({
item = pineapple,
name = "pineapple",
topping_inv = {
"jelys_pizzaria_topping_pineapple_inv_1.png",
"jelys_pizzaria_topping_pineapple_inv_2.png",
},
texture = "jelys_pizzaria_topping_pineapple.png",
cooked_texture = "jelys_pizzaria_topping_pineapple_cooked.png",
eat = 3,
})