summaryrefslogtreecommitdiff
path: root/sandwich.lua
blob: 5355215716dc252ed068dead23a77ed47630527e (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
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/sandwich.lua
-- adds sandwich
-- ======================================
-- [regis-food] Cheese
-- [craft] Cheese
-- [regis-item] Butter
-- [craft] Butter
-- ======================================

print "RubenFood [Master] - Loading Sandwiches"

minetest.register_craftitem("food:sw_meat", {
	description = "Venison Sandwich",
	inventory_image = "food_sw_meat.png",
	on_use = minetest.item_eat(10),
})

minetest.register_craftitem("food:burger", {
	description = "Burger",
	inventory_image = "food_burger.png",
	on_use = minetest.item_eat(10),
})

minetest.register_craft({
	output = '"food:sw_meat" 1',
	recipe = {
                 {"",'"food:bread_slice"',""},
		{"food:butter","food:meat",'"food:butter"'},
		{"",'"food:bread_slice"',""},
	}
})