diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-23 21:18:10 -0700 |
---|---|---|
committer | Auke Kok <auke-jan.h.kok@intel.com> | 2015-04-23 21:18:10 -0700 |
commit | 9e2f05283caa9223af6c069715fe8eeb36f0c496 (patch) | |
tree | 9dde5c682168cee343ed72c19484070014a477f2 /cooking.lua | |
parent | 2b520045edbf2405e4e1ed7cead456e315c68a53 (diff) |
Start of some cooking recipes that use crops.
Diffstat (limited to 'cooking.lua')
-rw-r--r-- | cooking.lua | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/cooking.lua b/cooking.lua new file mode 100644 index 0000000..e9859b0 --- /dev/null +++ b/cooking.lua @@ -0,0 +1,72 @@ + +--[[ + +Copyright (C) 2015 - Auke Kok <sofar@foo-projects.org> + +"crops" 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. + +--]] + +-- +-- cooking recipes that don't go directly with any of the +-- crops in this mod - either these combine them in new +-- ways or use other items +-- + +minetest.register_craftitem("crops:unbaked_clay_bowl", { + description = "Unbaked clay bowl", + inventory_image = "crops_unbaked_clay_bowl.png", +}) + +minetest.register_craft({ + output = "crops:unbaked_clay_bowl", + recipe = { + { "", "", "" }, + { "default:clay_lump", "", "default:clay_lump" }, + { "", "default:clay_lump", "" } + } +}) + +minetest.register_craftitem("crops:clay_bowl", { + description = "Clay bowl", + inventory_image = "crops_clay_bowl.png", + groups = { food_bowl=1 } +}) + +minetest.register_craft({ + type = "cooking", + output = "crops:clay_bowl", + recipe = "crops:unbaked_clay_bowl" +}) + +minetest.register_craftitem("crops:vegetable_stew", { + description = "Bowl of vegetable stew", + inventory_image = "crops_bowl_vegetable_stew.png", + groups = { eatable=1 }, + on_use = minetest.item_eat(8, "crops:clay_bowl"), +}) + +minetest.register_craft({ + type = "cooking", + output = "crops:vegetable_stew", + recipe = "crops:uncooked_vegetable_stew" +}) + +minetest.register_craftitem("crops:uncooked_vegetable_stew", { + description = "Bowl of uncooked vegetable stew", + inventory_image = "crops_bowl_uncooked_vegetable_stew.png", + groups = { eatable=1 }, + on_use = minetest.item_eat(2, "crops:clay_bowl") +}) + +minetest.register_craft({ + output = "crops:uncooked_vegetable_stew", + recipe = { + { "", "", "" }, + { "crops:green_bean", "crops:potato", "crops:tomato" }, + { "", "group:food_bowl", "" } + } +}) |