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 | |
| parent | 2b520045edbf2405e4e1ed7cead456e315c68a53 (diff) | |
Start of some cooking recipes that use crops.
| -rw-r--r-- | cooking.lua | 72 | ||||
| -rw-r--r-- | init.lua | 2 | ||||
| -rw-r--r-- | textures/crops_bowl_uncooked_vegetable_stew.png | bin | 0 -> 397 bytes | |||
| -rw-r--r-- | textures/crops_bowl_vegetable_stew.png | bin | 0 -> 412 bytes | |||
| -rw-r--r-- | textures/crops_clay_bowl.png | bin | 0 -> 323 bytes | |||
| -rw-r--r-- | textures/crops_unbaked_clay_bowl.png | bin | 0 -> 313 bytes | 
6 files changed, 74 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", "" } +	} +}) @@ -19,4 +19,6 @@ dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/tomato.lua")  dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/potato.lua")  dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/polebean.lua") +dofile(minetest.get_modpath(minetest.get_current_modname()) .. "/cooking.lua") +  minetest.log("action", "[crops] loaded.") diff --git a/textures/crops_bowl_uncooked_vegetable_stew.png b/textures/crops_bowl_uncooked_vegetable_stew.pngBinary files differ new file mode 100644 index 0000000..b3d4ae0 --- /dev/null +++ b/textures/crops_bowl_uncooked_vegetable_stew.png diff --git a/textures/crops_bowl_vegetable_stew.png b/textures/crops_bowl_vegetable_stew.pngBinary files differ new file mode 100644 index 0000000..520836e --- /dev/null +++ b/textures/crops_bowl_vegetable_stew.png diff --git a/textures/crops_clay_bowl.png b/textures/crops_clay_bowl.pngBinary files differ new file mode 100644 index 0000000..ed350b4 --- /dev/null +++ b/textures/crops_clay_bowl.png diff --git a/textures/crops_unbaked_clay_bowl.png b/textures/crops_unbaked_clay_bowl.pngBinary files differ new file mode 100644 index 0000000..f3419f3 --- /dev/null +++ b/textures/crops_unbaked_clay_bowl.png | 
