Merge pull request 'Withering Heights Advancement' (#2492) from wither_advancement into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2492 Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>wood_api
commit
5a90f34edb
|
@ -38,6 +38,12 @@ local function wither_spawn(pos)
|
||||||
if check_schem(p, schem) then
|
if check_schem(p, schem) then
|
||||||
remove_schem(p, schem)
|
remove_schem(p, schem)
|
||||||
minetest.add_entity(vector.add(p, {x = 0, y = 1, z = 0, [d] = 1}), "mobs_mc:wither")
|
minetest.add_entity(vector.add(p, {x = 0, y = 1, z = 0, [d] = 1}), "mobs_mc:wither")
|
||||||
|
local objects = minetest.get_objects_inside_radius(pos, 20)
|
||||||
|
for _, players in ipairs(objects) do
|
||||||
|
if players:is_player() then
|
||||||
|
awards.unlock(players:get_player_name(), "mcl:witheringHeights")
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -231,6 +231,12 @@ awards.register_achievement("mcl:tacticalFishing", {
|
||||||
icon = "pufferfish_bucket.png",
|
icon = "pufferfish_bucket.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
awards.register_achievement("mcl:witheringHeights", {
|
||||||
|
title = S("Withering Heights"),
|
||||||
|
description = S("Summon the wither from the dead."),
|
||||||
|
icon = "mcl_mobitems_nether_star.png",
|
||||||
|
})
|
||||||
|
|
||||||
-- Triggered in mcl_fishing
|
-- Triggered in mcl_fishing
|
||||||
awards.register_achievement("mcl:fishyBusiness", {
|
awards.register_achievement("mcl:fishyBusiness", {
|
||||||
title = S("Fishy Business"),
|
title = S("Fishy Business"),
|
||||||
|
|
|
@ -63,6 +63,8 @@ Not Quite "Nine" Lives=
|
||||||
Charge a Respawn Anchor to the maximum.=
|
Charge a Respawn Anchor to the maximum.=
|
||||||
What A Deal!=
|
What A Deal!=
|
||||||
Successfully trade with a Villager.=
|
Successfully trade with a Villager.=
|
||||||
|
Withering Heights=
|
||||||
|
Summon the wither from the dead.=
|
||||||
Fishy Business=
|
Fishy Business=
|
||||||
Catch a fish.@nHint: Catch a fish, salmon, clownfish, or pufferfish.=
|
Catch a fish.@nHint: Catch a fish, salmon, clownfish, or pufferfish.=
|
||||||
Country Lode,@nTake Me Home=
|
Country Lode,@nTake Me Home=
|
||||||
|
|
Loading…
Reference in New Issue