food/snacks/cakes.lua

98 lines
2.3 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/snacks/cakes.lua
2012-08-30 18:19:00 +02:00
-- adds cakes
-- =====================================
-- [regis-food] Plain Cake
-- [craft] Plain Cake
2012-08-30 18:19:00 +02:00
-- [regis-food] Chocolate Cake
-- [craft] Chocolate Cake
-- [regis-food] Carrot Cake
-- [craft] Chocolate Cake
2012-08-30 18:19:00 +02:00
-- =====================================
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
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
inventory_image = "food_pastry_choco.png",
2012-08-29 20:47:01 +02:00
})
minetest.register_craftitem("food:cakemix_carrot",{
description = "Carrot Cake Mix",
inventory_image = "food_pastry_carrot.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",
cooktime = 10,
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",
cooktime = 10,
})
minetest.register_craft({
type = "cooking",
output = "food:cake_carrot",
recipe = "food:cakemix_carrot",
cooktime = 10,
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
})
minetest.register_craftitem("food:cake_carrot", {
description = "Carrot Cake",
inventory_image = "food_cake_carrot.png",
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 = {
{'"food:flour"','"food:sugar"','"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 = {
{'""','"default:dirt"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
}
})
minetest.register_craft({
output = '"food:cakemix_carrot" 1',
recipe = {
{'""','"food:carrot"','""'}, {'"food:flour"','"food:sugar"','"food:egg"'},
2012-08-30 18:19:00 +02:00
}
2012-08-29 20:47:01 +02:00
})