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
    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 Jul 29 '15 at 10:56
4

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 Jul 29 '15 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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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