I'm trying to make a door that uses sticky pistons and a redstone / command block mechanism. I've been able to get the door to open and close when the nearest player has a skull named Skeleton Key but i also want to make it so the player is near the door so only they can get in/out. Unfortunately i keep getting a data tag error on the command block that sees if the player is within 2 blocks of the door....
Data tag parsing failed: Unable to locate name/value separator for string: [x=510,y=22,z=940,r=2]
The code is....
/testfor @p {[x=510,y=22,z=940,r=2]}
What am i doing wrong and is it possible to combined that code and this code....
I'm trying to make a door that uses sticky pistons and a redstone / command block mechanism. I've been able to get the door to open and close when the nearest player has a skull named Skeleton Key but i also want to make it so the player is near the door so only they can get in/out. Unfortunately i keep getting a data tag error on the command block that sees if the player is within 2 blocks of the door....
Data tag parsing failed: Unable to locate name/value separator for string: [x=510,y=22,z=940,r=2]
The code is....
/testfor @p {[x=510,y=22,z=940,r=2]}
What am i doing wrong and is it possible to combined that code and this code....
/testfor @p {Inventory:[{id:minecraft:skull,tag:{display:{Name:Skeleton Key}}}]}
into one command block?
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
The entity UUID provided is in an invalid format
just to double check this is what it should look like right?
/testfor @p[x=510,y=22,z=940,r=2] {Inventory:[{id:minecraft:skull,tag:{display:{Name:Skeleton Key}}}]}
P.S. Thanks for the quick response!
That error will occur when no target was found. Make sure there's a player within 2 blocks of the listed coordinates.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/