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 = {
|
2018-03-31 10:17:44 +02:00
|
|
|
{"", "group:food_wheat", ""},
|
|
|
|
{"group:food_wheat", "group:food_sugar", "group:food_wheat"},
|
|
|
|
{"", "group:food_wheat", ""},
|
2014-11-09 20:06:28 +01:00
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- 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 = {
|
2018-03-12 19:23:45 +01:00
|
|
|
{'group:food_cocoa'},
|
2014-11-09 20:06:28 +01:00
|
|
|
{'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",
|
2018-03-22 15:25:31 +01:00
|
|
|
on_use = minetest.item_eat(6, "farming:bowl"),
|
2017-09-11 20:03:55 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.after(0, function()
|
|
|
|
|
2018-03-22 15:25:31 +01:00
|
|
|
local fluid = "bucket:bucket_water"
|
|
|
|
local fluid_return = "bucket:bucket_water"
|
|
|
|
|
2017-09-11 20:03:55 +02:00
|
|
|
if minetest.get_modpath("mobs") and mobs and mobs.mod == "redo" then
|
2018-03-22 15:25:31 +01:00
|
|
|
fluid = "group:food_milk"
|
|
|
|
fluid_return = "mobs:bucket_milk"
|
|
|
|
end
|
2017-09-11 20:03:55 +02:00
|
|
|
|
|
|
|
minetest.register_craft({
|
|
|
|
type = "shapeless",
|
|
|
|
output = "farming:porridge",
|
|
|
|
recipe = {
|
2018-03-12 19:23:45 +01:00
|
|
|
"group:food_barley", "group:food_barley", "group:food_wheat",
|
2018-03-22 15:25:31 +01:00
|
|
|
"group:food_wheat", "group:food_bowl", fluid
|
2017-09-12 22:28:17 +02:00
|
|
|
},
|
2018-03-22 15:25:31 +01:00
|
|
|
replacements = {{fluid_return, "bucket:bucket_empty"}}
|
2017-09-11 20:03:55 +02:00
|
|
|
})
|
|
|
|
end)
|