forked from VoxeLibre/VoxeLibre
Local Brewery Advancement
This commit is contained in:
parent
4bfadffadc
commit
2845cd79b7
|
@ -246,6 +246,13 @@ awards.register_achievement("mcl:seriousDedication", {
|
||||||
icon = "farming_tool_netheritehoe.png",
|
icon = "farming_tool_netheritehoe.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Triggered in mcl_brewing
|
||||||
|
awards.register_achievement("mcl:localBrewery", {
|
||||||
|
title = S("Local Brewery"),
|
||||||
|
description = S("Brew a Potion.\nHint: Take a potion or glass bottle out of the brewing stand."),
|
||||||
|
icon = "mcl_potions_potion_overlay.png^[colorize:#F82423:"..tostring(127).."^mcl_potions_potion_bottle.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
|
||||||
|
|
|
@ -69,3 +69,5 @@ Country Lode,@nTake Me Home=
|
||||||
Use a compass on a Lodestone.=
|
Use a compass on a Lodestone.=
|
||||||
Serious Dedication=
|
Serious Dedication=
|
||||||
Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices.=
|
Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices.=
|
||||||
|
Local Brewery=
|
||||||
|
Brew a Potion.@nHint: Take a potion or glass bottle out of the brewing stand.=
|
||||||
|
|
|
@ -369,6 +369,9 @@ local function allow_take(pos, listname, index, stack, player)
|
||||||
minetest.record_protection_violation(pos, name)
|
minetest.record_protection_violation(pos, name)
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
|
if listname == "stand" then
|
||||||
|
awards.unlock(name, "mcl:localBrewery")
|
||||||
|
end
|
||||||
return stack:get_count()
|
return stack:get_count()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue