summaryrefslogtreecommitdiff
path: root/dairy.lua
diff options
context:
space:
mode:
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"'},
+ }
+})
+