Mods in den Spieleordner reingeschoben. So richtig tief.

This commit is contained in:
N-Nachtigal 2025-05-08 22:41:25 +02:00
parent b4b6c08f4f
commit f7bc25a670
1674 changed files with 56056 additions and 530 deletions

View file

@ -0,0 +1,46 @@
-- TODO --
minetest.register_craftitem("sandwiches:ketchup", {
description = "Ketchup bottle",
inventory_image = "ketchup.png",
groups = {food_sauce = 1, food_ketchup = 1},
})
minetest.register_craft({
output = "sandwiches:ketchup 5",
type = "shapeless";
recipe = {"group:food_tomato", "group:food_tomato", "group:food_tomato",
"group:food_sugar", "group:food_sugar", "group:food_sugar",
"group:food_pot", "vessels:glass_bottle",
},
replacements = {{"group:food_pot", "group:food_pot"}}
})
minetest.register_craftitem("sandwiches:spicy_ketchup", {
description = "Spicy ketchup bottle",
inventory_image = "ketchup.png", -- colorize more red ?
groups = {food_sauce = 1, food_ketchup = 1, food_spicy = 1, food_hot = 1},
})
minetest.register_craft({
output = "sandwiches:spicy_ketchup 5",
type = "shapeless";
recipe = {"group:food_tomato", "group:food_tomato", "group:food_tomato",
"group:food_sugar", "group:food_sugar", "group:food_chili_pepper",
"group:food_pot", "vessels:glass_bottle", "group:food_chili_pepper"
},
replacements = {{"group:food_pot", "group:food_pot"}}
})
minetest.register_craftitem("sandwiches:maionaisse", {
description = "Maionaisse",
inventory_image = "maionaisse.png",
groups = {food_sauce = 1, food_maionaisse = 1},
})
minetest.register_craft({
output = "sandwiches:maionaisse 5",
type = "shapeless";
recipe = {"group:food_egg", "group:food_egg", "group:food_oil",
"group:food_oil", "group:food_lemon", "group:food_lemon",
"group:food_mixing_bowl", "vessels:glass_bottle",
},
replacements = {{"group:food_mixing_bowl", "group:food_mixing_bowl"}}
})

View file

@ -0,0 +1,148 @@
local pot = "sandwiches:pot"
local skillet = "sandwiches:skillet"
if minetest.global_exists("farming") and farming.mod == "redo" then
pot = "farming:pot"
skillet = "farming:skillet"
end
minetest.register_craft({
output = "sandwiches:classic_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"agriculture:lettuce", "group:food_ham", "agriculture:tomato"},
{"", "sandwiches:bread_slice", ""},
},
})
minetest.register_craft({
output = "sandwiches:classic_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"agriculture:lettuce", "farming:tofu_cooked", "agriculture:tomato"},
{"", "sandwiches:bread_slice", ""},
},
})
minetest.register_craft({
output = "sandwiches:blt_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"agriculture:lettuce", "group:food_bacon" ,"agriculture:tomato"},
{"", "sandwiches:bread_slice", ""},
},
})
minetest.register_craft({
output = "sandwiches:italian_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"flowers:mushroom_brown", "agriculture:tomato", "group:food_cheese"},
{"", "sandwiches:bread_slice", ""},
},
})
minetest.register_craft({
output = "sandwiches:hot_veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"agriculture:tomato", "sandwiches:tabasco", "agriculture:potato"},
{"", "sandwiches:bread_slice", ""},
},
replacements = {{"sandwiches:tabasco", "vessels:glass_bottle"},}
})
minetest.register_craft({
output = "sandwiches:hot_veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"agriculture:carrot", "sandwiches:tabasco", "group:food_onion"},
{"", "sandwiches:bread_slice", ""},
},
replacements = {{"sandwiches:tabasco", "vessels:glass_bottle"},}
})
minetest.register_craft({
output = "sandwiches:veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_cucumber", "agriculture:tomato", "agriculture:potato"},
{"", "sandwiches:bread_slice", ""},
},
})
minetest.register_craft({
output = "sandwiches:veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"agriculture:carrot", "group:food_onion", "agriculture:sugar_beet"},
{"", "sandwiches:bread_slice", ""},
},
})
-- NON SANDWICH CRAFTS --
local herb = "group:food_parsley"
local rosm = "group:food_pepper_ground"
if sandwiches.ingredient_support.herbs then
herb = "potted_farming:sage"
rosm = "group:food_rosemary"
end
minetest.register_craft({
output = "sandwiches:roasted_potatoes 5",
type = "shapeless",
recipe = {
"agriculture:potato", "agriculture:potato",
"group:food_skillet", "group:food_oil", rosm,
},
replacements = {
{"group:food_skillet", skillet },
{"group:food_pepper_ground", "vessels:glass_bottle"},
{"group:food_oil", "vessels:glass_bottle"}, }
})
minetest.register_craft({
output = "sandwiches:butter_carrots 5",
type = "shapeless",
recipe = {
"agriculture:carrot", "agriculture:carrot",
"group:food_skillet", "group:food_butter", herb,
},
replacements = {{"group:food_skillet", skillet }}
})
minetest.register_craft({
output = "sandwiches:strawberry_jam 5",
recipe = {
{"agriculture:strawberry", "group:food_sugar", "agriculture:strawberry"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"agriculture:strawberry", "group:food_sugar", "agriculture:strawberry"},
},
replacements = {{"group:food_pot", pot }},
})
minetest.register_craft({
output = "sandwiches:blueberry_jam 5",
recipe = {
{"agriculture:huckleberry", "group:food_sugar", "agriculture:huckleberry"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"agriculture:huckleberry", "group:food_sugar", "agriculture:huckleberry"},
},
replacements = {{"group:food_pot", pot }},
})
minetest.register_craft({
output = "sandwiches:strawberry_jam 5",
recipe = {
{"agriculture:strawberry", "agriculture:sugar", "agriculture:strawberry"},
{"agriculture:sugar", "group:food_pot", "agriculture:sugar"},
{"agriculture:strawberry", "agriculture:sugar", "agriculture:strawberry"},
},
replacements = {{"group:food_pot", pot }},
})
minetest.register_craft({
output = "sandwiches:blueberry_jam 5",
recipe = {
{"agriculture:huckleberry", "agriculture:sugar", "agriculture:huckleberry"},
{"agriculture:sugar", "group:food_pot", "agriculture:sugar"},
{"agriculture:huckleberry", "agriculture:sugar", "agriculture:huckleberry"},
},
replacements = {{"group:food_pot", pot }},
})

