mobs-redo #2

Merged
SumianVoice merged 457 commits from VoxeLibre/VoxeLibre:mobs-redo into mobs-redo 2022-07-20 00:23:43 +02:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit 6757b8f900 - Show all commits

View File

@ -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"),

View File

@ -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