I'm trying to make a V.I.P. door with a testfor to a specific player with this command

/testfor @a[name=name,r=radius]

I replaced the name with my user and radius with 10 and an error command pops up:

 [11:03:47] Data tag parsing failed: Invalid tag encountered, expected '{' as first char.
  • Comments are not for extended discussion; this conversation has been moved to chat.
    – Wipqozn
    Commented Apr 28, 2017 at 22:44

1 Answer 1


You need to use { and } instead of [ and ] and that should work, so hold shift and press the same button that you did before.

The command is: /testfor @a{name=name,r=radius} But use the same name and stuff, oh and if you want to make it like a owner only door then only put your name in.

  • [ and ] as in the question are correct for selector arguments. You may be thinking of NBT, which uses curly brackets.
    – SirBenet
    Commented Apr 30, 2017 at 11:44

You must log in to answer this question.

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