1
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!
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!
Create an account or sign in to comment.
2
1
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
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.
Edit: Wait, excuse me, it's working now. Just needed to restart Minecraft for some reason. Thank you.