2016-05-30 13:30:00 +02:00
|
|
|
|
|
|
|
local S = farming.intllib
|
|
|
|
|
2014-11-09 20:06:28 +01:00
|
|
|
-- Donut (thanks to Bockwurst for making the donut images)
|
|
|
|
minetest.register_craftitem("farming:donut", {
|
2016-05-30 13:30:00 +02:00
|
|
|
description = S("Donut"),
|
2014-11-09 20:06:28 +01:00
|
|
|
inventory_image = "farming_donut.png",
|
|
|
|
on_use = minetest.item_eat(4),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "farming:donut 3",
|
|
|
|
recipe = {
|
|
|
|
{'', 'farming:wheat', ''},
|
|
|
|
{'farming:wheat', '', 'farming:wheat'},
|
|
|
|
{'', 'farming:wheat', ''},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Chocolate Donut
|
|
|
|
minetest.register_craftitem("farming:donut_chocolate", {
|
2016-05-30 13:30:00 +02:00
|
|
|
description = S("Chocolate Donut"),
|
2014-11-09 20:06:28 +01:00
|
|
|
inventory_image = "farming_donut_chocolate.png",
|
|
|
|
on_use = minetest.item_eat(6),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "farming:donut_chocolate",
|
|
|
|
recipe = {
|
|
|
|
{'farming:cocoa_beans'},
|
|
|
|
{'farming:donut'},
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Apple Donut
|
|
|
|
minetest.register_craftitem("farming:donut_apple", {
|
2016-05-30 13:30:00 +02:00
|
|
|
description = S("Apple Donut"),
|
2014-11-09 20:06:28 +01:00
|
|
|
inventory_image = "farming_donut_apple.png",
|
|
|
|
on_use = minetest.item_eat(6),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "farming:donut_apple",
|
|
|
|
recipe = {
|
|
|
|
{'default:apple'},
|
|
|
|
{'farming:donut'},
|
|
|
|
}
|
2016-05-30 13:30:00 +02:00
|
|
|
})
|
2017-09-11 20:03:55 +02:00
|
|
|
|
|
|
|
-- Porridge Oats
|
|
|
|
minetest.register_craftitem("farming:porridge", {
|
|
|
|
description = S("Porridge"),
|
|
|
|
inventory_image = "farming_porridge.png",
|
|
|
|
on_use = minetest.item_eat(6),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.after(0, function()
|
|
|
|
|
|
|
|
if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then
|
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "farming:porridge",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = {
|
|
|
|
"farming:barley", "farming:barley", "farming:wheat",
|
|
|
|
"farming:wheat", "mobs:bucket_milk"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
else
|
|
|
|
minetest.register_craft({
|
|
|
|
output = "farming:porridge",
|
|
|
|
type = "shapeless",
|
|
|
|
recipe = {
|
|
|
|
"farming:barley", "farming:barley", "farming:wheat",
|
|
|
|
"farming:wheat", "bucket:bucket_water"
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end)
|