1

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.

1 Answer 1

1

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"}}
2
  • it still says it isnt working? Feb 25, 2016 at 19:12
  • @crazy_angel If the "invalid UUID" error occurs when the syntax is correct, that means no target was found. You simply do not have an item entity within 3 blocks of the specified coordinates. Ensure the coordinates are correct and there is an item entity to find.
    – Skylinerw
    Feb 25, 2016 at 21:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .