-3

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.

  • 1
    You'll find the answer with only a little more research. You can list additional selectors in your arguments. Maybe one of these might help? minecraft.gamepedia.com/Commands#Target_selector_arguments – Slurpee Apr 19 at 7:33
  • @Slurpee Nope, I thought of trying @e[type=item,id=dragon_egg] or @e[type=item,name=dragon_egg] but both didnt work – Taylor Spark Apr 19 at 7:37
  • For now Ill have to work with x,y,z and distance detecting... – Taylor Spark Apr 19 at 7:39
  • Hmmmmm I also tried @e[type=item,nbt={id="dragon_egg"}] but that didnt seem to cut it either... sadface – Taylor Spark Apr 19 at 7:45
  • You need to check for the NBT, there is no "id" selector argument. – Fabian Röling Apr 19 at 10:38
1

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 ~

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.