execute store result score #players playersleft if entity @a[gamemode=!spectator]
title @a actionbar ["Players Left: ",{"score":{"name":"#players","objective":"playersleft"}}," | Loot Chest: ",{"score":{"name":"s","objective":"ticksSinceDedSB"}}, " min"]