1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-11-18 08:00:38 +01:00
food/cakes.lua

94 lines
2.2 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
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
})