summaryrefslogtreecommitdiff
path: root/cakes.lua
blob: 8b1b90d6cc3f68da6e1e03ec7e04c633697d8b9b (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/cakes.lua
-- adds cakes
-- =====================================
-- [regis-food] Plain Cake
-- [regis-food] Chocolate Cake
-- =====================================
print("RubenFood [Master] - Loading Cakes")

--------------------------Cakes-------------------------
minetest.register_craftitem(":rubenfood:cakemix_plain",{
	description = "Cake Mix",
	tiles = {"ruben_pastry.png"},
	inventory_image = "ruben_pastry.png",
})

minetest.register_craftitem(":rubenfood:cakemix_choco",{
	description = "Chocolate Cake Mix",
	tiles = {"ruben_pastry_choco.png"},
	inventory_image = "ruben_pastry_choco.png",
})

minetest.register_craft({
	type = "cooking",
	output = "rubenfood:cake",
	recipe = "rubenfood:cakemix_plain",
})

minetest.register_craft({
	type = "cooking",
	output = "rubenfood:cake_chocolate",
	recipe = "rubenfood:cakemix_choco",
})

minetest.register_node(":rubenfood:cake", {
	description = "Cake",
	drawtype = "plantlike",
	visual_scale = 1.0,
	tiles = {"ruben_cake.png"},
	inventory_image = "ruben_cake.png",
	paramtype = "light",
	sunlight_propagates = true,
	walkable = false,
	groups = {fleshy=3,dig_immediate=3,flammable=2},
	on_use = minetest.item_eat(30),
	sounds = default.node_sound_defaults(),
})

minetest.register_node(":rubenfood:cake_chocolate", {
	description = "Chocolate Cake",
	drawtype = "plantlike",
	visual_scale = 1.0,
	tiles = {"ruben_cake_choco.png"},
	inventory_image = "ruben_cake_choco.png",
	paramtype = "light",
	sunlight_propagates = true,
	walkable = false,
	groups = {fleshy=3,dig_immediate=3,flammable=2},
	on_use = minetest.item_eat(40),
	sounds = default.node_sound_defaults(),
})






----------------------------- Cake Pastry ----------------------------

minetest.register_craft({
	output = '"rubenfood:cakemix_plain" 1',
	recipe = {
		{'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
	}
})

minetest.register_craft({
	output = '"rubenfood:cakemix_choco" 1',
	recipe = {
	{'""','"default:dirt"','""'},	{'"rubenfood:flour"','"rubenfood:milk"','"rubenfood:egg"'},
	}
})