forked from mtcontrib/food
62 lines
1.4 KiB
Lua
62 lines
1.4 KiB
Lua
-- 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
|
|
|
|
else
|
|
minetest.register_craftitem(":farming:cake_mix", {
|
|
description = "Dough",
|
|
inventory_image = "farming_cake_mix.png",
|
|
})
|
|
end
|
|
|
|
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),
|
|
})
|
|
|
|
|
|
|
|
|
|
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),
|
|
})
|
|
|
|
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"}}
|
|
}) |