summaryrefslogtreecommitdiff
path: root/baking.lua
blob: bf0bd870a83d2f3bb1e935fe18cbbd60f5b5a987 (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
38
39
40
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/baking.lua
-- adds bread and pies
-- =====================================
-- [regis-food] Bread
-- =====================================



-- doughs
minetest.register_craftitem("rubenfood:dough", {
	description = "Dough",
	inventory_image = "farming_cake_mix.png",
})

minetest.register_craft({
	output = "rubenfood:dough",
	type = "shapeless",
	recipe = {"rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "rubenfood:flour", "bucket:bucket_water"},
	replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
})


--plain bread
minetest.register_craft({
	type = "cooking",
	output = "rubenfood:bread",
	recipe = "rubenfood:dough",
	cooktime = 10
})

minetest.register_craftitem("rubenfood:bread", {
	description = "Bread",
	inventory_image = "ruben_bread.png",
	stack_max = 1,
	on_use = minetest.item_eat(10)
})