2012-08-30 18:19:00 +02:00
|
|
|
-- RUBENFOOD MOD
|
|
|
|
-- A mod written by rubenwardy that adds
|
|
|
|
-- food to the minetest game
|
|
|
|
-- =====================================
|
2012-09-10 21:04:10 +02:00
|
|
|
-- >> rubenfood/snacks/cakes.lua
|
2012-08-30 18:19:00 +02:00
|
|
|
-- adds cakes
|
|
|
|
-- =====================================
|
|
|
|
-- [regis-food] Plain Cake
|
2012-09-10 21:04:10 +02:00
|
|
|
-- [craft] Plain Cake
|
2012-08-30 18:19:00 +02:00
|
|
|
-- [regis-food] Chocolate Cake
|
2012-09-10 21:04:10 +02:00
|
|
|
-- [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
|
|
|
})
|
|
|
|
|
2012-09-01 19:07:06 +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",
|
2012-09-01 19:07:06 +02:00
|
|
|
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",
|
2012-09-01 19:07:06 +02:00
|
|
|
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-10-02 18:38:10 +02:00
|
|
|
groups={food=3},
|
2012-08-29 20:47:01 +02:00
|
|
|
})
|
|
|
|
|
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-10-02 18:38:10 +02:00
|
|
|
groups={food=3},
|
2012-08-30 18:19:00 +02:00
|
|
|
})
|
|
|
|
|
2012-09-01 19:07:06 +02:00
|
|
|
minetest.register_craftitem("food:cake_carrot", {
|
|
|
|
description = "Carrot Cake",
|
|
|
|
inventory_image = "food_cake_carrot.png",
|
|
|
|
on_use = minetest.item_eat(40),
|
2012-10-02 18:38:10 +02:00
|
|
|
groups={food=3},
|
2012-09-01 19:07:06 +02:00
|
|
|
})
|
|
|
|
|
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-09-01 19:07:06 +02:00
|
|
|
{'"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 = {
|
2012-09-01 19:07:06 +02:00
|
|
|
{'""','"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
|
|
|
})
|