EinsDreiDreiSieben/mods/asuna/asuna_awards/awards/gourmand.lua
2025-05-04 16:01:41 +02:00

28 lines
No EOL
562 B
Lua

return function(award)
local goals = {
target = 20,
show_locked = false,
}
for item,def in pairs(minetest.registered_items) do
if def.on_use then
table.insert(goals,{
id = item:gsub(":","_"),
description = "Eat " .. def.description,
trigger = {
type = "eat",
target = 1,
item = item,
},
})
end
end
return {
title = "Gourmand",
description = "Eat 20 different food items",
difficulty = 180,
icon = "farming_bread.png",
goals = goals,
}
end