particle dragon_breath ~ ~1.6 ~ 0.25 0.5 0.25 0.01 20 force
particle portal ~ ~1.6 ~ 0.25 0.5 0.25 0.5 30 force
playsound entity.enderman.teleport hostile @a[distance=..200] ~ ~0.1 ~ 1 2
summon armor_stand ~ ~ ~ {Tags:["jjc","jjc_deathitem","jjc_deathitem0","jjc_nop"],DisabledSlots:16191,NoBasePlate:1b,ShowArms:1b,Invulnerable:1b,ArmorItems:[{components:{"custom_data":{jjc_deathitem:1},"minecraft:dyed_color":{rgb:1908001},"minecraft:trim":{material:"minecraft:amethyst",pattern:"minecraft:flow"}},count:1,id:"minecraft:leather_boots"},{components:{"custom_data":{jjc_deathitem:1},"minecraft:dyed_color":{rgb:1908001},"minecraft:trim":{material:"minecraft:amethyst",pattern:"minecraft:flow"}},count:1,id:"minecraft:leather_leggings"},{components:{"custom_data":{jjc_deathitem:1},"minecraft:dyed_color":{rgb:1908001},"minecraft:trim":{material:"minecraft:amethyst",pattern:"minecraft:flow"}},count:1,id:"minecraft:leather_chestplate"},{id:"player_head",components:{"custom_data":{jjc_deathitem:1}}}]}
item modify entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] armor.head colosseum_of_fools:head
execute as @n[distance=..200,type=armor_stand,tag=jjc_deathitem] at @s run data modify entity @s CustomName set from entity @s ArmorItems[3].components."minecraft:profile".name

function colosseum_of_fools:player/death/6 with entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] ArmorItems[3].components."minecraft:profile"
execute positioned ~ ~1.32 ~ as @e[type=item,distance=..100,nbt={Age:0s}] at @s run function colosseum_of_fools:player/death/5 with entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] ArmorItems[3].components."minecraft:profile"
schedule function colosseum_of_fools:player/death/3 1t replace
execute positioned ~ ~1.32 ~ as @e[type=marker,tag=jjc_deathitem_m1,distance=..100] at @s positioned ~ ~-1.32 ~ run ride @s mount @n[distance=..200,type=armor_stand,tag=jjc_deathitem]
tag @e[type=marker,tag=jjc_deathitem_m1,distance=..100] remove jjc_deathitem_m1

execute store result entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] Motion[1] double 0.001 run random value 0..250
execute store result entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] Motion[0] double 0.001 run random value -250..250
execute store result entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] Motion[2] double 0.001 run random value -250..250
execute store result entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] Rotation[0] float 1 run random value -180..180
data modify entity @n[distance=..200,type=armor_stand,tag=jjc_deathitem] Pos set from entity @n[type=marker,tag=jjc_ender_trap,distance=..128] Pos