Hi there! Let me just say first that if I don't give you enough information or am too vague about my problem, just tell me and I will try to get more information to you. Thanks!
My friend and I are making maps for each other, and I want to use commands to detect if his character is standing on a block above the command block, so I can start the next part of the story that way, if that makes sense. I tried using testfor @p {r:1} but it says [@: (my username) does not match the required data structure]. If you can, please explain to me how I can teleport his character without making it obvious. Thank you again for you time.
Thank you, but I am on 1.12.2, and putting that in says [@: Entity '@p[r=1]' cannot be found]. Forgot that the version was important xd.
When you checked the command block (which I assume is a repeating one), were you within 1 block of the command block?
Also, to check if someone is standing above the command block, I would suggest this selector instead:
/testfor @a[x=x,y=y,z=z,dy=3,dx=1,dz=1]
Note: x, y, and z are the coords of the command block, so if your command block is located at 10 64 -90, it would look like this:
/testfor @a[x=10,y=64,z=-90,dx=1,dz=1,dy=3]
Hi there! Let me just say first that if I don't give you enough information or am too vague about my problem, just tell me and I will try to get more information to you. Thanks!
My friend and I are making maps for each other, and I want to use commands to detect if his character is standing on a block above the command block, so I can start the next part of the story that way, if that makes sense. I tried using testfor @p {r:1} but it says [@: (my username) does not match the required data structure]. If you can, please explain to me how I can teleport his character without making it obvious. Thank you again for you time.
Thank you, but I am on 1.12.2, and putting that in says [@: Entity '@p[r=1]' cannot be found]. Forgot that the version was important xd.
When you checked the command block (which I assume is a repeating one), were you within 1 block of the command block?
Also, to check if someone is standing above the command block, I would suggest this selector instead:
/testfor @a[x=x,y=y,z=z,dy=3,dx=1,dz=1]
Note: x, y, and z are the coords of the command block, so if your command block is located at 10 64 -90, it would look like this:
/testfor @a[x=10,y=64,z=-90,dx=1,dz=1,dy=3]
YouTube: https://www.youtube.com/channel/UCzGDRYWcrGreMmQFo_d5N5Q
Facebook:https://goo.gl/s0r12d
Website:https://theusaf.weebly.com
JavaScript Projects: https://theusaf.github.io
Link Shortener: https://shortr.github.io
Twitter:https://www.twitter.com/theusafyt
It works! Thank both of you so much! I'm gonna go ahead and write solved on the forum title now, thank you again!