stopsound @a ambient
data merge entity @n[tag=tracks.best] {text:[{"translate":"best","with":[{"text":"- ","color":"gray"}]}]}
$execute if data storage funkalot:results results.$(namespace).$(name) run data merge entity @n[tag=tracks.best] {text:[{"translate":"best","with":[{"nbt":"results.$(namespace).$(name)","storage":"funkalot:results","color":"gold","bold":true}]}]}
$data modify entity @n[tag=note.cover] item.components."minecraft:item_model" set value "$(namespace):cover/$(name)"
data merge entity @n[tag=tracks.namespacenote,type=text_display] {text:[{"text":""}]}
$data merge entity @n[tag=tracks.namespacenote,type=text_display] {text:[{"translate":"namespace.base","with":[{"translate":"namespace.$(namespace)","fallback":"Unknown Pack"},{"translate":"namespace.$(namespace).installed","color":"green","fallback":"Not installed"}]}]}
$function funkalot:playsong {name:$(name),namespace:$(namespace)}
tag @s add notcount
execute as @e[tag=!notcount,tag=tracks.entry] run data merge entity @s {interpolation_duration:0,start_interpolation:0,background:-16777216}
data merge entity @s {interpolation_duration:3,start_interpolation:0,background:-16097024}
tag @s remove notcount