###Removes bounty###
tag @e[type=item,distance=..4,nbt={OnGround:1b,Item:{id:"minecraft:gold_block",Count:63b}}] add nitBountyTBR
execute at @e[tag=nitBountyTBR] run particle poof ~ ~0.2 ~ 0.1 0.1 0.1 0.1 10 normal
kill @e[tag=nitBountyTBR]
execute anchored eyes run particle happy_villager ^ ^ ^ 0.3 0.3 0.3 0 5 normal
playsound entity.piglin.celebrate neutral @a ~ ~ ~ 3 1

###Removes visitor###
particle large_smoke ~ ~ ~ 0.5 0.5 0.5 0 20 normal
tellraw @a[distance=..10] [{"text":"[Piglin Posse]","color":"dark_red","bold":true},{"text":": ","color":"white","bold":false},{"text":"Oh boy, thanks for all the shinies! Guess we'll be on our way, then.","color":"white","bold":false}]
scoreboard players set @e[tag=nitTownSquare,limit=1,sort=nearest] nitResourceSpawn 0
tp @s ~ -100 ~
kill @s