I Found a way around this. I will use my example of how did I do it. Imagine an ice road for the boats to go on. At the end of the road there are command blocks with the command: execute as @e[limit=2,sort=nearest] at @s run execute unless entity @s[type=minecraft:armor_stand] run tp @s Insert coordinates here A little bit before the command blocks there is a wall of armor stands. 2 stands in each block. As soon as the boat crosses the armor stands both the boat and the player get transported
Note: Even though the command teleports all entities that are closer to it than the armor stand wall, if you are inside the boat you will not get teleported unless you are between the armor stands and the command blocks
I Found a way around this.
I will use my example of how did I do it.
Imagine an ice road for the boats to go on. At the end of the road there are command blocks with the command:
execute as @e[limit=2,sort=nearest] at @s run execute unless entity @s[type=minecraft:armor_stand] run tp @s Insert coordinates here
A little bit before the command blocks there is a wall of armor stands. 2 stands in each block. As soon as the boat crosses the armor stands both the boat and the player get transported
Note: Even though the command teleports all entities that are closer to it than the armor stand wall, if you are inside the boat you will not get teleported unless you are between the armor stands and the command blocks
the version is 1.16.1
[media]