summaryrefslogtreecommitdiff
path: root/drinks/juice.lua
blob: b6d93ab7a9cb65c18f676cd861f98b8e82b9a668 (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
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- =====================================
-- >> rubenfood/drinks/juice.lua
-- adds juices
-- =====================================
-- [regis-food] Apple Juice
-- [craft] Cactus Juice
-- [regis-food] Cactus Juice
-- [craft] Cactus Juice
-- =====================================

print ("RubenFood [Master] - Loading Juices")

--------------------------Apple Juice--------------------------
minetest.register_craftitem("food:apple_juice", {
	description = "Apple Juice",
	inventory_image = "food_juice_apple.png",
	on_use = minetest.item_eat(2)
})

minetest.register_craft({
	output = '"food:apple_juice" 4',
	recipe = {
		{"","",""},
		{"","default:apple",""},
		{"","food:cup",""},
	}
})





----------------------cactus juice----------------------------
minetest.register_craftitem("food:cactus_juice", {
	description = "Cactuz Juice",
	inventory_image = "food_juice_cactus.png",
	on_use = minetest.item_eat(2),
})

minetest.register_craft({
	output = '"food:cactus_juice" 4',
	recipe = {
		{'""','""','""'},
		{'""','"default:cactus"','""'},
		{'""','"food:cup"','""'},
	}
})