Testfor dropped items minecraft

Testfor dropped items minecraft - Board game with wooden blocks dropped and scattered on table chaotically after playing

So I tried this command:

/testfor @e[x=445,y=88,z=216,r=3][type=Item] {Item:{id:minecraft:egg}

But it did the "invalid entity UUID" error and didn't work.



Best Answer

You closed the selector's parameters and opened them again, breaking selector syntax. You need to include all parameters within the same set of square brackets. You've also not completely closed the NBT data, just missing a final closing curly bracket. Fixed:

/testfor @e[x=445,y=88,z=216,r=3,type=Item] {Item:{id:"minecraft:egg"}}



Pictures about "Testfor dropped items minecraft"

Testfor dropped items minecraft - Set of small wooden blocks scattered on table chaotically after playing tower game
Testfor dropped items minecraft - Free stock photo of antique, art, culture
Testfor dropped items minecraft - Free stock photo of adult, bowl, coffee



How do you Testfor an item in Minecraft?

Items are "dropped" blocks or items (non-block resources) that appear in the world, rather than being in the inventory of a player or block entity; they are a type of entity.



[1.11/1.11.2] Minecraft | How To Testfor a Dropped Item




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Joshua Miranda, Joshua Miranda, ANTONI SHKRABA, ANTONI SHKRABA