diff options
author | Rubenwardy <anjayward@gmail.com> | 2012-08-30 17:19:00 +0100 |
---|---|---|
committer | Rubenwardy <anjayward@gmail.com> | 2012-08-30 17:19:00 +0100 |
commit | e18011bb43344eb44ada72000414db9782987038 (patch) | |
tree | 1187d5044be7011fbe84153f210a1458032b18cf /rubenfood/baking.lua | |
parent | 51ebdbe5c609f37556c0b3a692f74d042740b861 (diff) |
Added Comments and Bread
Diffstat (limited to 'rubenfood/baking.lua')
-rw-r--r-- | rubenfood/baking.lua | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/rubenfood/baking.lua b/rubenfood/baking.lua index a83cd2b..bf0bd87 100644 --- a/rubenfood/baking.lua +++ b/rubenfood/baking.lua @@ -1 +1,40 @@ ---This file loads baked stuff
\ No newline at end of file +-- RUBENFOOD MOD
+-- A mod written by rubenwardy that adds
+-- food to the minetest game
+-- =====================================
+-- >> rubenfood/baking.lua
+-- adds bread and pies
+-- =====================================
+-- [regis-food] Bread
+-- =====================================
+
+
+
+-- doughs
+minetest.register_craftitem("rubenfood:dough", {
+ description = "Dough",
+ inventory_image = "farming_cake_mix.png",
+})
+
+minetest.register_craft({
+ output = "rubenfood:dough",
+ type = "shapeless",
+ recipe = {"rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "bucket:bucket_water"},
+ replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
+})
+
+
+--plain bread
+minetest.register_craft({
+ type = "cooking",
+ output = "rubenfood:bread",
+ recipe = "rubenfood:dough",
+ cooktime = 10
+})
+
+minetest.register_craftitem("rubenfood:bread", {
+ description = "Bread",
+ inventory_image = "ruben_bread.png",
+ stack_max = 1,
+ on_use = minetest.item_eat(10)
+})
\ No newline at end of file |