summaryrefslogtreecommitdiff
path: root/dairy.lua
diff options
context:
space:
mode:
authorRubenwardy <anjayward@gmail.com>2012-08-31 14:56:59 +0100
committerRubenwardy <anjayward@gmail.com>2012-08-31 14:56:59 +0100
commit6bd71003a2fbd3a1820eb3e37ffb7c5db7b12325 (patch)
tree1cfcb4e5c2396138ead1d803b3113f9d644b2bd3 /dairy.lua
parentba2dbaf4665a88d4c58b73a79bd774ed423fe318 (diff)
Added Textures and Tarts
Diffstat (limited to 'dairy.lua')
-rw-r--r--dairy.lua27
1 files changed, 26 insertions, 1 deletions
diff --git a/dairy.lua b/dairy.lua
index c2ca2dd..7487a62 100644
--- a/dairy.lua
+++ b/dairy.lua
@@ -2,7 +2,7 @@
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
--- >> rubenfood/support.lua
+-- >> rubenfood/diary.lua
-- adds diary products
-- ======================================
-- [regis-food] Cheese
@@ -11,6 +11,31 @@
-- [craft] Butter
-- ======================================
+minetest.register_craftitem("rubenfood:butter", {
+ description = "Butter",
+ inventory_image = "ruben_butter.png",
+})
+
+minetest.register_craftitem("rubenfood:cheese", {
+ description = "Cheese",
+ inventory_image = "ruben_cheese.png",
+ on_use = minetest.item_eat(4),
+})
+
+minetest.register_craft({
+ output = '"rubenfood:butter" 1',
+ recipe = {
+ {'"rubenfood:milk"','"rubenfood:milk"'},
+ }
+})
+
+minetest.register_craft({
+ output = '"rubenfood:cheese" 1',
+ recipe = {
+ {'"rubenfood:butter"','"rubenfood:butter"'},
+ }
+})
+