I'm trying to make an execute command (since they removed /testfor) where when a player stands on a certain block, they get teleported to the next story in the house. (stairs are overrated) If the test is passed, the player gets teleported. Although, the test seems to pass even when I'm not standing at that specific block. Here is the command:
/execute if entity @p[x=-421,y=5,z=124] run tp @p ~ ~6 ~
The command block is set on Repeat, Unconditional, and Always Active.