How do i teleport a Specified Item to coords? [duplicate]
I made a Tri-Dimensional "duper" for dragon eggs, and they get sent through the end and back to the overworld. A repeating command block at spawn then teleports @e[type=item] to ~ ~1 ~
where a hopper awaits above the command block to send the eggs to a large chest storage system, the problem?
It teleports ANY item. Is there any way to specify which item to teleport? I want specifically only dragon eggs to teleport above the command block.
EDIT: Not a dupe of How to test for a dropped item in Minecraft?
Reason: They are asking for the equal of /testfor or /execute. I simply wished to teleport an item. Different Questions. Also, this dupe was marked nearly 5/6 months after the question was answered.
People please read the contents of a post before marking it as a duplicate, and also read the date.
Answered by a friend:
For 1.13/1.14, you can filter by item ID:
/teleport @e[type=item,nbt={Item:{id:"minecraft:dragon_egg"}}] ~ ~1 ~