I am making an adventure map but I have a problem.

For the testfor command I put /testfor @p [r=3] but it doesn't work.

The command block says:

[13:13:15] Data tag parsing failed: Invalid tag encountered, expected '{' as first char. 

I am using Minecraft version 1.8.8.

  • 1
    General advice for map-making: testfor is a very limited command, and in ~90% of all cases using (the newer) execute is better. That is, most cases where the testfor triggers another command if the result is true. The rule of thumb would be to use execute unless you know exactly that it won't do for your problem.
    – MrLemon
    Commented Jul 29, 2015 at 10:56

2 Answers 2


Your problem is the space between @p and [r=3].

Try the following command:

/testfor @p[r=3]

  • 1
    @sabsub If it works for you, you can put the answer as accepted (click the little check mark under the votes)
    – APCoding
    Commented Jul 29, 2015 at 15:42

The Syntax is just a little bit wrong here's yours:

/testfor @p [r=3]

The Correct One:

/testfor @p[r=3]

Side Note: If your using /testfor @p[x=1,y=1,z=1,r=1] with negative numbers, it won't work.

  • This adds nothing not already said, I'm afraid. Do you have anything extra to add?
    – Frank
    Commented Aug 11, 2016 at 17:53
  • Why yes, I just did. Commented Aug 16, 2016 at 17:01

You must log in to answer this question.

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