mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-28 05:43:43 +01:00
Enchanter Advancement
This commit is contained in:
parent
2845cd79b7
commit
1abeccfaab
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user