View file

@ -0,0 +1,51 @@
-- SANDWHICHES --
if minetest.global_exists("farming") and farming.mod == "redo" then -- need pepper
minetest.register_craftitem("sandwiches:hamwich", {
description = "Hamwich",
on_use = minetest.item_eat(11, "sandwiches:bread_crumbs"),
groups = {food_sandwich = 1},
inventory_image = "hamwich.png"
})
minetest.register_craft({
output = "sandwiches:hamwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_pepper", "bbq:hamburger_patty", "group:food_cheese"},
{"", "sandwiches:bread_slice", ""},
}
})
end
minetest.register_craftitem("sandwiches:jerky_sandwich", {
description = "Jerky sandwich",
on_use = minetest.item_eat(11, "sandwiches:bread_crumbs"),
groups = {food_sandwich = 1},
inventory_image = "jerky_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:jerky_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"sandwiches:tabasco", "bbq:beef_jerky", "group:food_cheese"},
{"", "sandwiches:bread_slice", ""},
},
replacements = {{"sandwiches:tabasco", "vessels:glass_bottle"},}
})
--NON SANDWICH ITEMS CRAFT --
minetest.register_craft({
output = "sandwiches:ham 3",
type = "shapeless";
recipe = {"bbq:beef", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", "farming:cutting_board"}}
})
minetest.register_craft({
output = "sandwiches:caramelized_onion 4", -- added an use to molasses
type = "shapeless";
recipe = {"group:food_onion", "group:food_onion", "bbq:molasses", "group:food_skillet"},
replacements = {{"group:food_skillet", "farming:skillet"}}
})

View file

@ -0,0 +1,262 @@
local skillet = "sandwiches:skillet"
local mope = "sandwiches:mortar_pestle"
if minetest.global_exists("farming") and farming.mod == "redo" then
mope = "farming:mortar_pestle"
skillet = "farming:skillet"
end
-- SANDWICHES --
minetest.register_craftitem("sandwiches:tasty_asparagus_sandwich", {
description = "Tasty asparagus sandwich",
on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
groups = {food = 7, food_sandwich = 1, food_vegan = 1},
inventory_image = "tasty_asparagus_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:tasty_asparagus_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:asparagus", "cucina_vegana:sauce_hollandaise", "cucina_vegana:asparagus"},
{"", "sandwiches:bread_slice", ""},
}
})
if sandwiches.ingredient_support.meat then
minetest.register_craftitem("sandwiches:ham_and_asparagus_sandwich", {
description = "Ham and asparagus sandwich",
on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
groups = {food = 7, food_sandwich = 1},
inventory_image = "ham_and_asparagus_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:ham_and_asparagus_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:asparagus", "group:food_ham" ,"cucina_vegana:asparagus"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craftitem("sandwiches:club_sandwich", {
description = "Club sandwich",
on_use = minetest.item_eat(18, "sandwiches:bread_crumbs"),
groups = {food = 18, food_sandwich = 1, },
inventory_image = "club_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:club_sandwich",
recipe = {
{"sandwiches:bread_slice", "group:food_tomato" , "sandwiches:bread_slice"},
{"sandwiches:chicken_strips", "cucina_vegana:sauce_hollandaise" ,"group:food_bacon" },
{"sandwiches:bread_slice", "group:food_lettuce", "sandwiches:bread_slice"},
}
})
end -- if ham is present
minetest.register_craftitem("sandwiches:tasty_tofu_sandwich", {
description = "Tofu and asparagus sandwich",
on_use = minetest.item_eat(8, "sandwiches:bread_crumbs"),
groups = {food = 8, food_sandwich = 1, food_vegan = 1},
inventory_image = "tasty_tofu_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:tasty_tofu_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:asparagus", "cucina_vegana:tofu_cooked" ,"cucina_vegana:asparagus"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:tasty_tofu_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:asparagus", "farming:tofu_cooked" ,"cucina_vegana:asparagus"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craftitem("sandwiches:tofu_sandwich", {
description = "Tofu sandwich",
on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
groups = {food = 7, food_sandwich = 1, food_vegan = 1},
inventory_image = "tofu_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:tofu_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives","cucina_vegana:tofu_cooked", "cucina_vegana:rosemary"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:tofu_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives","farming:tofu_cooked", "cucina_vegana:rosemary"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craftitem("sandwiches:gourmet_sandwich", {
description = "Gourmet sandwich",
on_use = minetest.item_eat(12, "sandwiches:bread_crumbs"),
groups = {food = 12, food_sandwich = 1},
inventory_image = "gourmet_vegan_sandwich.png"
})
minetest.register_alias("sandwiches:gourmet_meat_sandwich", "sandwiches:gourmet_sandwich")
minetest.register_alias("sandwiches:gourmet_vegan_sandwich", "sandwiches:gourmet_sandwich")
minetest.register_craft({
output = "sandwiches:gourmet_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives", "group:food_ham" ,"cucina_vegana:sauce_hollandaise" },
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:gourmet_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives", "group:food_chicken_strips" ,"cucina_vegana:sauce_hollandaise" },
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:gourmet_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives", "cucina_vegana:tofu_cooked" ,"cucina_vegana:sauce_hollandaise" },
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:gourmet_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives", "farming:tofu_cooked" ,"cucina_vegana:sauce_hollandaise" },
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:gourmet_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives", "cucina_vegana:imitation_meat" ,"cucina_vegana:sauce_hollandaise" },
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:gourmet_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:chives", "cucina_vegana:imitation_poultry" ,"cucina_vegana:sauce_hollandaise" },
{"", "sandwiches:bread_slice", ""},
}
})
-- ALREADY EXISTING SANDWICHES CRAFT --
minetest.register_craft({
output = "sandwiches:classic_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_lettuce", "cucina_vegana:tofu_cooked", "group:food_tomato" },
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:hot_veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"cucina_vegana:asparagus", "sandwiches:tabasco", "group:food_lettuce"},
{"", "sandwiches:bread_slice", ""},
},
replacements = {{"sandwiches:tabasco", "vessels:glass_bottle"},}
})
minetest.register_craft({
output = "sandwiches:fancy_garlic_sandwich",
recipe = {
{"", "sandwiches:garlic_bread", ""},
{"cucina_vegana:tofu_cooked", "sandwiches:trifolat_mushrooms", "group:food_cheese"},
{"", "sandwiches:garlic_bread", ""},
},
})
minetest.register_craft({
output = "sandwiches:fancy_garlic_sandwich",
recipe = {
{"", "sandwiches:garlic_bread", ""},
{"farming:tofu_cooked", "sandwiches:trifolat_mushrooms", "group:food_cheese"},
{"", "sandwiches:garlic_bread", ""},
},
})
minetest.register_craft({
output = "sandwiches:tasty_garlic_sandwich",
recipe = {
{"", "sandwiches:garlic_bread", ""},
{"group:food_tomato", "cucina_vegana:tofu_cooked", "group:food_cheese"},
{"", "sandwiches:garlic_bread", ""},
},
})
minetest.register_craft({
output = "sandwiches:tasty_garlic_sandwich",
recipe = {
{"", "sandwiches:garlic_bread", ""},
{"group:food_tomato", "farming:tofu_cooked", "group:food_cheese"},
{"", "sandwiches:garlic_bread", ""},
},
})
--ALREADY EXISTING NON SANDWICH ITEMS
minetest.register_craft({
output = "sandwiches:tabasco 3",
type = "shapeless";
recipe = {"group:food_chili", "group:food_chili", "group:food_chili",
"group:food_chili", "group:food_chili", "group:food_chili",
"group:food_mortar_pestle", "vessels:glass_bottle",
},
replacements = {{"group:food_mortar_pestle", mope }}
})
minetest.register_craft({
output = "sandwiches:roasted_potatoes 5",
type = "shapeless",
recipe = {
"group:food_potato", "group:food_potato",
"group:food_skillet", "group:food_oil", "cucina_vegana:rosemary",
},
replacements = {{"group:food_skillet", "farming:skillet"}, {"group:food_oil", "vessels:glass_bottle"}}
})
minetest.register_craft({
output = "sandwiches:garlic_bread 4",
recipe = {
{"", "cucina_vegana:garlic", ""},
{"sandwiches:bread_slice", "sandwiches:bread_slice", "sandwiches:bread_slice"},
{"group:food_skillet", "sandwiches:bread_slice", "group:food_butter"},
},
replacements = {{"group:food_skillet", skillet}}
})
-- MOLASSES --
if minetest.registered_items["sandwiches:caramelized_onion"] then
minetest.register_craft({
output = "sandwiches:caramelized_onion 4",
type = "shapeless";
recipe = {"group:food_onion", "group:food_onion", "cucina_vegana:molasses", "group:food_skillet"},
replacements = {{"group:food_skillet", "farming:skillet"}}
})
end

