summaryrefslogtreecommitdiff
path: root/snacks/crumbles.lua
diff options
context:
space:
mode:
Diffstat (limited to 'snacks/crumbles.lua')
-rw-r--r--snacks/crumbles.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/snacks/crumbles.lua b/snacks/crumbles.lua
new file mode 100644
index 0000000..f46de48
--- /dev/null
+++ b/snacks/crumbles.lua
@@ -0,0 +1,37 @@
+-- RUBENFOOD MOD
+-- A mod written by rubenwardy that adds
+-- food to the minetest game
+-- =====================================
+-- >> rubenfood/snacks/crumbles.lua
+-- adds crumbles
+-- =====================================
+-- [regis-food] Rhubarb Crumble
+-- =====================================
+
+print "RubenFood [Master] - Loading Crumbles"
+--Crumbles
+minetest.register_craftitem("food:crumble_rhubarb", {
+ description = "Rhubarb Crumble",
+ inventory_image = "food_crumble_rhubarb.png",
+ on_use = minetest.item_eat(30),
+ groups={food=3},
+})
+
+minetest.register_craftitem("food:crumble_rhubarb_raw", {
+ description = "Raw Rhubarb Crumble",
+ inventory_image = "food_crumble_rhubarb_raw.png",
+})
+
+minetest.register_craft({
+ output = '"food:crumble_rhubarb_raw" 1',
+ recipe = {
+ {'"food:sugar"',"",""},
+ {'"food:flour"','"food:rhubarb"','"food:butter"'}
+ }
+})
+
+minetest.register_craft({
+ type = "cooking",
+ output = "food:crumble_rhubarb",
+ recipe = "food:crumble_rhubarb_raw",
+}) \ No newline at end of file