Teleport a Mob to You
Pull the nearest mob of a specific type to your location
✅ Verified for Java 26.2 · Bedrock 26.32 — checked June 2026Teleports the nearest cow to your position. Replace 'cow' with any entity type ID — zombie, villager, horse, etc. The limit=1 ensures only one is teleported; sort=nearest picks the closest one. Both editions support identical selector syntax.
/tp @e[type=cow,limit=1,sort=nearest] @s40 characters
- Java: yes
- Bedrock: yes
- Command block: yes
- Needs cheats / OP: yes
How to use
- Open chat (T on Java, / on Bedrock) and paste the command.
- Change 'cow' to the entity type you want (zombie, horse, etc.).
- Press Enter — the nearest matching mob appears at your feet.
Related commands
Move straight up without changing X/Z position
/teleport ~ ~10 ~Move forward in the direction you're looking
/teleport ~ ~ ~ rotated as @s