forked from nalc/awards
Spaces around operators
This commit is contained in:
parent
89dc2b074f
commit
8c20ca2f3c
77
init.lua
77
init.lua
@ -11,10 +11,10 @@ awards.register_achievement("award_lightitup",{
|
|||||||
title = "Light It Up",
|
title = "Light It Up",
|
||||||
description = "You have placed 100 torches",
|
description = "You have placed 100 torches",
|
||||||
icon = "novicebuilder.png",
|
icon = "novicebuilder.png",
|
||||||
trigger={
|
trigger = {
|
||||||
type="place",
|
type = "place",
|
||||||
node="default:torch",
|
node = "default:torch",
|
||||||
target=100,
|
target = 100,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -22,10 +22,10 @@ awards.register_achievement("award_lightitup",{
|
|||||||
awards.register_achievement("award_lumberjack",{
|
awards.register_achievement("award_lumberjack",{
|
||||||
title = "Lumber Jack",
|
title = "Lumber Jack",
|
||||||
description = "You have dug 100 tree blocks",
|
description = "You have dug 100 tree blocks",
|
||||||
trigger={
|
trigger = {
|
||||||
type="dig",
|
type = "dig",
|
||||||
node="default:tree",
|
node = "default:tree",
|
||||||
target=100,
|
target = 100,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -35,10 +35,10 @@ awards.register_achievement("award_mesefind",{
|
|||||||
description = "Found some Mese!",
|
description = "Found some Mese!",
|
||||||
icon = "mese.png",
|
icon = "mese.png",
|
||||||
background = "bg_mining.png",
|
background = "bg_mining.png",
|
||||||
trigger={
|
trigger = {
|
||||||
type="dig",
|
type = "dig",
|
||||||
node="default:stone_with_mese",
|
node = "default:stone_with_mese",
|
||||||
target=100,
|
target = 100,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -46,10 +46,10 @@ awards.register_achievement("award_mesefind",{
|
|||||||
awards.register_achievement("award_nyanfind",{
|
awards.register_achievement("award_nyanfind",{
|
||||||
title = "OMG, Nyan Cat!",
|
title = "OMG, Nyan Cat!",
|
||||||
description = "Find a nyan cat",
|
description = "Find a nyan cat",
|
||||||
trigger={
|
trigger = {
|
||||||
type="dig",
|
type = "dig",
|
||||||
node="default:nyancat",
|
node = "default:nyancat",
|
||||||
target=1,
|
target = 1,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -59,10 +59,10 @@ awards.register_achievement("award_mine1",{
|
|||||||
description = "You have dug 10 stone blocks",
|
description = "You have dug 10 stone blocks",
|
||||||
icon = "miniminer.png",
|
icon = "miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "bg_mining.png",
|
||||||
trigger={
|
trigger = {
|
||||||
type="dig",
|
type = "dig",
|
||||||
node="default:stone",
|
node = "default:stone",
|
||||||
target=10,
|
target = 10,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -72,10 +72,10 @@ awards.register_achievement("award_mine2",{
|
|||||||
description = "You have dug 100 stone blocks",
|
description = "You have dug 100 stone blocks",
|
||||||
icon = "miniminer.png",
|
icon = "miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "bg_mining.png",
|
||||||
trigger={
|
trigger = {
|
||||||
type="dig",
|
type = "dig",
|
||||||
node="default:stone",
|
node = "default:stone",
|
||||||
target=100,
|
target = 100,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -85,10 +85,10 @@ awards.register_achievement("award_mine3",{
|
|||||||
description = "You have dug 1000 stone blocks",
|
description = "You have dug 1000 stone blocks",
|
||||||
icon = "miniminer.png",
|
icon = "miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "bg_mining.png",
|
||||||
trigger={
|
trigger = {
|
||||||
type="dig",
|
type = "dig",
|
||||||
node="default:stone",
|
node = "default:stone",
|
||||||
target=1000,
|
target = 1000,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -98,10 +98,10 @@ awards.register_achievement("award_mine4",{
|
|||||||
description = "You have dug 10000 stone blocks",
|
description = "You have dug 10000 stone blocks",
|
||||||
icon = "miniminer.png",
|
icon = "miniminer.png",
|
||||||
background = "bg_mining.png",
|
background = "bg_mining.png",
|
||||||
trigger={
|
trigger = {
|
||||||
type="dig",
|
type = "dig",
|
||||||
node="default:stone",
|
node = "default:stone",
|
||||||
target=10000,
|
target = 10000,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -109,9 +109,9 @@ awards.register_achievement("award_mine4",{
|
|||||||
awards.register_achievement("award_death1",{
|
awards.register_achievement("award_death1",{
|
||||||
title = "First Death",
|
title = "First Death",
|
||||||
description = "Oh well, it does not matter\nyou have more lives than a cat",
|
description = "Oh well, it does not matter\nyou have more lives than a cat",
|
||||||
trigger={
|
trigger = {
|
||||||
type="death",
|
type = "death",
|
||||||
target=1,
|
target = 1,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -122,12 +122,9 @@ awards.register_achievement("award_burn",{
|
|||||||
})
|
})
|
||||||
|
|
||||||
awards.register_onDeath(function(player,data)
|
awards.register_onDeath(function(player,data)
|
||||||
print ("running on death function")
|
local pos = player:getpos()
|
||||||
local pos=player:getpos()
|
if pos and minetest.find_node_near(pos, 1, "fire:basic_flame") ~= nil then
|
||||||
|
|
||||||
if pos and minetest.env:find_node_near(pos, 1, "fire:basic_flame")~=nil then
|
|
||||||
return "award_burn"
|
return "award_burn"
|
||||||
end
|
end
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
end)
|
end)
|
Loading…
Reference in New Issue
Block a user