Update to this. Using this command execute in minecraft:overworld positioned ~ ~ ~ if entity @e[distance=..5] run execute as @p at @s run execute store result score _value zaxis run data get entity @s Pos[2] 1000000
I've been able to track my z axis when walking up a portal base and being pushed onto it with water, and the two z axis' are:
-235.300001 (When I walk up against the portal base)
-235.304995 (When I get pushed up against the base with water)
The obsidian block I am being pushed on is at z -235.
Update to this.
Using this command
execute in minecraft:overworld positioned ~ ~ ~ if entity @e[distance=..5] run execute as @p at @s run execute store result score _value zaxis run data get entity @s Pos[2] 1000000
I've been able to track my z axis when walking up a portal base and being pushed onto it with water, and the two z axis' are:
-235.300001
(When I walk up against the portal base)-235.304995
(When I get pushed up against the base with water)The obsidian block I am being pushed on is at z -235.