mirror of
https://github.com/rubenwardy/food.git
synced 2025-03-15 08:40:32 +01:00
69 lines
1.6 KiB
Lua
69 lines
1.6 KiB
Lua
-- RUBENFOOD MOD
|
|
-- A mod written by rubenwardy that adds
|
|
-- food to the minetest game
|
|
-- ======================================
|
|
-- >> rubenfood/food/sandwich.lua
|
|
-- adds sandwich
|
|
-- ======================================
|
|
-- [regis-food] Cheese Sandwich
|
|
-- [craft] Cheese Sandwich
|
|
-- [regis-food] Venison Sandwich
|
|
-- [craft] Venison Sandwich
|
|
-- [regis-food] Burger
|
|
-- [craft] Burger
|
|
-- ======================================
|
|
|
|
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),
|
|
groups={food=2},
|
|
})
|
|
|
|
minetest.register_craftitem("food:sw_cheese", {
|
|
description = "Cheese Sandwich",
|
|
inventory_image = "food_sw_cheese.png",
|
|
on_use = minetest.item_eat(8),
|
|
groups={food=2},
|
|
})
|
|
|
|
minetest.register_craftitem("food:burger", {
|
|
description = "Burger",
|
|
inventory_image = "food_burger.png",
|
|
on_use = minetest.item_eat(10),
|
|
groups={food=2},
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
output = '"food:sw_meat" 1',
|
|
recipe = {
|
|
{"",'"food:bread_slice"',""},
|
|
{"food:butter","food:meat",'"food:butter"'},
|
|
{"",'"food:bread_slice"',""},
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = '"food:sw_cheese" 1',
|
|
recipe = {
|
|
{"",'"food:bread_slice"',""},
|
|
{"food:butter","food:cheese",'"food:butter"'},
|
|
{"",'"food:bread_slice"',""},
|
|
}
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
output = '"food:burger" 1',
|
|
recipe = {
|
|
{"",'"food:bun"',""},
|
|
{"food:butter","food:meat",'"food:butter"'},
|
|
{"",'"food:bun"',""},
|
|
}
|
|
})
|