food/snacks/tarts.lua
2012-09-10 20:04:10 +01:00

53 lines
1.2 KiB
Lua

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