Update Fork #9

Merged
chmodsayshello merged 403 commits from MineClone5/MineClone5:master into master 2022-08-02 15:50:37 +02:00
2 changed files with 8 additions and 0 deletions
Showing only changes of commit f57cbcb0a0 - Show all commits

View File

@ -199,6 +199,13 @@ awards.register_achievement("mcl:enterEndPortal", {
icon = "mcl_end_end_stone.png", icon = "mcl_end_end_stone.png",
}) })
-- Triggered in mcl_totems
awards.register_achievement("mcl:postMortal", {
title = S("Postmortal"),
description = S("Use a Totem of Undying to cheat death."),
icon = "mcl_totems_totem.png",
})
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.) -- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
if non_pc_achievements then if non_pc_achievements then

View File

@ -43,6 +43,7 @@ mcl_damage.register_modifier(function(obj, damage, reason)
obj:set_wielded_item(wield) obj:set_wielded_item(wield)
end end
end end
awards.unlock(obj:get_player_name(), "mcl:postMortal")
-- Effects -- Effects
minetest.sound_play({name = "mcl_totems_totem", gain = 1}, {pos=ppos, max_hear_distance = 16}, true) minetest.sound_play({name = "mcl_totems_totem", gain = 1}, {pos=ppos, max_hear_distance = 16}, true)