1
0
mirror of https://github.com/rubenwardy/food.git synced 2024-11-14 14:20:35 +01:00
food/baking.lua

62 lines
1.4 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/baking.lua
-- adds bread and pies
-- =====================================
-- [regis-food] Bread
-- =====================================
print "RubenFood [Master] - Loading Bread"
-- doughs
if not minetest.get_modpath("farming") then
2012-08-31 19:43:10 +02:00
else
minetest.register_craftitem(":farming:cake_mix", {
description = "Dough",
inventory_image = "farming_cake_mix.png",
2012-08-31 19:43:10 +02:00
})
end
2012-08-31 19:43:10 +02:00
minetest.register_craft({
output = '"food:bread_slice" 10',
recipe = {
{'"food:bread"'},
}
})
minetest.register_craftitem("food:bread_slice", {
description = "Bread Slice",
inventory_image = "food_bread_slice.png",
on_use = minetest.item_eat(2),
})
2012-08-30 18:19:00 +02:00
2012-08-31 16:37:02 +02:00
print "RubenFood [Master] - Loading Buns"
minetest.register_craftitem("food:bun_mix", {
description = "Bun Mix",
inventory_image = "food_bun_mix.png",
})
minetest.register_craftitem("food:bun", {
description = "Bun",
inventory_image = "food_bun.png",
on_use = minetest.item_eat(4),
2012-08-30 18:19:00 +02:00
})
minetest.register_craft({
type = "cooking",
output = "food:bun",
recipe = "food:bun_mix",
})
minetest.register_craft({
output = '"food:bun_mix" 5',
recipe = {
{"food:flour", "food:flour", "bucket:bucket_water"},
},
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
})