View file

@ -0,0 +1,87 @@
-- banana_and_chocolate_sandwich, strawberry jam and strawberry_jam_sandwich are added.
minetest.register_craftitem("sandwiches:strawberry_jam", {
description = "Strawberry jam",
on_use = minetest.item_eat(2),
groups = {food_jam = 1, },
inventory_image = "strawberry_jam.png"
})
minetest.register_craftitem("sandwiches:strawberry_jam_sandwich", {
description = "Strawberry Jam Sandwich",
on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
groups = {food_sandwich = 1},
inventory_image = "strawberry_jam_sandwich.png"
})
minetest.register_craftitem("sandwiches:banana_and_chocolate_sandwich", {
description = "Banana and chocolate sandwich",
on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
groups = {food_sandwich = 1},
inventory_image = "banana_and_chocolate_sandwich.png"
})
minetest.register_craftitem("sandwiches:elvis_sandwich", {
description = "Elvis sandwich",
on_use = minetest.item_eat(8, "sandwiches:bread_crumbs"),
groups = {food_sandwich = 1},
inventory_image = "elvis_sandwich.png"
})
-- CRAFTS --
minetest.register_craft({
output = "sandwiches:strawberry_jam",
recipe = {
{"group:food_strawberry", "group:food_sugar", "group:food_strawberry"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"group:food_strawberry", "group:food_sugar", "group:food_strawberry"},
},
replacements = {{"group:food_pot", "group:food_pot"}}
})
minetest.register_craft({
output = "sandwiches:strawberry_jam",
recipe = {
{"ethereal:strawberry", "group:food_sugar", "ethereal:strawberry"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"ethereal:strawberry", "group:food_sugar", "ethereal:strawberry"},
},
replacements = {{"group:food_pot", "group:food_pot"}}
})
minetest.register_craft({
output = "sandwiches:strawberry_jam_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"sandwiches:strawberry_jam", "sandwiches:strawberry_jam", "sandwiches:strawberry_jam"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:banana_and_chocolate_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_banana", "farming:chocolate_dark", "group:food_banana"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:banana_and_chocolate_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"ethereal:banana", "farming:chocolate_dark", "ethereal:banana"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:elvis_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"ethereal:banana", "sandwiches:peanut_butter", "sandwiches:crispy_bacon"},
{"", "sandwiches:bread_slice", ""},
}
})

