execute unless score @s pay matches 6000.. run return run function ws:store/darknet/fail
scoreboard players remove @s pay 6000
title @s title {"translate":"luxury.buysuccess","color":"green"}
give @s crossbow[custom_name='{"translate":"darknet.nailgun","italic":false}',unbreakable={},custom_model_data=1000,custom_data={nailgun:1},charged_projectiles=[{id:"minecraft:arrow",count:1,components:{"minecraft:custom_name":'{"translate":"gun.nail","italic":false}'}}]] 1
scoreboard players set @s nails 80
execute at @s run playsound minecraft:entity.evoker.ambient player @s ~ ~ ~