forum Forumsplay_arrow Minecraft fiber_manual_record Redstone

1

Test For A Specific Player At Specific Coordinates?

1 emerald2 replies2,192 views
created 01/25/2016 5:01 pm by Volans
last reply 01/26/2016 4:16 pm
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 avatar
Volans
Level 5 : Apprentice Artist
10

comment Login or register to post a reply.

2 replies

01/25/2016 6:48 pm
Level 50 : Grandmaster Pixel Painter
craftykids
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)
01/26/2016 4:16 pm
Level 5 : Apprentice Artist
Volans
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

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome