1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-26 18:50:38 +01:00
server-nalc/minetestforfun_game/mods/farming/donut.lua

49 lines
1.0 KiB
Lua
Raw Normal View History

2016-06-18 11:59:26 +02:00
local S = farming.intllib
2014-10-28 18:01:32 +01:00
-- Donut (thanks to Bockwurst for making the donut images)
minetest.register_craftitem("farming:donut", {
2016-06-18 11:59:26 +02:00
description = S("Donut"),
2014-10-28 18:01:32 +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-06-18 11:59:26 +02:00
description = S("Chocolate Donut"),
2014-10-28 18:01:32 +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-06-18 11:59:26 +02:00
description = S("Apple Donut"),
2014-10-28 18:01:32 +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'},
}
})