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? Commented 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
    Commented Feb 25, 2016 at 21:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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