mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
The Nether Advancement
This commit is contained in:
parent
8f7ac1e5a2
commit
6757b8f900
2 changed files with 9 additions and 0 deletions
|
@ -192,6 +192,12 @@ awards.register_achievement("mcl:enterEndPortal", {
|
|||
icon = "mcl_end_end_stone.png",
|
||||
})
|
||||
|
||||
awards.register_achievement("mcl:theNether", {
|
||||
title = S("The Nether"),
|
||||
description = S("Bring summer clothes.\nHint: Enter the Nether."),
|
||||
icon = "mcl_nether_netherrack.png",
|
||||
})
|
||||
|
||||
-- Triggered in mcl_totems
|
||||
awards.register_achievement("mcl:postMortal", {
|
||||
title = S("Postmortal"),
|
||||
|
|
|
@ -427,6 +427,9 @@ local function finalize_teleport(obj, exit)
|
|||
mcl_worlds.dimension_change(obj, dim)
|
||||
minetest.sound_play("mcl_portals_teleport", {pos=exit, gain=0.5, max_hear_distance = 16}, true)
|
||||
log("action", "[mcl_portals] player "..name.." teleported to Nether portal at "..pos_to_string(exit)..".")
|
||||
if dim == "nether" then
|
||||
awards.unlock(obj:get_player_name(), "mcl:theNether")
|
||||
end
|
||||
else
|
||||
log("action", "[mcl_portals] entity teleported to Nether portal at "..pos_to_string(exit)..".")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue