write something there
This commit is contained in:
commit
b4b6c08f4f
8546 changed files with 309825 additions and 0 deletions
28
mods/asuna/asuna_awards/awards/gourmand.lua
Normal file
28
mods/asuna/asuna_awards/awards/gourmand.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue