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,23 @@
License for Code
----------------
Copyright (C) 2018 Annalysa
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
License for Textures
---------------------------------------
CC-BY-SA 3.0 UNPORTED. Created by Annalysa

View file

@ -0,0 +1,36 @@
Ciao!
This is my first mod, so sorry if there are any errors or english typos.
This mod adds to your minetest game various type of sandwiches,
including vegetarian, nutella, bacon, pb&j and many more,
if you have supported mods like BBQ and cucina_vegana!
There are also some other related food like a sweet bread pudding,
made from sandwiches crumbs and jam.
Developed and tested for Minetest 0.4.17 until version 1.7
Developed and tested for Minetest 5.4.x since 1.8
Current version:
v 1.9 - complete overhaul plus added some toasts through the use of farming:skillet
v 1.8 - lost to time (RIP old pc)
v 1.7 - added cucina_vegana compatibility + more sandwiches
v 1.6 - added bbq compatibility + chicken strips
v 1.5 - added ethereal compatibility and lots of sandwiches
v 1.4 - peanut crop and bacon added
v 1.3 - made moretrees optional
v 1.2 - replaced meat with craftable ham
v 1.1 - fixed some on_use values
v 1.0 - the very first release;
This mod has some dependencies, so some sandwiches might not be present if
some mods are not present.
default farming or farming-redo by TenPlus1 - (Essential) provides the main feature: transforming bread into slices
mobs by TenPlus1 or any other cow-chicken-pig prividing mod - (Optional) provides access to meat related items
moretrees by VanessaE - (Optional) (thanks R-One) provides Noyella
ethereal by TenPlus1 - (Optional) provides banana related recipes and two fish sandwiches
Your Dad's BBQ Mod (aka bbq) by Grizzly Adam - (Optional) provides special recipes
cucina_vegana by Clyde - (Optional) (thanks friend) provides gourmet recipes
other mods can be found in the mod.conf and provide some minor additional features
This mod has a LGPL v2.1 Licence.

9
mods/sandwiches/TODO.txt Normal file
View file

@ -0,0 +1,9 @@
X picnic basket (little storage for group:food_sandwiches)
cheese support (add bruschetta then?)
"mozzarella", "tomato", "olive_oil",
"garlic_bread", "garlic_bread", "garlic_bread",
X ketchup and maionesse -- what is their purpose ???
im not adding them until they have multiple purposes

View file

