mirror of
https://github.com/rubenwardy/food.git
synced 2024-11-05 09:50:24 +01:00
54 lines
1.2 KiB
Lua
54 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),
|
|
groups={food=3},
|
|
})
|
|
|
|
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"'},
|
|
}
|
|
})
|
|
|
|
|
|
|
|
|
|
|