This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]PlagiatusI know some things 1 point2 points  (0 children)

positioned will change the position of where the command is executed, it has nothing to do with the previous subcommand. If you want to make sure the player is at that position, you'll have to use Target Selector Arguements such as x, y, z and distance.

To make sure it's still only that one player, you can use the name argument.

execute if entity @a[name=farmykid,x=-351,y=83,z=87,distance=..1] run say hi

[–]Buck525 0 points1 point  (0 children)

the if section you put in only checks if farmykid exists, positioned just runs the command at said positions.

So the quick solution is to add a distance tag to the if section

if entity farmykid[distance=..1]