1

Test For A Specific Player At Specific Coordinates?

Volans's Avatar Volans1/25/16 5:01 pm
1 emeralds 4.7k 2
1/26/2016 4:16 pm
Volans's Avatar Volans
Hello,

I am currently working on a castle in my free time, and I am trying to add a security system within the castle. I have a door that is hidden within the wall, and I want the only way the door to open is if a certain player stands on a certain block just in front of the door. The door will not open if the player is not standing on this exact block, and it cannot be any other player. Is that possible?
I have the basics of the command, "/testfor @a[x=X,y=Y,z=Z,r=R]", but when I replace "@a" with the players name, the format doesn't work.

Thanks for the help!
Posted by Volans's Avatar
Volans
Level 7 : Apprentice Artist
10

Create an account or sign in to comment.

2

1
01/25/2016 6:48 pm
Level 52 : Grandmaster Pixel Painter
craftykids
craftykids's Avatar
You can't use selector arguments with player names like that. Instead, you should be able to do something like "/testfor @p[name=PLAYERNAME,x=X,y=Y,z=Z,r=R]" (replacing "PLAYERNAME" with the name of the player who's allowed to open the door of course)
1
01/26/2016 4:16 pm
Level 7 : Apprentice Artist
Volans
Volans's Avatar
It still proclaims the UUID format is invalid.

Edit: Wait, excuse me, it's working now. Just needed to restart Minecraft for some reason. Thank you.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome