food/cakes.lua

69 lines
1.6 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-------------------------
2012-08-31 16:37:02 +02:00
minetest.register_craftitem("food:cakemix_plain",{
2012-08-29 20:47:01 +02:00
description = "Cake Mix",
2012-08-31 16:37:02 +02:00
tiles = {"food_pastry.png"},
inventory_image = "food_pastry.png",
2012-08-29 20:47:01 +02:00
})
2012-08-31 16:37:02 +02:00
minetest.register_craftitem("food:cakemix_choco",{
2012-08-29 20:47:01 +02:00
description = "Chocolate Cake Mix",
2012-08-31 16:37:02 +02:00
tiles = {"food_pastry_choco.png"},
inventory_image = "food_pastry_choco.png",
2012-08-29 20:47:01 +02:00
})
minetest.register_craft({
type = "cooking",
2012-08-31 16:37:02 +02:00
output = "food:cake",
recipe = "food:cakemix_plain",
2012-08-29 20:47:01 +02:00
})
minetest.register_craft({
type = "cooking",
2012-08-31 16:37:02 +02:00
output = "food:cake_chocolate",
recipe = "food:cakemix_choco",
2012-08-29 20:47:01 +02:00
})
2012-08-31 16:37:02 +02:00
minetest.register_craftitem("food:cake", {
2012-08-29 20:47:01 +02:00
description = "Cake",
2012-08-31 16:37:02 +02:00
inventory_image = "food_cake.png",
2012-08-29 20:47:01 +02:00
on_use = minetest.item_eat(30),
})
2012-08-31 16:37:02 +02:00
minetest.register_craftitem("food:cake_chocolate", {
2012-08-29 20:47:01 +02:00
description = "Chocolate Cake",
2012-08-31 16:37:02 +02:00
inventory_image = "food_cake_choco.png",
2012-08-29 20:47:01 +02:00
on_use = minetest.item_eat(40),
2012-08-30 18:19:00 +02:00
})
----------------------------- Cake Pastry ----------------------------
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:cakemix_plain" 1',
2012-08-30 18:19:00 +02:00
recipe = {
2012-08-31 16:37:02 +02:00
{'"food:flour"',"",'"food:egg"'},
2012-08-30 18:19:00 +02:00
}
})
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:cakemix_choco" 1',
2012-08-30 18:19:00 +02:00
recipe = {
2012-08-31 16:37:02 +02:00
{'""','"default:dirt"','""'}, {'"food:flour"',"",'"food:egg"'},
2012-08-30 18:19:00 +02:00
}
2012-08-29 20:47:01 +02:00
})