まず、コマンドで
tag @r add emerald
clear @a[tag=emerald] emerald 0 1
/scoreboard players add @a[tag=emerald,hasitem={item=emerald}] money 1
tag @a remove emerald
execute as @a run titleraw @s actionbar {"rawtext":[{"text":"§l所持金 : §e"},{"score":{"name":"@s","objective":"money"}}]}
これでできます!