diff --git a/README.md b/README.md index 9c11965..92c07b5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t ### Changelog: -- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice +- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base, added cactus juice, added pasta and spaghetti options, onion soup added (thanks edcrypt), Added apple pie, added wild cotton to savanna - 1.44 - Added 'farming_stage_length' in mod settings for speed of crop growth, also thanks to TheDarkTiger for translation updates - 1.43 - Scythe works on use instead of right-click, added seed=1 groups to actual seeds and seed=2 group for plantable food items. diff --git a/food.lua b/food.lua index cc656a0..5d65013 100644 --- a/food.lua +++ b/food.lua @@ -242,7 +242,6 @@ minetest.register_craft({ minetest.register_craftitem("farming:cactus_juice", { description = S("Cactus Juice"), inventory_image = "farming_cactus_juice.png", --- on_use = minetest.item_eat(2, "vessels:drinking_glass"), groups = {vessel = 1}, on_use = function(itemstack, user, pointed_thing) if user then @@ -268,3 +267,54 @@ minetest.register_craft({ {"group:food_juicer", "farming:juicer"}, }, }) + +-- Pasta + +minetest.register_craftitem("farming:pasta", { + description = S("Pasta"), + inventory_image = "farming_pasta.png", + groups = {food_pasta = 1}, +}) + +if minetest.get_modpath("mobs_animal") or minetest.get_modpath("xanadu")then +minetest.register_craft({ + output = "farming:pasta", + type = "shapeless", + recipe = { + "group:food_flour", "group:food_mixing_bowl", + "group:food_butter" + }, + replacements = {{"group:food_mixing_bowl", "farming:mixing_bowl"}} +}) +else +minetest.register_craft({ + output = "farming:pasta", + type = "shapeless", + recipe = { + "group:food_flour", "group:food_mixing_bowl", + "group:food_oil" + }, + replacements = { + {"group:food_mixing_bowl", "farming:mixing_bowl"}, + {"group:food_oil", "vessels:glass_bottle"}, + } +}) +end + +-- Spaghetti + +minetest.register_craftitem("farming:spaghetti", { + description = S("Spaghetti"), + inventory_image = "farming_spaghetti.png", + on_use = minetest.item_eat(8), +}) + +minetest.register_craft({ + output = "farming:spaghetti", + type = "shapeless", + recipe = { + "group:food_pasta", "group:food_saucepan", + "group:food_tomato", "group:food_garlic_clove", "group:food_garlic_clove" + }, + replacements = {{"group:food_saucepan", "farming:saucepan"}} +}) diff --git a/textures/farming_pasta.png b/textures/farming_pasta.png new file mode 100644 index 0000000..af6a48c Binary files /dev/null and b/textures/farming_pasta.png differ diff --git a/textures/farming_spaghetti.png b/textures/farming_spaghetti.png new file mode 100644 index 0000000..a401281 Binary files /dev/null and b/textures/farming_spaghetti.png differ