summaryrefslogtreecommitdiff
path: root/snacks/crumbles.lua
blob: f46de48a6b255dfa22fa0e69e0c82101354cf4b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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",
})