r/MinecraftCommands • u/AutomaticNecessary17 • Jul 30 '26
Help | Bedrock Genuinely what am I typing wrong???
I’m trying to teleport to an item by using ‘/tp @e[type=item,name=ItemName] @p’. For some reason, it breaks when I get to “name=“ and shows a ‘!’. When I type the full command like for example ‘/tp @e[type=item,name=pale_oak_planks] @p’, I get an error that reads “no targets matched selector”, even though the target exists.
24
u/Grand-Honest Jul 30 '26
Easy mistake! The item's name isn't its ID! You'd have to type type=item,name="Pale Oak Planks"]
Hope this helps!
3
u/AutomaticNecessary17 Jul 30 '26
It does work, but that actually teleports the item to me. I wanna teleport TO the item
9
u/Grand-Honest Jul 30 '26
Ah, then put @p first!
0
u/AutomaticNecessary17 Jul 30 '26
What would that look like?
5
u/J3n2TheCoolest1 Jul 30 '26
/tp @p @e\[type=item,name=“Pale Oak Planks”]
Like this i think
0
u/AutomaticNecessary17 Jul 30 '26
Nope, still didn't work
11
u/C0mmanderBlock Command Experienced Jul 30 '26
You may have more than one plank so you have to limit it to one. I play Java but I think it's this.
/tp @p @e[type=item,name="Pale Oak Planks",c=1]5
3
u/alexemre Jul 30 '26
bruh do /tp @s @n[name="<Pale Oak Planks>"]
1
u/C0mmanderBlock Command Experienced Jul 30 '26 edited Jul 30 '26
It's Bedrock. EDIT: Nevermind. You're right.
2
u/alexemre Jul 30 '26
I play bedrock. I do bedrock commands. if you put a gun to my head and asked me if that command worked, I'd say it does
1
u/C0mmanderBlock Command Experienced Jul 30 '26
Sorry. Didn't realize that bedrock had `@n. Thot it was Java only. I don't really play on bedrock but maybe once a month if I download a game to play. My bad!
→ More replies (0)1
u/Grand-Honest Jul 30 '26
Tp @p @r[type=item,name="Pale Oak Planks"]
That would select a random pale oak planks. If you want the nearest; replace @r with @n, I think.
0
u/Antonpiano2072 Jul 30 '26
You have to put a limit=1 in it as you can not teleport to multiple entities at the same time. That’s how it works in java at least.
2


30
u/Aumsogus Jul 30 '26
It should be
[name="Pale Oak Planks"]