The Nether Advancement

This commit is contained in:
PrairieAstronomer 2022-07-01 13:41:21 -06:00
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", 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 -- Triggered in mcl_totems
awards.register_achievement("mcl:postMortal", { awards.register_achievement("mcl:postMortal", {
title = S("Postmortal"), title = S("Postmortal"),

@ -427,6 +427,9 @@ local function finalize_teleport(obj, exit)
mcl_worlds.dimension_change(obj, dim) mcl_worlds.dimension_change(obj, dim)
minetest.sound_play("mcl_portals_teleport", {pos=exit, gain=0.5, max_hear_distance = 16}, true) 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)..".") 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 else
log("action", "[mcl_portals] entity teleported to Nether portal at "..pos_to_string(exit)..".") log("action", "[mcl_portals] entity teleported to Nether portal at "..pos_to_string(exit)..".")
end end