write something there
This commit is contained in:
commit
b4b6c08f4f
8546 changed files with 309825 additions and 0 deletions
18
mods/asuna/asuna_awards/awards/under_the_sea.lua
Normal file
18
mods/asuna/asuna_awards/awards/under_the_sea.lua
Normal file
|
@ -0,0 +1,18 @@
|
|||
return function(award)
|
||||
-- Register interval callback to check for deep water
|
||||
asuna_awards.register_on_interval(award,function(player)
|
||||
local pos = player:get_pos()
|
||||
local y = pos.y
|
||||
if y <= -20 and y >= -32 and minetest.get_node(pos).name:find("water") then
|
||||
return award
|
||||
end
|
||||
end)
|
||||
|
||||
-- Award definition
|
||||
return {
|
||||
title = "Under the Sea",
|
||||
description = "Dive into deep ocean",
|
||||
difficulty = 50,
|
||||
icon = "bubble.png",
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue