75 lines
1.9 KiB
Lua
75 lines
1.9 KiB
Lua
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() |