@f - The first entity selected by a command. For example:
execute as @e[type=zombie] on target at @s run execute facing entity @f run [Command Here]
This would execute as all zombie's targets facing the original entity selected. So if two zombies are targeting two different villagers, the villager will run the execute facing the zombie targeting them.
@l - The last entity selected by a command. For example:
execute as @e[type=zombie] on target on owner at @s facing @l run [Command Here]
This runs on the same system, except uses the last entity selected. In this case, the owner of the zombie's target is running a command facing the zombie's target.
Please sign in to leave a comment.
2 Comments