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
|
|
|
|
-- =====================================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- doughs
|
|
|
|
minetest.register_craftitem("rubenfood:dough", {
|
|
|
|
description = "Dough",
|
|
|
|
inventory_image = "farming_cake_mix.png",
|
|
|
|
})
|
|
|
|
|
2012-08-30 21:27:32 +02:00
|
|
|
if add_bread_craft then
|
2012-08-30 18:19:00 +02:00
|
|
|
minetest.register_craft({
|
|
|
|
output = "rubenfood:dough",
|
|
|
|
type = "shapeless",
|
2012-08-30 21:27:32 +02:00
|
|
|
recipe = {"rubenfood:flour","rubenfood:flour", "bucket:bucket_water"},
|
2012-08-30 18:19:00 +02:00
|
|
|
replacements = {{"bucket:bucket_water", "bucket:bucket_empty"}}
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "cooking",
|
|
|
|
output = "rubenfood:bread",
|
|
|
|
recipe = "rubenfood:dough",
|
|
|
|
cooktime = 10
|
|
|
|
})
|
|
|
|
|
2012-08-30 21:27:32 +02:00
|
|
|
end
|
|
|
|
|
2012-08-30 18:19:00 +02:00
|
|
|
minetest.register_craftitem("rubenfood:bread", {
|
|
|
|
description = "Bread",
|
|
|
|
inventory_image = "ruben_bread.png",
|
|
|
|
stack_max = 1,
|
|
|
|
on_use = minetest.item_eat(10)
|
|
|
|
})
|