write something there
This commit is contained in:
commit
b4b6c08f4f
8546 changed files with 309825 additions and 0 deletions
27
mods/asuna/asuna_awards/awards/opalescent.lua
Normal file
27
mods/asuna/asuna_awards/awards/opalescent.lua
Normal file
|
@ -0,0 +1,27 @@
|
|||
return function(award)
|
||||
-- Process all applicable TMS opal
|
||||
local goals = { target = 1 }
|
||||
for _,node in ipairs({
|
||||
"too_many_stones:opal",
|
||||
"too_many_stones:black_opal",
|
||||
"too_many_stones:fire_opal",
|
||||
}) do
|
||||
table.insert(goals,{
|
||||
description = "Mine " .. minetest.registered_nodes[node].description,
|
||||
trigger = {
|
||||
type = "dig",
|
||||
target = 1,
|
||||
node = node,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
-- Add triggers to award
|
||||
return {
|
||||
title = "Opalescent",
|
||||
description = "Mine any opal",
|
||||
difficulty = 205,
|
||||
icon = "[inventorycube{[combine:16x16:0,0=tms_opal_animated.png{[combine:16x16:0,0=tms_opal_animated.png{[combine:16x16:0,0=tms_opal_animated.png",
|
||||
goals = goals,
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue