food/cakes.lua

69 lines
1.7 KiB
Lua
Raw Normal View History

2012-08-30 18:19:00 +02:00
-- 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
-- =====================================
2012-08-30 18:04:36 +02:00
print("RubenFood [Master] - Loading Cakes")
2012-08-29 20:47:01 +02:00
--------------------------Cakes-------------------------
minetest.register_craftitem("rubenfood:cakemix_plain",{
2012-08-29 20:47:01 +02:00
description = "Cake Mix",
tiles = {"ruben_pastry.png"},
inventory_image = "ruben_pastry.png",
})
minetest.register_craftitem("rubenfood:cakemix_choco",{
2012-08-29 20:47:01 +02:00
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",
})
2012-08-31 15:56:59 +02:00
minetest.register_craftitem("rubenfood:cake", {
2012-08-29 20:47:01 +02:00
description = "Cake",
inventory_image = "ruben_cake.png",
on_use = minetest.item_eat(30),
})
2012-08-31 15:56:59 +02:00
minetest.register_craftitem("rubenfood:cake_chocolate", {
2012-08-29 20:47:01 +02:00
description = "Chocolate Cake",
inventory_image = "ruben_cake_choco.png",
on_use = minetest.item_eat(40),
2012-08-30 18:19:00 +02:00
})
----------------------------- Cake Pastry ----------------------------
minetest.register_craft({
output = '"rubenfood:cakemix_plain" 1',
recipe = {
2012-08-31 15:56:59 +02:00
{'"rubenfood:flour"',"",'"rubenfood:egg"'},
2012-08-30 18:19:00 +02:00
}
})
minetest.register_craft({
output = '"rubenfood:cakemix_choco" 1',
recipe = {
2012-08-31 15:56:59 +02:00
{'""','"default:dirt"','""'}, {'"rubenfood:flour"',"",'"rubenfood:egg"'},
2012-08-30 18:19:00 +02:00
}
2012-08-29 20:47:01 +02:00
})