item replace entity @s weapon.mainhand with air

execute at @s run summon minecraft:area_effect_cloud ~ ~ ~ {Radius:0.0f,Duration:2147483647,Tags:["switchLoc"]}
execute at @s run tag @r[distance=0.001..,gamemode=adventure] add switchTemp
tp @s @p[tag=switchTemp]
tp @p[tag=switchTemp] @e[tag=switchLoc,limit=1]
execute at @s run playsound minecraft:entity.enderman.teleport player @s ~ ~ ~ 1 1
execute as @p[tag=switchTemp] at @s run playsound minecraft:entity.enderman.teleport player @s ~ ~ ~ 1 1
effect give @a[tag=switchTemp] levitation 1 5 true

kill @e[tag=switchLoc]
tag @a remove switchTemp