food/tarts.lua

53 lines
1.2 KiB
Lua
Raw Normal View History

2012-08-31 15:56:59 +02:00
-- RUBENFOOD MOD
-- A mod written by rubenwardy that adds
-- food to the minetest game
-- ======================================
-- >> rubenfood/tarts.lua
-- adds diary products
-- ======================================
-- [regis-food] Strawberry Tart
-- ======================================
print "RubenFood [Master] - Loading Tarts"
2012-08-31 16:37:02 +02:00
minetest.register_craftitem("food:tart_strawberry", {
2012-08-31 15:56:59 +02:00
description = "Strawberry Tart",
2012-08-31 16:37:02 +02:00
inventory_image = "food_tart_strawberry.png",
2012-08-31 15:56:59 +02:00
on_use = minetest.item_eat(30),
})
2012-08-31 16:37:02 +02:00
minetest.register_craftitem("food:tart_base", {
2012-08-31 15:56:59 +02:00
description = "Tart Base",
2012-08-31 16:37:02 +02:00
inventory_image = "food_tart_base.png",
2012-08-31 15:56:59 +02:00
})
2012-08-31 16:37:02 +02:00
minetest.register_craftitem("food:tart_base_raw", {
2012-08-31 15:56:59 +02:00
description = "Raw Tart Base",
2012-08-31 16:37:02 +02:00
inventory_image = "food_tart_base_raw.png",
2012-08-31 15:56:59 +02:00
})
minetest.register_craft({
type = "cooking",
2012-08-31 16:37:02 +02:00
output = "food:tart_base",
recipe = "food:tart_base_raw",
2012-08-31 15:56:59 +02:00
})
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:tart_strawberry" 1',
2012-08-31 15:56:59 +02:00
recipe = {
2012-08-31 16:37:02 +02:00
{'"food:strawberry"'},{'"food:tart_base"'},
2012-08-31 15:56:59 +02:00
}
})
minetest.register_craft({
2012-08-31 16:37:02 +02:00
output = '"food:tart_base_raw" 1',
2012-08-31 15:56:59 +02:00
recipe = {
2012-08-31 16:37:02 +02:00
{'"food:flour"','"food:milk"','"food:egg"'},
2012-08-31 15:56:59 +02:00
}
})