diff options
Diffstat (limited to 'dairy.lua')
-rw-r--r-- | dairy.lua | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -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"'},
+ }
+})
+
|