0

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
  • 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

5

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

Try the following command:

/testfor @p[r=3]

1
  • 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
-1

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.

2
  • 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

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.