✔️ How To Use /Teleport to Make Mobs and Players Follow You! (Updated) Java ✔️ How To Use Teleport
Video Summary
In this video, I show you how to use the /tp command in Java to make specific mobs follow you by targeting only entities with a chosen name tag. I then upgrade it with /execute so the mob can teleport to offsets around you (like above you or a few blocks away) instead of directly on top of you. Finally, I demonstrate an “if block” setup where an entity only teleports when it stands on red concrete, letting you create simple rule-based teleport behavior.
Formatted Transcript
Hey everybody, it’s UnderMyCap, and welcome back. Today I’m going to show you how to use the /tp (teleport) command to make mobs follow you. We’ll start with a simple teleport command and then move on to a more useful setup that only teleports a mob when it steps on a specific block (red concrete).
Basic Idea: Teleporting a Specific Entity to You
To demonstrate this, I set up a few command blocks. The goal is to make certain rules apply to certain entities. For example, you can make it so that when an entity stands on a red concrete block, it gets teleported to you (or to any location you choose) instead of just walking off.
The basic /tp layout
Here’s the basic structure you need to understand:
/tp @e[name=Test1] UnderMyCap
Here’s what each part does:
/tp — the teleport command.
@e — targets entities. (You can change this to @a, @p, etc., depending on what you want to teleport. I’m using @e because I want to target entities.)
[name=Test1] — limits the command to only entities with a specific name. This prevents every entity in the world from being teleported.
UnderMyCap — the destination. This can be a player name, coordinates, or another target selector, depending on what you want.
If you name-tag a villager (or any mob) Test1, this command will apply to that entity. Other mobs will not be affected.
Problem: The mob teleports directly onto you
If you run the basic command as-is, the mob will teleport directly onto your position. That works, but it can be annoying because the mob ends up inside you.
Improvement: Teleporting an Entity Relative to You (Using /execute)
To make this cleaner, you can use /execute so the mob teleports relative to your position instead of directly onto you.
The idea is to execute the teleport at your location and use relative coordinates (the tilde ~) so the mob appears above you or slightly offset.
Example structure:
/execute at UnderMyCap run tp @e[name=Test1] ~ ~2 ~
What this does:
/execute at UnderMyCap — runs the command at your location.
run tp @e[name=Test1] — teleports the named entity.
~ ~2 ~ — uses coordinates relative to your position. In this example, the mob will teleport two blocks above you.
When you test this, the villager isn’t gone—it’s now above you, which is a lot more useful. You can change the offsets however you like. For example, you could make the mob teleport a few blocks in front of you. It will keep updating as you move, so it looks like the mob is trying to copy your movement and “follow” you.
Teleport Only When the Entity Stands on Red Concrete
Next, here’s how to teleport a mob only if it’s standing on a red concrete block.
This uses /execute again, but with an if condition. You check the block underneath the entity, and only teleport it if that block matches red concrete.
Command structure
Example structure:
/execute as @e[name=Test2] at @s if block ~ ~-1 ~ minecraft:red_concrete run tp @s UnderMyCap
Here’s what it means:
as @e[name=Test2] — runs the command as the entity named Test2.
at @s — runs it at that entity’s position.
if block ~ ~-1 ~ minecraft:red_concrete — checks the block directly underneath the entity (one block down).
run tp @s UnderMyCap — teleports that entity to you if the condition is true.
How it works in-game
Rename a villager to Test2. At first, nothing happens, because the villager isn’t meeting the requirements. As soon as the villager steps onto a red concrete block, it will instantly teleport to you. This is a simple and effective way to create “trigger blocks” that teleport entities.
Wrapping Up
That’s it for this tutorial. If you enjoyed it, please leave a like and subscribe if you’re new. I try to make fresh Minecraft content, and if you have suggestions for future videos (I’m running out of ideas), please leave them in the comments.
Also, sorry I haven’t been making many Bedrock videos. I’m planning to build a PC soon, and once I can run Bedrock more easily, I’ll make more Bedrock content. For now, I can only do Java videos.
Be sure to subscribe, leave a like, and check my socials and website in the description. Have a great day—see you!
Video Thumbnail
Recommended Items Based On Post
Advertisment




