scoreboard players set #customer_cooldown value 122
scoreboard players operation #customer_cooldown value -= #store_quality value

execute if score #checkout_unlocked value matches 2.. run function samsung:customers/search_checkout/2
execute unless score #checkout_unlocked value matches 2.. unless entity @e[type=villager,tag=at_checkout_1,tag=samsung_customer] run summon villager -1 100 -1 {Tags:[samusng_customer,at_checkout_1],NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Rotation:[90f,0f],CustomName:{"text":"Samsung Customer",color:dark_blue,bold:true}}