title @s[tag=emk-owns-pig] actionbar "Selected pig kart." playsound minecraft:ui.button.click ambient @s[tag=emk-owns-pig] execute if score @s[tag=!emk-owns-pig] emk-points matches 20.. at @s run function emk:shop/buy/pig title @s[tag=!emk-owns-pig] actionbar [{"text":"You only have ","color":"#ff2222"},{"score":{"name":"*","objective":"emk-points"}}," of the 20 required points."] playsound minecraft:entity.arrow.hit ambient @s[tag=!emk-owns-pig] ~ ~ ~ 1 0 scoreboard players set @s[tag=emk-owns-pig] emk-kart 2