merge beacon-branch into fork beacon branch #7

Merged
chmodsayshello merged 453 commits from VoxeLibre/VoxeLibre:beacons into beacon-"fork" 2022-07-23 11:30:49 +02:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit b544fb819d - Show all commits

View File

@ -985,6 +985,11 @@ local trade_inventory = {
elseif listname == "output" then
if not trader_exists(player:get_player_name()) then
return 0
-- Begin Award Code
-- May need to be moved if award gets unlocked in the wrong cases.
elseif trader_exists(player:get_player_name()) then
awards.unlock(player:get_player_name(), "mcl:whatAdeal")
-- End Award Code
end
-- Only allow taking full stack
local count = stack:get_count()

View File

@ -194,6 +194,13 @@ awards.register_achievement("mcl:sweetDreams", {
icon = "mcl_beds_bed_red.png",
})
-- Triggered in mobs_mc
awards.register_achievement("mcl:whatAdeal", {
title = S("What A Deal!"),
description = S("Successfully trade with a Villager."),
icon = "mcl_core_emerald.png",
})
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
if non_pc_achievements then