Hey, so I'm working on a world recreation of portal and made a simulation of momentum and carrying it over through the portals. This works fine on the overworld, so I put all the momentum command blocks for it into a ticking area (same as I did the portal gun command blocks) and headed to the End. However the command blocks that include "execute @a ~ ~ ~ detect ~ ~-1 ~ air 0 ..." don't work. All other command blocks that do not include execute detection works fine.
I am keeping track of the amount of time spent in the air in a scoreboard, so the command I'm using is "execute @a ~ ~ ~ detect ~ ~-1 ~ air 0 scoreboard players add @s Momentum 1"
Occasionally and inconsistently, it manages to detect air underneath the player, but this is really inconsistent and the player could be stood on solid blocks at times.
It appears as though it is checking for the corresponding blocks in the overworld at the same coordinates, though I may be wrong in saying that.
Attached image shows, even though above air, my score (Lucasade111) remains at 0