@ -0,0 +1,234 @@
local crop_def = {}
local mope = "sandwiches:mortar_pestle"
if minetest.global_exists("farming") and farming.mod == "redo" then
mope = "farming:mortar_pestle"
-- peanut seeds
minetest.register_node("sandwiches:seed_peanut", {
description = "Peanuts Seed",
tiles = {"seed_peanut.png"},
inventory_image = "sandwiches_seed_peanut.png",
wield_image = "sandwiches_seed_peanut.png",
drawtype = "signlike",
groups = {seed = 1, snappy = 3, attached_node = 1, flammable = 4},
paramtype = "light",
paramtype2 = "wallmounted",
walkable = false,
sunlight_propagates = true,
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
},
on_place = function(itemstack, placer, pointed_thing)
return farming.place_seed(itemstack, placer, pointed_thing, "sandwiches:peanut_1")
end,
})
minetest.register_craftitem("sandwiches:peanuts", {
description = "Peanuts",
on_use = minetest.item_eat(1),
inventory_image = "sandwiches_peanut.png", -- not peanutS due to compatibility with the default farming mod
groups = {food = 1, food_peanut = 1, food_peanuts = 1, flammable = 1},
})
minetest.register_alias("sandwiches:seed_peanuts", "sandwiches:seed_peanut")
--minetest.register_alias("sandwiches:peanuts", "sandwiches:peanut")
-- peanut plant definition
crop_def = {
drawtype = "plantlike",
tiles = {"sandwiches_peanut_1.png"},
paramtype = "light",
sunlight_propagates = true,
walkable = false,
buildable_to = true,
drop = "",
selection_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.35, 0.5},
},
},
groups = { snappy = 3, flammable = 4, plant = 1, flora = 1, attached_node = 1,
not_in_creative_inventory = 1, growing = 1 },
sounds = default.node_sound_leaves_defaults()
}
-- stage 1
minetest.register_node("sandwiches:peanut_1", table.copy(crop_def))
-- stage 2
crop_def.tiles = {"sandwiches_peanut_2.png"}
minetest.register_node("sandwiches:peanut_2", table.copy(crop_def))
-- stage 3
crop_def.tiles = {"sandwiches_peanut_3.png"}
crop_def.drop = {
items = {
{items = {'sandwiches:peanuts 2'}, rarity = 1},
{items = {'sandwiches:peanuts'}, rarity = 2},
}
}
minetest.register_node("sandwiches:peanut_3", table.copy(crop_def))
-- stage 4
crop_def.tiles = {"sandwiches_peanut_4.png"}
crop_def.drop = {
items = {
{items = {'sandwiches:peanuts 4'}, rarity = 1},
{items = {'sandwiches:peanuts 2'}, rarity = 2},
{items = {'sandwiches:peanuts'}, rarity = 4},
{items = {'sandwiches:seed_peanut 2'}, rarity = 1},
{items = {'sandwiches:seed_peanut 2'}, rarity = 3},
}
}
minetest.register_node("sandwiches:peanut_4", table.copy(crop_def))
-- stage 5 (spreading stage)
-- as the crop grows to the 5th stage, it has less seeds
-- because they are "used" when spreading
crop_def.tiles = {"sandwiches_peanut_5.png"}
crop_def.drop = {
items = {
{items = {'sandwiches:peanuts 3'}, rarity = 1},
{items = {'sandwiches:peanuts 2'}, rarity = 2},
{items = {'sandwiches:peanuts'}, rarity = 4},
{items = {'sandwiches:seed_peanut'}, rarity = 1},
{items = {'sandwiches:seed_peanut'}, rarity = 2},
}
}
minetest.register_node("sandwiches:peanut_5", table.copy(crop_def))
-- stage 6 (final)
-- the plant is "exhausted" from the spreading
crop_def.tiles = {"sandwiches_peanut_6.png"}
crop_def.groups.growing = 0
crop_def.drop = {
items = {
{items = {'sandwiches:peanuts 3'}, rarity = 1},
{items = {'sandwiches:peanuts 2'}, rarity = 2},
{items = {'sandwiches:peanuts'}, rarity = 4},
{items = {'sandwiches:seed_peanut'}, rarity = 1},
{items = {'sandwiches:seed_peanut'}, rarity = 4},
}
}
minetest.register_node("sandwiches:peanut_6", table.copy(crop_def))
if minetest.get_modpath("bonemeal") then
bonemeal:add_crop({ {"sandwiches:peanut_", 5, "sandwiches:seed_peanut"}, })
end
else -- farming-redo not present -----------------------------------------------
farming.register_plant("sandwiches:peanut", {
description = "Peanut Seed",
harvest_description = "Peanuts",
inventory_image = "sandwiches_seed_peanut.png",
steps = 6,
minlight = 12,
maxlight = default.LIGHT_MAX,
fertility = {"grassland"},
groups = {flammable = 4, attached_node = 1, snappy = 3, plant = 1, flora = 1,},
})
if minetest.registered_items["sandwiches:peanuts"] then
minetest.override_item("sandwiches:peanuts", {
--description = "Peanuts",
on_use = minetest.item_eat(1),
inventory_image = "sandwiches_peanut.png",
groups = {food = 1, food_peanut = 1, food_peanuts = 1, flammable = 1},
})
end
if minetest.get_modpath("bonemeal") then
bonemeal:add_crop({ {"sandwiches:peanut_", 5, "sandwiches:seed_peanut"}, })
end
end -- register different plant nodes
minetest.register_abm({
name = "sandwiches:peanut_spreading_abm",
nodenames = {"sandwiches:peanut_5"},
interval = 5,
chance = 5,
action = function(pos, node)
-- Check 3x3x3 nodes around the currently triggered node
local soil_positions = minetest.find_nodes_in_area_under_air(
vector.add(pos, -1), vector.add(pos, 1),
{"farming:soil_wet", "farming:soil"}
)
if(next(soil_positions) ~= null) then
local found_soil_pos = soil_positions[math.random(#soil_positions)]
found_soil_pos.y = found_soil_pos.y +1
minetest.set_node(found_soil_pos, {name="sandwiches:peanut_1"})
if(math.random(10) > 5) then
minetest.set_node(pos,{name="sandwiches:peanut_6"})
end
end
end
})
-- WILD PEANUTS --
minetest.register_node("sandwiches:wild_peanut", {
description = "Wild Peanuts",
paramtype = "light",
walkable = false,
drop = {
items = {
{items = {'sandwiches:peanuts'}, rarity = 1},
{items = {'sandwiches:peanuts'}, rarity = 2},
{items = {'sandwiches:seed_peanut 2'}, rarity = 1},
{items = {'sandwiches:seed_peanut'}, rarity = 3},
}
},
drawtype = "plantlike",
paramtype2 = "facedir",
tiles = {"sandwiches_peanut_4.png"},
inventory_image = "sandwiches_peanut_4.png",
wield_image = "sandwiches_peanut_4.png",
groups = {snappy = 3, dig_immediate=1, flammable=2, plant=1, flora = 1, attached_node = 1, not_in_creative_inventory = 1},
sounds = default.node_sound_leaves_defaults(),
selection_box = {
type = "fixed",
fixed = { {-0.5, -0.5, -0.5, 0.5, -0.35, 0.5}, },
},
})
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.0003,
spread = {x = 70, y = 70, z = 70},
seed = 2570,
octaves = 3,
persist = 0.6
},
y_min = 0,
y_max = 100,
decoration = "sandwiches:wild_peanut",
})
-- PEANUT BUTTER --
minetest.register_craftitem("sandwiches:peanut_butter", {
description = "Peanut Butter",
on_use = minetest.item_eat(2),
groups = {food = 2, food_peanut_butter = 1, flammable = 1},
inventory_image = "sandwiches_peanut_butter.png"
})
minetest.register_craft({
output = "sandwiches:peanut_butter 5",
type = "shapeless";
recipe = {"sandwiches:peanuts", "sandwiches:peanuts", "sandwiches:peanuts",
"sandwiches:peanuts", "sandwiches:peanuts", "sandwiches:peanuts",
"group:food_mortar_pestle","sandwiches:peanuts", "sandwiches:peanuts",
},
replacements = {{"group:food_mortar_pestle", mope }},
})

