effect give @s minecraft:levitation 2 50 true
effect give @s minecraft:slow_falling 12 0 true
item replace entity @s weapon.offhand with air

playsound minecraft:item.totem.use master @s ~ ~ ~ 1000 1.4
playsound minecraft:entity.allay.item_given master @s ~ ~ ~ 1000 0.8
playsound minecraft:entity.breeze.idle_air master @s ~ ~ ~ 1000 0.8

particle minecraft:totem_of_undying ~ ~1 ~ 0 0 0 0.5 20 force
particle minecraft:end_rod ~ ~1 ~ 0 0 0 0.2 20 force