View file

@ -0,0 +1,68 @@
minetest.register_craftitem("sandwiches:cooked_salmon", {
description = "Cooked Salmon",
on_use = minetest.item_eat(4),
groups = {food = 4, food_fish_cooked = 1, food_salmon = 1, flammable = 1},
inventory_image = "sandwiches_salmon_cooked.png"
})
minetest.register_craft({
type = "cooking",
output = "sandwiches:cooked_salmon",
recipe = "ethereal:fish_salmon",
cooktime = 5,
})
local ingredient = "group:food_tomato"
if minetest.get_modpath("cheese") then
ingredient = "group:food_cream"
end
if minetest.global_exists("farming") and farming.mod == "redo" then
minetest.register_craftitem("sandwiches:lox_sandwich", {
description = "Lox sandwich",
on_use = minetest.item_eat(12, "sandwiches:bread_crumbs"),
groups = {food = 12, food_sandwich = 1, flammable = 1},
inventory_image = "lox_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:lox_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{ingredient, "sandwiches:cooked_salmon","group:food_cucumber"},
{"", "sandwiches:bread_slice", ""},
}
})
end -- it needs cucumber
if sandwiches.ingredient_support.meat then
minetest.register_craftitem("sandwiches:cooked_trout", {
description = "Cooked Trout",
on_use = minetest.item_eat(4),
groups = {food = 4, food_fish_cooked = 1, food_trout = 1, flammable = 1},
inventory_image = "sandwiches_trout_cooked.png"
})
minetest.register_craft({
type = "cooking",
output = "sandwiches:cooked_trout",
recipe = "ethereal:fish_trout",
cooktime = 5,
})
minetest.register_craftitem("sandwiches:trout_sandwich", {
description = "Trout sandwich",
on_use = minetest.item_eat(13, "sandwiches:bread_crumbs"),
groups = {food = 13, food_sandwich = 1, flammable = 1},
inventory_image = "trout_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:trout_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_egg", "sandwiches:cooked_trout","group:food_onion"},
{"", "sandwiches:bread_slice", ""},
}
})
end -- if eggs are present