View file

@ -0,0 +1,15 @@
default
farming
flowers?
mobs?
mobs_animal?
petz?
animalia?
moretrees?
cacaotree?
ethereal?
bbq?
cucina_vegana?
bonemeal?
xdecor?
potted_farming?

View file

@ -0,0 +1 @@
Add Sandwiches to your game! Choose between meat, vegetarian or sweet sandwiches!

554
mods/sandwiches/init.lua Normal file
View file

@ -0,0 +1,554 @@
-- Mod: sandwiches
sandwiches = {}
sandwiches.version = 1.9 -- complete overhaul
sandwiches.path = minetest.get_modpath("sandwiches")
sandwiches.ingredient_support = {
["true"] = true, -- provided by this mod or its dependencies
["meat"] = false,
["veggie"] = false,
["berry"] = false,
["banana"] = false,
["choco"] = false,
["honey"] = minetest.get_modpath("bees") ~= nil or minetest.get_modpath("mobs_animal") ~= nil or minetest.get_modpath("xdecor") ~= nil,
["fish"] = false,
["mushroom"] = minetest.get_modpath("flowers") ~= nil,
["dairy"] = minetest.get_modpath("mobs_animal") ~= nil,
["herbs"] = minetest.get_modpath("potted_farming") ~= nil,
}
-- for future improvements (need cuisine)
local pot = "sandwiches:pot" --jam and jelly
local skillet = "sandwiches:skillet" -- toasts and tasty veg
local board = "sandwiches:cutting_board" -- ham bacon chicken_strips
local mope = "sandwiches:mortar_pestle" -- tabasco
local mix = "sandwiches:mixing_bowl" --sprinkles
if minetest.global_exists("farming") and farming.mod == "redo" then
pot = "farming:pot"
skillet = "farming:skillet"
board = "farming:cutting_board"
mope = "farming:mortar_pestle"
mix = "farming:mixing_bowl"
sandwiches.ingredient_support.veggie = true
sandwiches.ingredient_support.berry = true
sandwiches.ingredient_support.choco = true
else
dofile(sandwiches.path .. "/luas/tools.lua")
end
-- BREAD --
minetest.register_craftitem("sandwiches:bread_slice", {
description = "Bread slice",
on_use = minetest.item_eat(1),
groups = {food = 1, food_bread_slice = 1, flammable = 1},
inventory_image = "sandwiches_bread_slice.png"
})
minetest.register_craft({
output = "sandwiches:bread_slice 8",
type = "shapeless",
recipe = {"group:food_bread", "group:food_cutting_board", "group:food_bread"},
replacements = { {"group:food_cutting_board", board }, }
})
minetest.register_craftitem("sandwiches:bread_crumbs", {
description = "Bread crumbs",
on_use = minetest.item_eat(1),
groups = {food = 1, food_bread_crumbs = 1, flammable = 1},
inventory_image = "bread_crumbs.png"
})
minetest.register_craft({
output = "sandwiches:bread_crumbs 4",
type = "shapeless",
recipe = {"group:food_bread_slice"},
})
if minetest.get_modpath("animalia") or minetest.get_modpath("mobs") then
if minetest.get_modpath("petz") then
sandwiches.ingredient_support.honey = true
end
dofile(sandwiches.path .. "/luas/meat.lua")
sandwiches.ingredient_support.meat = true
sandwiches.ingredient_support.dairy = true
end
if minetest.get_modpath("cheese") then
sandwiches.ingredient_support.dairy = true
end
if sandwiches.ingredient_support.meat and sandwiches.ingredient_support.dairy and sandwiches.ingredient_support.veggie then
dofile(sandwiches.path .. "/luas/toasts.lua")
end
if minetest.get_modpath("cucina_vegana") then
dofile(sandwiches.path .. "/luas/cucina_vegana.lua")
sandwiches.ingredient_support.banana = true
sandwiches.ingredient_support.veggie = true
sandwiches.ingredient_support.banana = true
sandwiches.ingredient_support.honey = true
end
if minetest.get_modpath("bbq") and sandwiches.ingredient_support.meat then
dofile(sandwiches.path .. "/luas/bbq.lua")
end
if minetest.get_modpath("ethereal") then
dofile(sandwiches.path .. "/luas/fish.lua")
sandwiches.ingredient_support.fish = true
sandwiches.ingredient_support.banana = true
sandwiches.ingredient_support.berry = true
end
if minetest.get_modpath("agriculture") then
dofile(sandwiches.path .. "/luas/agriculture.lua")
sandwiches.ingredient_support.veggie = true
sandwiches.ingredient_support.berry = true
end
if minetest.get_modpath("x_farming") then
dofile(sandwiches.path .. "/luas/xfarming.lua")
sandwiches.ingredient_support.veggie = true
sandwiches.ingredient_support.berry = true
sandwiches.ingredient_support.choco = true
end
if minetest.get_modpath("cacaotree") then
sandwiches.ingredient_support.choco = true
end
if minetest.get_modpath("moretrees") and sandwiches.ingredient_support.choco then
dofile(sandwiches.path .. "/luas/nutella.lua")
end
if minetest.get_modpath("bushes_classic") or sandwiches.ingredient_support.berry then
-- BREAD PUDDING --
-- no jam, no bread pudding
minetest.register_craftitem("sandwiches:sweet_bread_pudding_raw", {
description = "Uncooked sweet bread pudding",
groups = {food_sweet_bread = 1, flammable = 1},
inventory_image = "sweet_bread_pudding_raw.png"
})
minetest.register_craftitem("sandwiches:sweet_bread_pudding", {
description = "Sweet bread pudding",
on_use = minetest.item_eat(10),
groups = {food = 10, food_sweet_bread = 1, flammable = 1},
inventory_image = "sweet_bread_pudding.png"
})
minetest.register_craft({
output = "sandwiches:sweet_bread_pudding_raw",
recipe = {
{"sandwiches:bread_crumbs", "sandwiches:bread_crumbs", "sandwiches:bread_crumbs"},
{"group:food_jam", "group:food_sugar", "group:food_jam"},
{"sandwiches:bread_crumbs", "sandwiches:bread_crumbs", "sandwiches:bread_crumbs"},
}
})
minetest.register_craft({
type = "cooking",
output = "sandwiches:sweet_bread_pudding",
recipe = "sandwiches:sweet_bread_pudding_raw",
cooktime = 15,
})
-- JAM AND JELLY --
local jj = {
["blue"] = { {food_jam = 1, food_blueberry_jam = 1, flammable = 1},},
["rasp"] = { {food_jam = 1, food_raspberry_jam = 1, flammable = 1},},
["straw"] = { {food_jam = 1, food_strawberry_jam = 1, flammable = 1},},
["black"] = { {food_jam = 1, food_blackberry_jam = 1, flammable = 1},},
}
for k, v in pairs(jj) do
minetest.register_craftitem("sandwiches:".. k .."berry_jam", {
description = k:gsub("(%a)(%a+)", function(a, b) return string.upper(a) .. string.lower(b) end).."berry jam",
on_use = minetest.item_eat(2),
groups = v[1],
inventory_image = "sandwiches_".. k .."berry_jam.png"
})
minetest.register_craft({
output = "sandwiches:".. k .."berry_jam 5",
recipe = {
{"group:food_".. k .."berry", "group:food_sugar", "group:food_".. k .."berry"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"group:food_".. k .."berry", "group:food_sugar", "group:food_".. k .."berry"},
},
replacements = {{"group:food_pot", pot }},
})
end
minetest.register_craftitem("sandwiches:grape_jelly", {
description = "Grape jelly",
on_use = minetest.item_eat(2),
groups = {food = 2, food_jam = 1, flammable = 1 },
inventory_image = "sandwiches_grape_jelly.png"
})
minetest.register_craft({
output = "sandwiches:grape_jelly 5",
recipe = {
{"group:food_grapes", "group:food_sugar", "group:food_grapes"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"group:food_grapes", "group:food_sugar", "group:food_grapes"},
},
replacements = {{"group:food_pot", "group:food_pot"}},
})
minetest.register_craftitem("sandwiches:multi_jam", {
description = "Multi jam",
on_use = minetest.item_eat(2),
groups = {food = 2, food_jam = 1, flammable = 1},
inventory_image = "sandwiches_multi_jam.png"
})
minetest.register_craft({
output = "sandwiches:multi_jam 5",
recipe = {
{"group:food_berry", "group:food_sugar", "group:food_berry"},
{"group:food_sugar", "group:food_pot", "group:food_sugar"},
{"group:food_berry", "group:food_sugar", "group:food_berry"},
},
replacements = {{"group:food_pot", "group:food_pot"}},
})
minetest.register_craft({
output = "sandwiches:multi_jam 3",
type = "shapeless";
recipe = { "group:food_jam", "group:food_jam", "group:food_jam", },
})
end -- if merries are registered
-- MEAT -- moved
-- PEANUTS -- moved
-- SAUCE --
minetest.register_node("sandwiches:tabasco", {
description = "Tabasco bottle",
inventory_image = "tabasco.png",
wield_image = "tabasco.png",
drawtype = "plantlike",
paramtype = "light",
is_ground_content = false,
tiles = {"tabasco.png"},
groups = {vessel = 1, dig_immediate = 3, attached_node = 1, food_hot = 1, food_spicy = 1, food_sauce = 1},
sounds = default.node_sound_glass_defaults(),
selection_box = {
type = "fixed",
fixed = {-0.25, -0.5, -0.25, 0.25, 0.3, 0.25}
},
})
minetest.register_craft({
output = "sandwiches:tabasco 3",
type = "shapeless";
recipe = {"group:food_chili_pepper", "group:food_chili_pepper", "group:food_chili_pepper",
"group:food_chili_pepper", "group:food_chili_pepper", "group:food_chili_pepper",
"group:food_mortar_pestle", "vessels:glass_bottle",
},
replacements = {{"group:food_mortar_pestle", mope }}
})
-- TASTY VEGGIES --
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_craftitem("sandwiches:butter_carrots", {
description = "Butter carrots",
on_use = minetest.item_eat(3),
groups = {food = 3, food_tasty_veggie = 1, flammable = 1},
inventory_image = "butter_carrots.png"
})
minetest.register_craft({
output = "sandwiches:butter_carrots 5",
type = "shapeless",
recipe = {
"group:food_carrot", "group:food_carrot",
"group:food_skillet", "group:food_butter", herb,
},
replacements = {{"group:food_skillet", skillet }}
})
minetest.register_craftitem("sandwiches:roasted_potatoes", {
description = "Roasted potatoes",
on_use = minetest.item_eat(4),
groups = {food = 4, food_tasty_veggie = 1, flammable = 1},
inventory_image = "roasted_potatoes.png"
})
minetest.register_craft({
output = "sandwiches:roasted_potatoes 5",
type = "shapeless",
recipe = {
"group:food_potato", "group:food_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_craftitem("sandwiches:caramelized_onion", {
description = "Caramelized onion",
on_use = minetest.item_eat(3),
groups = {food = 3, food_tasty_veggie = 1, flammable = 1},
inventory_image = "caramelized_onion.png"
})
minetest.register_craft({
output = "sandwiches:caramelized_onion 4",
type = "shapeless";
recipe = {"group:food_onion", "group:food_onion", "group:food_sugar", "group:food_skillet"},
replacements = {{"group:food_skillet", skillet }}
})
if sandwiches.ingredient_support.mushroom then
minetest.register_craftitem("sandwiches:trifolat_mushrooms", {
description = "Trifolat Mushrooms",
on_use = minetest.item_eat(3),
groups = {food = 3, food_tasty_veggie = 1, flammable = 1},
inventory_image = "trifolat_mushrooms.png"
})
minetest.register_craft({
output = "sandwiches:trifolat_mushrooms 4",
type = "shapeless",
recipe = {
"group:food_mushroom", "group:food_mushroom", "group:food_garlic_clove",
"group:food_skillet", "group:food_oil", "group:food_parsley",
},
replacements = {{"group:food_skillet", skillet },
{"group:food_oil", "vessels:glass_bottle" },}
})
end
-- --
dofile(sandwiches.path .. "/crops/peanuts.lua")
local sandwiches_recipes = {
--[[ name, is definable, fancy name, hunger,
recipe,
alternative recipe (optional),
replacements (optional),
]]--
["american"] = {{"veggie", "meat", "dairy"}, "American", 8,
{"group:food_cucumber", "group:food_ham", "group:food_cheese"},
{"group:food_cucumber", "group:food_bacon", "group:food_cheese"},
},
["veggie"] = {{"veggie", "veggie", "veggie"}, "Veggie", 8,
{"group:food_cucumber", "group:food_tomato", "group:food_potato"},
{"group:food_carrot", "group:food_onion", "group:food_beetroot"},
},
["classic"] = {{"veggie", "meat", "veggie"}, "Classic", 8,
{"group:food_lettuce", "group:food_ham", "group:food_tomato"},
{"group:food_lettuce", "farming:tofu_cooked", "group:food_tomato" }
},
["blt"] = {{"veggie", "meat", "veggie"}, "BLT", 8,
{"group:food_lettuce", "group:food_bacon" ,"group:food_tomato"},
},
["ham"] = {{"meat", "meat", "meat"}, "Ham", 8,
{"group:food_ham", "group:food_ham", "group:food_ham"},
},
["bacon"] = {{"meat", "meat", "meat"}, "Bacon", 8,
{"group:food_bacon", "group:food_bacon", "group:food_bacon"},
},
["egg_and_bacon"] = {{"meat", "meat", "meat"}, "Egg&Bacon", 10,
{"group:food_bacon", "group:food_egg_fried", "group:food_bacon"},
},
["tasty_meat"] = {{"veggie", "meat", "veggie"}, "Tasty veggie with meat", 10,
{"group:food_tasty_veggie", "group:food_ham", "group:food_tasty_veggie"},
{"group:food_tasty_veggie", "sandwiches:chicken_strips", "group:food_tasty_veggie"}
},
["enhanced_bacon"] = {{"meat", "mushroom", "meat"}, "Enhanced bacon", 10,
{"group:food_bacon", "sandwiches:trifolat_mushrooms", "group:food_bacon"},
},
["tasty_veggie"] = {{"veggie", "veggie", "veggie"}, "Tasty veggie", 10,
{"sandwiches:caramelized_onion", "sandwiches:butter_carrots" ,"sandwiches:roasted_potatoes" },
{"group:food_tasty_veggie", "group:food_tasty_veggie" ,"group:food_tasty_veggie" },
},
["hot_ham"] = {{"meat", "veggie", "meat"}, "Hot ham", 9,
{"group:food_ham", "sandwiches:tabasco", "group:food_ham"},
nil,
{{"sandwiches:tabasco", "vessels:glass_bottle"},},
},
["hot_veggie"] = {{"veggie", "veggie", "veggie"}, "Hot veggie", 9,
{"group:food_tomato", "sandwiches:tabasco", "group:food_potato"},
{"group:food_carrot", "sandwiches:tabasco", "group:food_onion"},
{{"sandwiches:tabasco", "vessels:glass_bottle"},}
},
["italian"] = {{"mushroom", "veggie", "dairy"}, "Italian", 7,
{"flowers:mushroom_brown", "group:food_tomato", "group:food_cheese"},
},
["cheesy"] = {{"dairy", "dairy", "dairy"}, "Cheesy", 8,
{"group:food_cheese","group:food_cheese", "group:food_cheese"},
},
["sweet"] = {{"true", "honey", "true"}, "Sweet", 8, -- apples are from default, a dependant mod
{"default:apple", "group:food_honey", "default:apple"},
nil,
{{"cucina_vegana:dandelion_honey", "vessels:glass_bottle"},
{"petz:honey_bottle", "vessels:glass_bottle"}},
},
["blueberry_jam"] = {{"veggie", "veggie", "veggie"}, "Blueberry jam", 7,
{"sandwiches:blueberry_jam", "sandwiches:blueberry_jam", "sandwiches:blueberry_jam"},
},
["raspberry_jam"] = {{"veggie", "veggie", "veggie"}, "Rasperry jam", 7,
{"sandwiches:raspberry_jam", "sandwiches:raspberry_jam", "sandwiches:raspberry_jam"},
},
["strawberry_jam"] = {{"veggie", "veggie", "veggie"}, "Strawberry jam", 7,
{"sandwiches:strawberry_jam", "sandwiches:strawberry_jam", "sandwiches:strawberry_jam"},
},
["blackberry_jam"] = {{"veggie", "veggie", "veggie"}, "Blackberry jam", 7,
{"sandwiches:blackberry_jam", "sandwiches:blackberry_jam", "sandwiches:blackberry_jam"},
},
["grape_jelly"] = {{"veggie", "veggie", "veggie"}, "Grape jelly", 7,
{"sandwiches:grape_jelly", "sandwiches:grape_jelly", "sandwiches:grape_jelly"},
},
["pb_and_j"] = {{"true", "veggie", "true"}, "PeanutButter & Jelly", 10, -- peanut_butter is provided
{"sandwiches:peanut_butter", "sandwiches:grape_jelly", "sandwiches:peanut_butter"},
},
["jam"] = {{"veggie", "veggie", "veggie"}, "Jam", 7,
{"group:food_jam","group:food_jam", "group:food_jam"},
},
["banana_and_chocolate"] = {{"banana", "choco", "banana"}, "Banana&Chocolate", 8,
{"group:food_banana", "farming:chocolate_dark", "group:food_banana"},
{"group:food_banana", "cacaotree:milk_chocolate", "group:food_banana"},
},
["elvis"] = {{"banana", "true", "meat"}, "Elvis", 9,
{"group:food_banana", "sandwiches:peanut_butter", "group:food_bacon"},
},
["marinated_chicken"] = {{"veggie", "meat", "honey"}, "Marinated chicken", 10,
{"group:food_soy_sauce", "group:food_chicken_strips", "group:food_honey"},
nil,
{{"cucina_vegana:dandelion_honey", "vessels:glass_bottle"},
{"petz:honey_bottle", "vessels:glass_bottle"},
{"farming:soy_sauce", "vessels:glass_bottle"}},
},
}
local function ingredients_registered (ingredient_types)
local s = sandwiches.ingredient_support
local can_register = false
if s[ingredient_types[1]] and s[ingredient_types[2]] and s[ingredient_types[3]] then
can_register = true
end
return can_register
end
for k, v in pairs(sandwiches_recipes) do
if ingredients_registered(v[1]) then
local replace
if v[6] ~= nil then
replace = v[6]
end
minetest.register_craftitem("sandwiches:".. k .."_sandwich", {
description = v[2].." sandwich",
on_use = minetest.item_eat(v[3], "sandwiches:bread_crumbs"),
groups = {food = v[3] ,food_sandwich = 1, flammable = 1},
inventory_image = k .."_sandwich.png",
})
minetest.register_craft({
output = "sandwiches:".. k .."_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
v[4],
{"", "sandwiches:bread_slice", ""},
},
replacements = replace
})
if v[5] ~= nil then
minetest.register_craft({
output = "sandwiches:".. k .."_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
v[5],
{"", "sandwiches:bread_slice", ""},
},
replacements = replace
})
end
end -- registerable
end
-- ALIASES for compatibility, no unknown nodes or items must exist ---
--minetest.register_alias("name", "convert_to")
minetest.register_alias("sandwiches:rasperry_jam_sandwich", "sandwiches:raspberry_jam_sandwich")
minetest.register_alias("sandwiches:tasty_bacon_sandwich", "sandwiches:tasty_meat_sandwich")
minetest.register_alias("sandwiches:tasty_chicken_sandwich", "sandwiches:tasty_meat_sandwich")
minetest.register_alias("sandwiches:tasty_ham_sandwich", "sandwiches:tasty_meat_sandwich")
minetest.register_alias("sandwiches:classic_vegan_sandwich", "sandwiches:classic_sandwich")
-- SPECIAL SANDWICHES --
minetest.register_craftitem("sandwiches:triple_mega_sandwich", {
description = "Triple Mega sandwich",
on_use = minetest.item_eat(20, "sandwiches:bread_crumbs"),
groups = {food = 20, food_big_sandwich = 1, flammable = 1},
inventory_image = "triple_mega_sandwich.png"
})
minetest.register_craft({
output = "sandwiches:triple_mega_sandwich",
recipe = {
{"", "sandwiches:bread_slice", ""},
{"group:food_sandwich", "group:food_sandwich","group:food_sandwich"},
{"", "sandwiches:bread_slice", ""},
}
})
minetest.register_craftitem("sandwiches:sand_sandwich", {
description = "Sand-sandwich",
inventory_image = "sand_sandwich.png",
groups = {food = 5, food_sandwich = 1, flammable = 1},
on_use = function(itemstack, player, pointed_thing)
if player:get_hp() > 2 then
player:set_hp(player:get_hp() - 2)
minetest.chat_send_player(player:get_player_name(), "Ouch!" )
end
return minetest.do_item_eat(5, nil, itemstack, player, pointed_thing)
end,
})
minetest.register_craft({
output = "sandwiches:sand_sandwich",
recipe = {
{"default:sand", "default:sand", "default:sand"},
{"default:cactus", "default:cactus", "default:cactus"},
{"default:sand", "default:sand", "default:sand"},
}
})
if sandwiches.ingredient_support.dairy then
--fairy bread, (butter and sprinkles)
minetest.register_craftitem("sandwiches:sprinkles", {
description = "Sprinkles",
on_use = minetest.item_eat(1),
groups = {food = 1, food_sprinkles = 1, flammable = 1},
inventory_image = "sugar_sprinkles.png"
})
minetest.register_craft({
output = "sandwiches:sprinkles 5",
recipe = {
{"dye:red", "group:food_sugar", "dye:yellow"},
{"group:food_sugar", "group:food_sugar", "group:food_sugar"},
{"dye:blue", "group:food_mixing_bowl", "dye:green"},
},
replacements = {{"group:food_mixing_bowl", mix }}
})
minetest.register_craftitem("sandwiches:fairy_bread", {
description = "Fairy bread",
on_use = minetest.item_eat(6, "sandwiches:bread_crumbs"),
groups = {food = 6, food_fairy_bread = 1, flammable = 1},
inventory_image = "fairy_bread.png"
})
minetest.register_craft({
output = "sandwiches:fairy_bread 2",
recipe = {
{"sandwiches:sprinkles", "sandwiches:sprinkles", "sandwiches:sprinkles"},
{"sandwiches:sprinkles", "sandwiches:sprinkles", "sandwiches:sprinkles"},
{"sandwiches:bread_slice", "group:food_butter", "sandwiches:bread_slice"},
},
})
end -- if dairy is present ( need butter )

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 }},
})

8
mods/sandwiches/mod.conf Normal file
View file

@ -0,0 +1,8 @@
name = sandwiches
depends = default, farming
optional_depends = flowers, mobs, mobs_animal, petz, animalia, moretrees, cacaotree, ethereal, bbq, cucina_vegana, bonemeal, xdecor, potted_farming,
author = Annalysa
version = 1.9
release = 17426
description = Add Sandwiches to your game! Choose between meat, vegetarian, jam and many more!
title = Sandwiches!

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

View file

@ -0,0 +1,18 @@
if minetest.registered_craftitems["ethereal:strawberry"] and minetest.registered_nodes["ethereal:banana"] then
dofile(sandwiches.path .. "/luas/ethereal.lua")
end
if minetest.get_modpath ("moretrees") then
dofile(sandwiches.path .. "/luas/nutella.lua")
end
if minetest.get_modpath ("cucina_vegana") then
dofile(sandwiches.path .. "/luas/cucina_vegana.lua")
minetest.register_alias("sandwiches:peanuts","cucina_vegana:peanut")
minetest.register_alias("sandwiches:peanut_seed","cucina_vegana:peanut_seed")
end
if minetest.get_modpath ("bbq") then
dofile(sandwiches.path .. "/luas/bbq.lua")
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 749 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 807 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 998 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 480 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 697 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 861 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 329 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 943 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 959 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 919 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Some files were not shown because too many files have changed in this diff Show more