y and dy don't work with non-player entities
How to reproduce:
-Make sure to have multiple entities in range
-Execute this command:
/execute as @e[y=0,dy=255] run say @s
What I expected:
Every entity in range which is in the building limit sound say it's name in chat
What did happen:
Only the Player said it's name in chat