Local Brewery Advancement

This commit is contained in:
PrairieAstronomer 2022-07-01 14:37:02 -06:00
parent 4bfadffadc
commit 2845cd79b7
3 changed files with 12 additions and 0 deletions

View File

@ -246,6 +246,13 @@ awards.register_achievement("mcl:seriousDedication", {
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.)
if non_pc_achievements then

View File

@ -69,3 +69,5 @@ Country Lode,@nTake Me Home=
Use a compass on a Lodestone.=
Serious Dedication=
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.=

View File

@ -369,6 +369,9 @@ local function allow_take(pos, listname, index, stack, player)
minetest.record_protection_violation(pos, name)
return 0
else
if listname == "stand" then
awards.unlock(name, "mcl:localBrewery")
end
return stack:get_count()
end
end