effect give @p blindness 6 4 true
item replace entity @p weapon.mainhand with air
tag @p[sort=nearest,limit=1] add getting_stand
effect give @p[tag=getting_stand] instant_damage 2 1 true
effect give @p[tag=getting_stand] wither 6 255 true
effect give @p[tag=getting_stand] nausea 6 255 true
execute at @p[tag=getting_stand] run particle minecraft:damage_indicator ~ ~1 ~ 1 1 0 1 10 force
execute at @p[tag=getting_stand] run particle minecraft:totem_of_undying ~ ~ ~ 1 1 0 1 10 force
clear @p[distance=..3,limit=1,sort=nearest] minecraft:slime_ball[minecraft:custom_data={hg:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:breeze_rod[minecraft:custom_data={sc:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:nether_star[minecraft:custom_data={sp:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:magma_cream[minecraft:custom_data={sun:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:heart_of_the_sea[minecraft:custom_data={dbm:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:blaze_powder[minecraft:custom_data={mr:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:gray_dye[minecraft:custom_data={tog:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:clay_ball[minecraft:custom_data={set:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:book[minecraft:custom_data={tohth:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:clock[minecraft:custom_data={h:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:diamond_sword[minecraft:custom_data={hp:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:clock[minecraft:custom_data={e:true}]
clear @p[distance=..3,limit=1,sort=nearest] minecraft:netherite_sword[minecraft:custom_data={anubis:true}]
advancement grant @p[tag=getting_stand,limit=1,sort=nearest] only template:obtain_stand
schedule function template:stand_retrived 6s