jelys_pizzaria-cd2025/mutation_backup.lua
2021-06-19 16:36:34 -07:00

176 lines
4.5 KiB
Lua

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",
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:tomato",
recipe = {"default:apple", mutagen},
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:sauce",
recipe = {"jelys_pizzaria:tomato", "vessels:glass_bottle"},
})
minetest.register_craft({
output = "jelys_pizzaria:pepperoni_uncured",
recipe = {
{"jelys_pizzaria:meat"},
{"jelys_pizzaria:meat"},
{"jelys_pizzaria:meat"}
},
})
minetest.register_craft({
output = "jelys_pizzaria:sausage",
recipe = {
{"","",""},
{"jelys_pizzaria:meat","jelys_pizzaria:meat","jelys_pizzaria:meat"},
{"","",""}
},
})
minetest.register_craft({
output = "jelys_pizzaria:pizza_cutter",
recipe = {
{"","default:steel_ingot", "default:steel_ingot"},
{"","group:stick", "default:steel_ingot"},
{"group:stick", "", ""}
},
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:olives",
recipe = {"default:blueberries", mutagen},
})
minetest.register_craftitem("jelys_pizzaria:tomato", {
description = "Tomato",
inventory_image = "jelys_pizzaria_tomato.png",
})
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},
},
})
if jpizza.has_depends.pineapple then
jpizza.register_topping({
item = "pineapple: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,
})
else
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(),
})
jpizza.register_topping({
item = "jelys_pizzaria: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,
})
minetest.register_craft({
type = "shapeless",
output = "jelys_pizzaria:pineapple",
recipe = {"default:pine_needles","default:pine_needles","default:apple", mutagen, mutagen},
})
end