How to teleport based on the custom data of a marker entity
How do i do something like this that works:
Tick function:
data modify storage macro coords set value {"x":0.0,"y":0.0,"z":0.0}execute store result storage macro coords.x double 1 run execute on passengers run data get entity @s data.xvelexecute store result storage macro coords.y double 1 run execute on passengers run data get entity @s data.yvelexecute store result storage macro coords.z double 1 run execute on passengers run data get entity @s data.zvelfunction datapack:move with storage macro coordsInfo:
I have a block display with a marker riding it. The block display executes the function.
Move function:
$tp @s ~$(x) ~$(y) ~$(z)Error: It only works with non-decimal numbers.