write something there
This commit is contained in:
commit
b4b6c08f4f
8546 changed files with 309825 additions and 0 deletions
29
mods/asuna/asuna_awards/awards/joys_of_spring.lua
Normal file
29
mods/asuna/asuna_awards/awards/joys_of_spring.lua
Normal file
|
@ -0,0 +1,29 @@
|
|||
return function(award)
|
||||
local goals = {
|
||||
target = 50,
|
||||
show_locked = false,
|
||||
}
|
||||
|
||||
for node,def in pairs(minetest.registered_nodes) do
|
||||
local groups = def.groups
|
||||
if groups and groups.flower and groups.flower > 0 then
|
||||
table.insert(goals,{
|
||||
id = node:gsub(":","_"),
|
||||
description = "Pick " .. def.description,
|
||||
trigger = {
|
||||
type = "dig",
|
||||
target = 1,
|
||||
node = node,
|
||||
},
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
return {
|
||||
title = "Joys of Spring",
|
||||
description = "Pick " .. goals.target .. " different types of flower",
|
||||
difficulty = 140,
|
||||
icon = "flowers_rose.png",
|
||||
goals = goals,
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue