Rezepte angepasst, Nahrungspunkte hinzugefügt
This commit is contained in:
parent
9dbc0b2ba1
commit
df69eb154c
8 changed files with 33 additions and 33 deletions
|
@ -30,7 +30,7 @@ if minetest.global_exists("farming") and farming.mod == "redo" then
|
|||
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},
|
||||
groups = {food = 1, food_peanut = 1, food_peanuts = 1, flammable = 1, eatable = 1},
|
||||
})
|
||||
|
||||
minetest.register_alias("sandwiches:seed_peanuts", "sandwiches:seed_peanut")
|
||||
|
@ -138,7 +138,7 @@ else -- farming-redo not present -----------------------------------------------
|
|||
--description = "Peanuts",
|
||||
on_use = minetest.item_eat(1),
|
||||
inventory_image = "sandwiches_peanut.png",
|
||||
groups = {food = 1, food_peanut = 1, food_peanuts = 1, flammable = 1},
|
||||
groups = {food = 1, food_peanut = 1, food_peanuts = 1, flammable = 1, eatable = 1},
|
||||
})
|
||||
end
|
||||
|
||||
|
@ -219,7 +219,7 @@ minetest.register_decoration({
|
|||
minetest.register_craftitem("sandwiches:peanut_butter", {
|
||||
description = "Peanut Butter",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {food = 2, food_peanut_butter = 1, flammable = 1, food_butter = 1},
|
||||
groups = {food = 2, food_peanut_butter = 1, flammable = 1, food_butter = 1, eatable = 2},
|
||||
inventory_image = "sandwiches_peanut_butter.png"
|
||||
})
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ end
|
|||
minetest.register_craftitem("sandwiches:bread_slice", {
|
||||
description = "Bread slice",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food = 1, food_bread_slice = 1, flammable = 1},
|
||||
groups = {food = 1, food_bread_slice = 1, flammable = 1, eatable = 1},
|
||||
inventory_image = "sandwiches_bread_slice.png"
|
||||
})
|
||||
|
||||
|
@ -58,7 +58,7 @@ minetest.register_craft({
|
|||
minetest.register_craftitem("sandwiches:bread_crumbs", {
|
||||
description = "Bread crumbs",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food = 1, food_bread_crumbs = 1, flammable = 1},
|
||||
groups = {food = 1, food_bread_crumbs = 1, flammable = 1, eatable = 1},
|
||||
inventory_image = "bread_crumbs.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -127,7 +127,7 @@ if minetest.get_modpath("bushes_classic") or sandwiches.ingredient_support.berry
|
|||
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},
|
||||
groups = {food = 10, food_sweet_bread = 1, flammable = 1, eatable = 10},
|
||||
inventory_image = "sweet_bread_pudding.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -147,10 +147,10 @@ if minetest.get_modpath("bushes_classic") or sandwiches.ingredient_support.berry
|
|||
|
||||
-- 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},},
|
||||
["blue"] = { {food_jam = 1, food_blueberry_jam = 1, flammable = 1, eatable = 2},},
|
||||
["rasp"] = { {food_jam = 1, food_raspberry_jam = 1, flammable = 1, eatable = 2},},
|
||||
["straw"] = { {food_jam = 1, food_strawberry_jam = 1, flammable = 1, eatable = 2},},
|
||||
["black"] = { {food_jam = 1, food_blackberry_jam = 1, flammable = 1, eatable = 2},},
|
||||
}
|
||||
for k, v in pairs(jj) do
|
||||
minetest.register_craftitem("sandwiches:".. k .."berry_jam", {
|
||||
|
@ -174,7 +174,7 @@ if minetest.get_modpath("bushes_classic") or sandwiches.ingredient_support.berry
|
|||
minetest.register_craftitem("sandwiches:grape_jelly", {
|
||||
description = "Grape jelly",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {food = 2, food_jam = 1, flammable = 1 },
|
||||
groups = {food = 2, food_jam = 1, flammable = 1 , eatable = 2},
|
||||
inventory_image = "sandwiches_grape_jelly.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -190,7 +190,7 @@ if minetest.get_modpath("bushes_classic") or sandwiches.ingredient_support.berry
|
|||
minetest.register_craftitem("sandwiches:multi_jam", {
|
||||
description = "Multi jam",
|
||||
on_use = minetest.item_eat(2),
|
||||
groups = {food = 2, food_jam = 1, flammable = 1},
|
||||
groups = {food = 2, food_jam = 1, flammable = 1, eatable = 2},
|
||||
inventory_image = "sandwiches_multi_jam.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -252,7 +252,7 @@ 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},
|
||||
groups = {food = 3, food_tasty_veggie = 1, flammable = 1, eatable = 3},
|
||||
inventory_image = "butter_carrots.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -268,7 +268,7 @@ end
|
|||
minetest.register_craftitem("sandwiches:roasted_potatoes", {
|
||||
description = "Roasted potatoes",
|
||||
on_use = minetest.item_eat(4),
|
||||
groups = {food = 4, food_tasty_veggie = 1, flammable = 1},
|
||||
groups = {food = 4, food_tasty_veggie = 1, flammable = 1, eatable = 4},
|
||||
inventory_image = "roasted_potatoes.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -287,7 +287,7 @@ end
|
|||
minetest.register_craftitem("sandwiches:caramelized_onion", {
|
||||
description = "Caramelized onion",
|
||||
on_use = minetest.item_eat(3),
|
||||
groups = {food = 3, food_tasty_veggie = 1, flammable = 1},
|
||||
groups = {food = 3, food_tasty_veggie = 1, flammable = 1, eatable = 3},
|
||||
inventory_image = "caramelized_onion.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -301,7 +301,7 @@ 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},
|
||||
groups = {food = 3, food_tasty_veggie = 1, flammable = 1, eatable = 3},
|
||||
inventory_image = "trifolat_mushrooms.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -441,7 +441,7 @@ for k, v in pairs(sandwiches_recipes) do
|
|||
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},
|
||||
groups = {food = v[3] ,food_sandwich = 1, flammable = 1, eatable = v[3]},
|
||||
inventory_image = k .."_sandwich.png",
|
||||
})
|
||||
|
||||
|
@ -485,7 +485,7 @@ minetest.register_alias("sandwiches:classic_vegan_sandwich", "sandwiches:classic
|
|||
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},
|
||||
groups = {food = 20, food_big_sandwich = 1, flammable = 1, eatable = 20},
|
||||
inventory_image = "triple_mega_sandwich.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -500,7 +500,7 @@ minetest.register_craft({
|
|||
minetest.register_craftitem("sandwiches:sand_sandwich", {
|
||||
description = "Sand-sandwich",
|
||||
inventory_image = "sand_sandwich.png",
|
||||
groups = {food = 5, food_sandwich = 1, flammable = 1},
|
||||
groups = {food = 5, food_sandwich = 1, flammable = 1, eatable = 5},
|
||||
on_use = function(itemstack, player, pointed_thing)
|
||||
if player:get_hp() > 2 then
|
||||
player:set_hp(player:get_hp() - 2)
|
||||
|
@ -523,7 +523,7 @@ if sandwiches.ingredient_support.dairy then
|
|||
minetest.register_craftitem("sandwiches:sprinkles", {
|
||||
description = "Sprinkles",
|
||||
on_use = minetest.item_eat(1),
|
||||
groups = {food = 1, food_sprinkles = 1, flammable = 1},
|
||||
groups = {food = 1, food_sprinkles = 1, flammable = 1, eatable = 1},
|
||||
inventory_image = "sugar_sprinkles.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
@ -539,7 +539,7 @@ minetest.register_craft({
|
|||
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},
|
||||
groups = {food = 6, food_fairy_bread = 1, flammable = 1, eatable = 6},
|
||||
inventory_image = "fairy_bread.png"
|
||||
})
|
||||
minetest.register_craft({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue