#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#
#    This function has been created by Skilendarz Group.
#             https://skilendarz.com
#
#      GIVE MAP MAKERS THE CREDIT THEY DESERVE!
#             COPYING IS PROHIBITED!
#
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

scoreboard players set @s dabdab 0
function f:game/end/win/effect3_spawn_loop
execute at @s run loot replace entity @e[tag=dab,distance=..1] armor.head loot f:head
execute at @s if data entity @s Inventory[{Slot:102b}] run item replace entity @e[tag=dab,distance=..1] armor.chest from entity @s armor.chest
spreadplayers ~ ~ 5 20 false @e[tag=dab,distance=..1]
execute as @e[tag=dab] at @s run tp @s ~ ~ ~ facing entity @p
scoreboard players set @s dabdab 0