View file

@ -0,0 +1,98 @@
local board = "sandwiches:cutting_board"
if minetest.global_exists("farming") and farming.mod == "redo" then
board = "farming:cutting_board"
end
minetest.register_craftitem("sandwiches:ham", {
description = "Ham",
on_use = minetest.item_eat(3),
groups = {food = 3, food_ham = 1, food_meat = 1, flammable = 1},
inventory_image = "sandwiches_ham.png"
})
minetest.register_craftitem("sandwiches:chicken_strips", {
description = "Chicken strips",
on_use = minetest.item_eat(2),
groups = {food = 2, food_chicken_strips = 1, food_meat = 1, flammable = 1},
inventory_image = "sandwiches_chicken_strips.png"
})
minetest.register_craft({
output = "sandwiches:chicken_strips 3",
type = "shapeless";
recipe = {"group:food_chicken", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
minetest.register_craftitem("sandwiches:raw_bacon", {
description = "Raw Bacon",
on_use = minetest.item_eat(1),
groups = {food = 1, food_bacon_raw = 1, food_meat = 1, flammable = 1},
inventory_image = "sandwiches_raw_bacon.png"
})
minetest.register_craftitem("sandwiches:crispy_bacon", {
description = "Crispy Bacon",
on_use = minetest.item_eat(3),
groups = {food = 3, food_bacon = 1, food_meat = 1, flammable = 1},
inventory_image = "sandwiches_crispy_bacon.png"
})
minetest.register_craft({
type = "cooking",
output = "sandwiches:crispy_bacon",
recipe = "sandwiches:raw_bacon",
cooktime = 5,
})
minetest.register_craft({
output = "sandwiches:raw_bacon 3",
type = "shapeless";
recipe = {"group:food_pork_raw", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
if minetest.get_modpath("mobs") then
minetest.register_craft({
output = "sandwiches:ham 3",
type = "shapeless";
recipe = {"mobs:meat", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
end
if minetest.get_modpath("petz") then
minetest.register_craft({
output = "sandwiches:ham 3",
type = "shapeless";
recipe = {"petz:steak", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
minetest.register_craft({
output = "sandwiches:chicken_strips 3",
type = "shapeless";
recipe = {"petz:roasted_chicken", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
minetest.register_craft({
output = "sandwiches:raw_bacon 3",
type = "shapeless";
recipe = {"petz:raw_porkchop", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
end
if minetest.get_modpath("animalia") then
minetest.register_craft({
output = "sandwiches:ham 3",
type = "shapeless";
recipe = {"animalia:beef_cooked", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
minetest.register_craft({
output = "sandwiches:chicken_strips 3",
type = "shapeless";
recipe = {"animalia:poultry_cooked", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
minetest.register_craft({
output = "sandwiches:raw_bacon 3",
type = "shapeless";
recipe = {"animalia:porkchop_raw", "group:food_cutting_board"},
replacements = {{"group:food_cutting_board", board }}
})
end

View file

@ -0,0 +1,99 @@
minetest.register_node("sandwiches:noyella_block", {
description = "Noyella block",
groups = {snappy = 1 , oddly_breakable_by_hand = 3, not_in_creative_inventory=1, flammable = 1},
paramtype2 = "facedir",
tiles = {"noyella_block_top.png",
"noyella_block_bottom.png",
"noyella_block_side.png",
"noyella_block_side.png",
"noyella_block_side.png",
"noyella_block_front.png"
},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craftitem("sandwiches:noyella_sandwich", {
description = "noyella sandwich",
on_use = minetest.item_eat(8, "sandwiches:bread_crumbs"),
groups = {food_sandwich = 1},
inventory_image = "noyella_sandwich.png"
})
minetest.register_craftitem("sandwiches:noyella_spread", {
description = "Noyella spread",
on_use = minetest.item_eat(2),
groups = {food_nutella = 1, food_noyella = 1, food_chocolate_spead = 1, flammable = 1},
inventory_image = "noyella_spread.png"
})
-- CRAFTS --
minetest.register_craft({
output = "sandwiches:noyella_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"sandwiches:noyella_spread", "sandwiches:noyella_spread", "sandwiches:noyella_spread"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craft({
output = "sandwiches:noyella_spread 5",
type = "shapeless",
recipe = {
"farming:cocoa_beans", "farming:cocoa_beans", "farming:cocoa_beans",
"group:food_sugar", "group:food_sugar", "group:food_sugar",
"moretrees:acorn", "moretrees:acorn", "moretrees:acorn",
}
})
if minetest.get_modpath("x_farming") then
minetest.register_craft({
output = "sandwiches:noyella_spread 5",
type = "shapeless",
recipe = {
"x_farming:cocoa_bean", "x_farming:cocoa_bean", "x_farming:cocoa_bean",
"group:food_sugar", "group:food_sugar", "group:food_sugar",
"moretrees:acorn", "moretrees:acorn", "moretrees:acorn",
}
})
end -- if x_farming is present
if minetest.get_modpath("cacaotree")then
minetest.register_craft({
output = "sandwiches:noyella_spread 5",
type = "shapeless",
recipe = {
"cacaotree:cacao_beans", "cacaotree:cacao_beans", "cacaotree:cacao_beans",
"group:food_sugar", "group:food_sugar", "group:food_sugar",
"moretrees:acorn", "moretrees:acorn", "moretrees:acorn",
}
})
minetest.register_craft({
output = "sandwiches:noyella_spread 5",
type = "shapeless",
recipe = {
"cacaotree:cacao_beans", "cacaotree:cacao_beans", "cacaotree:cacao_beans",
"x_farming:sugar", "x_farming:sugar", "x_farming:sugar",
"moretrees:acorn", "moretrees:acorn", "moretrees:acorn",
}
})
end -- if cool_trees with cacaotree is present
minetest.register_craft({
output = "sandwiches:noyella_block",
recipe = {
{"sandwiches:noyella_spread", "sandwiches:noyella_spread", "sandwiches:noyella_spread"},
{"sandwiches:noyella_spread", "sandwiches:noyella_spread", "sandwiches:noyella_spread"},
{"sandwiches:noyella_spread", "sandwiches:noyella_spread", "sandwiches:noyella_spread"}
}
})
minetest.register_craft({
output = "sandwiches:noyella_spread 9",
type = "shapeless",
recipe = {"sandwiches:noyella_block"}
})
minetest.register_alias("sandwiches:nutella_block", "sandwiches:noyella_block")
minetest.register_alias("sandwiches:acorn_nutella", "sandwiches:noyella_spread")
minetest.register_alias("sandwiches:nutella_sandwich", "sandwiches:noyella_sandwich")

View file

@ -0,0 +1,124 @@
local skillet = "sandwiches:skillet"
local mix = "sandwiches:mixing_bowl"
if minetest.global_exists("farming") and farming.mod == "redo" then
skillet = "farming:skillet"
mix = "farming:mixing_bowl"
end
-- food_toasted = 1 means sandwich wich craft uses skillet+butter or uses garlic bread slice
minetest.register_craftitem("sandwiches:grilled_hot_cheesy_sandwich", {
description = "Grilled hot cheese sandwich",
on_use = minetest.item_eat(10, "sandwiches:bread_crumbs"),
groups = {food = 10, food_sandwich = 1, food_toasted = 1},
inventory_image = "grilled_hot_cheesy_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:grilled_hot_cheesy_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_cheese", "sandwiches:tabasco", "group:food_cheese"},
{"group:food_skillet", "sandwiches:bread_slice", "group:food_butter"},
},
replacements = {{"group:food_skillet", skillet}, {"sandwiches:tabasco","vessels:glass_bottle"}}
})
--garlic bread done right
minetest.register_craftitem("sandwiches:garlic_bread", {
description = "Garlic bread",
on_use = minetest.item_eat(4, "sandwiches:bread_crumbs"),
groups = {food = 4, food_garlic_bread = 1},
inventory_image = "sandwiches_garlic_bread_slice.png"
})
minetest.register_craft({
output = "sandwiches:garlic_bread 2",
recipe = {
{"group:food_garlic_clove", "group:food_garlic_clove", "group:food_garlic_clove"},
{"group:food_garlic_clove", "sandwiches:bread_slice", "group:food_garlic_clove"},
{"group:food_skillet", "sandwiches:bread_slice", "group:food_butter"},
},
replacements = {{"group:food_skillet", skillet}}
})
minetest.register_craftitem("sandwiches:tasty_garlic_sandwich", {
description = "Tasty garlic sandwich",
on_use = minetest.item_eat(16, "sandwiches:bread_crumbs"),
groups = {food = 16, food_sandwich = 1, food_toasted = 1},
inventory_image = "tasty_garlic_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:tasty_garlic_sandwich",
recipe = {
{"", "sandwiches:garlic_bread", ""},
{"group:food_tomato", "group:food_ham", "group:food_cheese"},
{"", "sandwiches:garlic_bread", ""},
},
})
minetest.register_craftitem("sandwiches:fancy_garlic_sandwich", {
description = "Fancy garlic sandwich",
on_use = minetest.item_eat(18, "sandwiches:bread_crumbs"),
groups = {food = 18, food_sandwich = 1, food_toasted = 1},
inventory_image = "fancy_garlic_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:fancy_garlic_sandwich",
recipe = {
{"", "sandwiches:garlic_bread", ""},
{"group:food_bacon", "sandwiches:trifolat_mushrooms", "group:food_cheese"},
{"", "sandwiches:garlic_bread", ""},
},
})
-- croque monsier, croque madame --- need GRUYERE
local cheese = "group:food_cheese"
if minetest.get_modpath("cheese") then
cheese = "cheese:gruyere"
end
if minetest.registered_items["sandwiches:ham"] then
minetest.register_craftitem("sandwiches:croque_monsieur", {
description = "Croque Monsier",
on_use = minetest.item_eat(13, "sandwiches:bread_crumbs"),
groups = {food = 13, food_sandwich = 1, food_toasted = 1},
inventory_image = "croque_monsieur.png"
})
minetest.register_craft({
output = "sandwiches:croque_monsieur",
recipe = {
{"", "sandwiches:bread_slice", ""},
{cheese, "group:food_ham", cheese},
{"group:food_skillet", "sandwiches:bread_slice", "group:food_butter"},
},
replacements = {{"group:food_skillet", skillet}}
})
end
if minetest.registered_items["sandwiches:chicken_strips"] then
minetest.register_craftitem("sandwiches:croque_madame", {
description = "Croque madame",
on_use = minetest.item_eat(16, "sandwiches:bread_crumbs"),
groups = {food = 16, food_sandwich = 1, food_toasted = 1},
inventory_image = "croque_madame.png"
})
minetest.register_craft({
output = "sandwiches:croque_madame",
recipe = {
{"", "sandwiches:bread_slice", "group:food_egg_fried"},
{cheese, "sandwiches:chicken_strips", cheese},
{"group:food_skillet", "sandwiches:bread_slice", "group:food_butter"},
},
replacements = {{"group:food_skillet", skillet}}
})
end
--[[
minetest.register_craft({
output = "sandwiches:croque_madame",
type = "shapeless";
recipe = {"group:food_egg_fried", "sandwiches:croque_monsieur"},
})
]]--

View file

@ -0,0 +1,84 @@
-- same exact recipes as the ones in farming's utensils.lua
minetest.register_craftitem("sandwiches:pot", {
description = "Cooking Pot",
inventory_image = "cooking_pot.png",
groups = {food_pot = 1}
})
minetest.register_craft({
output = "sandwiches:pot",
recipe = {
{"group:stick", "default:steel_ingot", "default:steel_ingot"},
{"", "default:steel_ingot", "default:steel_ingot"}
}
})
--[[
minetest.register_craftitem("sandwiches:baking_tray", {
description = "Baking Tray",
inventory_image = "baking_tray.png",
groups = {food_baking_tray = 1}
})
minetest.register_craft({
output = "sandwiches:baking_tray",
recipe = {
{"default:clay_brick", "default:clay_brick", "default:clay_brick"},
{"default:clay_brick", "", "default:clay_brick"},
{"default:clay_brick", "default:clay_brick", "default:clay_brick"}
}
})
]]--
minetest.register_craftitem("sandwiches:skillet", {
description = "Skillet",
inventory_image = "skillet.png",
groups = {food_skillet = 1}
})
minetest.register_craft({
output = "sandwiches:skillet",
recipe = {
{"default:steel_ingot", "", ""},
{"", "default:steel_ingot", ""},
{"", "", "group:stick"}
}
})
minetest.register_craftitem("sandwiches:mortar_pestle", {
description = "Mortar and Pestle",
inventory_image = "mortar_pestle.png",
groups = {food_mortar_pestle = 1}
})
minetest.register_craft({
output = "sandwiches:mortar_pestle",
recipe = {
{"default:stone", "group:stick", "default:stone"},
{"", "default:stone", ""}
}
})
minetest.register_craftitem("sandwiches:cutting_board", {
description = "Cutting Board",
inventory_image = "cutting_board.png",
groups = {food_cutting_board = 1}
})
minetest.register_craft({
output = "sandwiches:cutting_board",
recipe = {
{"default:steel_ingot", "", ""},
{"", "group:stick", ""},
{"", "", "group:wood"}
}
})
minetest.register_craftitem("sandwiches:mixing_bowl", {
description = "Glass Mixing Bowl",
inventory_image = "mixing_bowl.png",
groups = {food_mixing_bowl = 1,}
})
minetest.register_craft({
output = "sandwiches:mixing_bowl",
recipe = {
{"", "", ""},
{"default:glass", "group:stick", "default:glass"},
{"", "default:glass", ""}
}
})

View file

@ -0,0 +1,127 @@
local ingredient = "group:food_lettuce"
local pot = "sandwiches:pot"
local skillet = "sandwiches:skillet"
if minetest.global_exists("farming") and farming.mod == "redo" then
pot = "farming:pot"
skillet = "farming:skillet"
ingredient = "group:food_cucumber"
end
if sandwiches.ingredient_support.dairy then
ingredient = "group:food_cheese"
end
-- SANDWICHES --
minetest.register_craftitem("sandwiches:po_boy_sandwich", {
description = "Po\'boy sandwich",
on_use = minetest.item_eat(7, "sandwiches:bread_crumbs"),
groups = {food = 7, food_sandwich = 1},
inventory_image = "po_boy_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:po_boy_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{ingredient, "x_farming:shrimp_cooked", "group:food_tomato"},
{"", "sandwiches:bread_slice", ""},
}
})
-- ALREADY EXISTING SANDWICHES CRAFT --
minetest.register_craft({
output = "sandwiches:hot_veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"x_farming:carrot", "sandwiches:tabasco", "x_farming:potato"},
{"", "sandwiches:bread_slice", ""},
},
replacements = {{"sandwiches:tabasco", "vessels:glass_bottle"},}
})
minetest.register_craft({
output = "sandwiches:hot_veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"x_farming:carrot", "sandwiches:tabasco", "group:food_onion"},
{"", "sandwiches:bread_slice", ""},
},
replacements = {{"sandwiches:tabasco", "vessels:glass_bottle"},}
})
minetest.register_craft({
output = "sandwiches:veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_cucumber", "x_farming:carrot", "x_farming:potato"},
{"", "sandwiches:bread_slice", ""},
},
})
minetest.register_craft({
output = "sandwiches:veggie_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"x_farming:carrot", "group:food_onion", "x_farming:beetroot"},
{"", "sandwiches:bread_slice", ""},
},
})
minetest.register_craft({
output = "sandwiches:banana_and_chocolate_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_banana", "x_farming:chocolate", "group:food_banana"},
{"", "sandwiches:bread_slice", ""},
},
})
-- NON SANDWICH CRAFTS --
local herb = "group:food_parsley"
local rosm = "group:food_pepper_ground"
if sandwiches.ingredient_support.herbs then
herb = "potted_farming:sage"
rosm = "group:food_rosemary"
end
minetest.register_craft({
output = "sandwiches:roasted_potatoes 5",
type = "shapeless",
recipe = {
"x_farming:potato", "x_farming:potato",
"group:food_skillet", "group:food_oil", rosm,
},
replacements = {
{"group:food_skillet", skillet },
{"group:food_pepper_ground", "vessels:glass_bottle"},
{"group:food_oil", "vessels:glass_bottle"}, }
})
minetest.register_craft({
output = "sandwiches:butter_carrots 5",
type = "shapeless",
recipe = {
"x_farming:carrot", "x_farming:carrot",
"group:food_skillet", "group:food_butter", herb,
},
replacements = {{"group:food_skillet", skillet }}
})
minetest.register_craft({
output = "sandwiches:strawberry_jam 5",
recipe = {
{"x_farming:strawberry", "group:food_sugar", "x_farming:strawberry"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"x_farming:strawberry", "group:food_sugar", "x_farming:strawberry"},
},
replacements = {{"group:food_pot", pot }},
})
minetest.register_craft({
output = "sandwiches:strawberry_jam 5",
recipe = {
{"x_farming:strawberry", "x_farming:sugar", "x_farming:strawberry"},
{"x_farming:sugar", "group:food_pot", "x_farming:sugar"},
{"x_farming:strawberry", "x_farming:sugar", "x_farming:strawberry"},
},
replacements = {{"group:food_pot", pot }},
})