diff --git a/README.md b/README.md index 697f4a0..0ccaeb8 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ 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 options, onion soup added (thanks edcrypt) +- 1.45 - Dirt and Hoes are more in line with default by using dry/wet/base +options, onion soup added (thanks edcrypt), Added apple pie - 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. - 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block. diff --git a/food.lua b/food.lua index 33106f0..6afe17f 100644 --- a/food.lua +++ b/food.lua @@ -218,3 +218,21 @@ minetest.register_craft({ {"mobs:bucket_milk", "bucket:bucket_empty"} } }) + +-- Apple Pie + +minetest.register_craftitem("farming:apple_pie", { + description = S("Apple Pie"), + inventory_image = "farming_apple_pie.png", + on_use = minetest.item_eat(6), +}) + +minetest.register_craft({ + output = "farming:apple_pie", + type = "shapeless", + recipe = { + "group:food_flour", "group:food_sugar", + "group:food_apple", "group:food_baking_tray" + }, + replacements = {{"group:food_baking_tray", "farming:baking_tray"}} +}) diff --git a/textures/farming_apple_pie.png b/textures/farming_apple_pie.png new file mode 100644 index 0000000..0e4fdf4 Binary files /dev/null and b/textures/farming_apple_pie.png differ