summaryrefslogtreecommitdiff
path: root/baking.lua
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2012-08-30 17:43:30 +0100
committerRubenwardy <anjayward@gmail.com>2012-08-30 17:43:30 +0100
commit5b9e97da2d483416f0582a85830ffa027d6b69a9 (patch)
tree2f88042acab6cf5271c4708f607faed65f479520 /baking.lua
parente18011bb43344eb44ada72000414db9782987038 (diff)
Made it into a mod, not a mod pack
Diffstat (limited to 'baking.lua')
-rw-r--r--baking.lua40
1 files changed, 40 insertions, 0 deletions
diff --git a/baking.lua b/baking.lua
new file mode 100644
index 0000000..bf0bd87
--- /dev/null
+++ b/baking.lua
@@ -0,0 +1,40 @@
+-- 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