execute if entity @e[tag=tutbuy1,nbt={HurtTime:10s}] run execute at @a run playsound minecraft:tota.custom.purchase master @a ~ ~ ~ 1 1
execute if entity @e[tag=tutbuy1,nbt={HurtTime:10s}] run tellraw @a {"text":"Item purchased!","color":"#00FF08","bold":true,"italic":false}
execute if entity @e[tag=tutbuy1,nbt={HurtTime:10s}] run execute at @e[tag=tutitem1] run particle minecraft:flash ~ ~.25 ~ 0 0 0 0 20 force @a
execute if entity @e[tag=tutbuy1,nbt={HurtTime:10s}] run data merge entity @e[tag=tutitem1,limit=1] {Glowing:1b,CustomNameVisible:0b,Age:-32768,Health:999999,PickupDelay:1,Invulnerable:1b,Item:{}}
execute if entity @e[tag=tutbuy1,nbt={HurtTime:10s}] run execute at @a run function functionfamily:particle/purchase
execute if entity @e[tag=tutbuy1,nbt={HurtTime:10s}] run scoreboard players remove @a shilling 30
kill @e[tag=tutbuy1,nbt={HurtTime:10s}]





execute if entity @e[tag=tutbuy2,nbt={HurtTime:10s}] run execute at @a run playsound minecraft:tota.custom.purchase master @a ~ ~ ~ 1 1
execute if entity @e[tag=tutbuy2,nbt={HurtTime:10s}] run tellraw @a {"text":"Item purchased!","color":"#00FF08","bold":true,"italic":false}
execute if entity @e[tag=tutbuy2,nbt={HurtTime:10s}] run execute at @e[tag=tutitem2] run particle minecraft:flash ~ ~.25 ~ 0 0 0 0 20 force @a
execute if entity @e[tag=tutbuy2,nbt={HurtTime:10s}] run data merge entity @e[tag=tutitem2,limit=1] {Glowing:1b,CustomNameVisible:0b,Age:-32768,Health:999999,PickupDelay:1,Invulnerable:1b,Item:{}}
execute if entity @e[tag=tutbuy2,nbt={HurtTime:10s}] run execute at @a run function functionfamily:particle/purchase
execute if entity @e[tag=tutbuy2,nbt={HurtTime:10s}] run scoreboard players remove @a shilling 20
kill @e[tag=tutbuy2,nbt={HurtTime:10s}]





execute if entity @e[tag=tutbuy3,nbt={HurtTime:10s}] run tellraw @a {"text":"Not enough shillings!","color":"#FF0000","bold":true,"italic":false}
execute if entity @e[tag=tutbuy3,nbt={HurtTime:10s}] run execute at @a run playsound minecraft:block.note_block.pling master @a ~ ~ ~ 1 .5
execute if entity @e[tag=tutbuy3,nbt={HurtTime:10s}] run effect give @e[tag=tutbuy3] minecraft:instant_health 1 10 true