Enchanter Advancement

This commit is contained in:
PrairieAstronomer 2022-07-01 14:50:56 -06:00
parent 2845cd79b7
commit 1abeccfaab
2 changed files with 8 additions and 0 deletions

View file

@ -253,6 +253,13 @@ awards.register_achievement("mcl:localBrewery", {
icon = "mcl_potions_potion_overlay.png^[colorize:#F82423:"..tostring(127).."^mcl_potions_potion_bottle.png",
})
-- Triggered in mcl_enchanting
awards.register_achievement("mcl:enchanter", {
title = S("Enchanter"),
description = S("Enchant an item using an Enchantment Table."),
icon = "mcl_enchanting_book_enchanted.png",
})
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
if non_pc_achievements then

View file

@ -576,6 +576,7 @@ function mcl_enchanting.handle_formspec_fields(player, formname, fields)
minetest.sound_play("mcl_enchanting_enchant", {to_player = name, gain = 5.0})
mcl_enchanting.reset_table_slots(player)
mcl_enchanting.show_enchanting_formspec(player)
awards.unlock(player:get_player_name(), "mcl:enchanter")
end
end