mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-01 07:13:45 +01:00
Not Quite 'Nine' Lives Advancement
This commit is contained in:
parent
40a421ddd0
commit
8f7ac1e5a2
@ -206,6 +206,12 @@ awards.register_achievement("mcl:sweetDreams", {
|
||||
icon = "mcl_beds_bed_red.png",
|
||||
})
|
||||
|
||||
awards.register_achievement("mcl:notQuiteNineLives", {
|
||||
title = S('Not Quite "Nine" Lives'),
|
||||
description = S("Charge a Respawn Anchor to the maximum."),
|
||||
icon = "respawn_anchor_side4.png",
|
||||
})
|
||||
|
||||
-- Triggered in mobs_mc
|
||||
awards.register_achievement("mcl:whatAdeal", {
|
||||
title = S("What A Deal!"),
|
||||
|
@ -39,6 +39,9 @@ for i=0,4 do
|
||||
elseif string.match(node.name, "mcl_beds:respawn_anchor_charged_") then
|
||||
minetest.chat_send_player(player.get_player_name(player), S"New respawn position set!")
|
||||
mcl_spawn.set_spawn_pos(player, pos, nil)
|
||||
if i == 4 then
|
||||
awards.unlock(player:get_player_name(), "mcl:notQuiteNineLives")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user