Can you teleport a player if they click on an item in their inventory?
In some Minecraft multiplayer servers, you can simply click on on a item in your inventory, and you will be teleported to somewhere or to someone.
Is there a way to create this same scenario on a vanilla sever with commands?
Best Answer
Use the mod essentials. After you have installed it, grab the item you want then type the following: /tphere (username.)
Replace (username) with the user's in game name. or /tp (username) @p You can replace @p with your or the target's username. Or you can put coordinates there if you want to to go to a specific spot.
But you can't in vanilla, unless you use command blocks and use /tp @p (Coordinates.)
Pictures about "Can you teleport a player if they click on an item in their inventory?"



Can you tp to an item in Minecraft?
In Minecraft Vanilla 1.12. 2 you can't look up other player's inventories, you can only test if a certain item is in it. But in 1.13 (and already in the snapshots) you can use /data get entity <player> to get all data of a player. If you add Inventory to it, it only shows the inventory.How To Teleport By Using/Dropping Items | Minecraft
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Kindel Media, Anna Shvets, Tima Miroshnichenko, Elijah O'Donnell
