summaryrefslogtreecommitdiff
path: root/baking.lua
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2012-08-31 14:09:41 +0100
committerRubenwardy <anjayward@gmail.com>2012-08-31 14:09:41 +0100
commitba2dbaf4665a88d4c58b73a79bd774ed423fe318 (patch)
tree54b8792c8e2bb4130c1f3413e7bda666ffd62c22 /baking.lua
parent39b6184a874bbb69af88a2013eb7596770dc8bb9 (diff)
Did support.lua - dynamic external mod support
Diffstat (limited to 'baking.lua')
-rw-r--r--baking.lua41
1 files changed, 41 insertions, 0 deletions
diff --git a/baking.lua b/baking.lua
new file mode 100644
index 0000000..98da7ad
--- /dev/null
+++ b/baking.lua
@@ -0,0 +1,41 @@
+-- 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",
+})
+
+if add_bread_craft then
+minetest.register_craft({
+ output = "rubenfood:dough",
+ type = "shapeless",
+ recipe = {"rubenfood:flour","rubenfood:flour", "bucket:bucket_water"},
+ replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "rubenfood:bread",
+ recipe = "rubenfood:dough",
+ cooktime = 10
+})
+
+end
+
+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