/execute command is a versatile command used to execute commands on behalf of other entities, or to test for conditionals before executing a command. It offers multiple different parameters to set who, what, when, and where to execute the command.
There are two parameters that look very similar:
The Minecraft Wiki has a clear description of what each one does:
at is used to position at an entity, while
positioned can be used to specify coordinates.
But however, there is another way to specify an entity: using
positioned as ??. This also offers us to specify an entity instead of coordinates to execute the command at.
What is the difference between these two parameters, and in which situations should I prefer each of them?