Today I'll show you how to make an item that, when dropped will teleport the player to a set location.
Join My Discord: https://discord.gg/atSxQ8ERP4
first set up the scoreboard:
/scoreboard objectives add Warp dummy
The Commands in order:
/scoreboard players add @e[type=item,name=§3Spawn§f] Warp 1
/execute at @e[scores={Warp=1},name=§3Spawn§f] run tellraw @p {"rawtext":[{"text":"§3Warping to Spawn§f"}]}
/execute at @e[scores={Warp=20},name=§3Spawn§f] run tp @p[r=5] ~ ~ ~
/execute at @e[scores={Warp=21},name=§3Spawn§f] run kill @e[scores={Warp=21},name=§3Spawn§f]
Make sure you like, comment, subscribe and ring the notification icon!