execute unless score @s pay matches 1000.. run return run function ws:store/banktocash/fail
scoreboard players remove @s pay 1000
give @s minecraft:emerald[minecraft:custom_model_data=1005,minecraft:custom_data={1000:1},minecraft:custom_name='[{"italic":false,"text":"1000$"}]']
execute at @s run playsound minecraft:entity.arrow.hit_player player @s ~ ~ ~