mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-01 07:13:45 +01:00
The Nether Advancement
This commit is contained in:
parent
8f7ac1e5a2
commit
6757b8f900
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user