execute store result score @s jjc_portal_x run data get entity @s Pos[0]
execute store result score @s jjc_portal_z run data get entity @s Pos[2]
scoreboard players operation @s jjc_portal_x /= #512 jjc_main
scoreboard players operation @s jjc_portal_z /= #512 jjc_main
scoreboard players operation @s jjc_portal_x *= #512 jjc_main
scoreboard players operation @s jjc_portal_z *= #512 jjc_main
execute store result storage colosseum_of_fools:zejjc x double 1 run scoreboard players add @s jjc_portal_x 256
execute store result storage colosseum_of_fools:zejjc z double 1 run scoreboard players add @s jjc_portal_z 256

execute store result score @s jjc_portal_x run data get entity @s Pos[0]
execute store result score @s jjc_portal_y run data get entity @s Pos[1]
execute store result score @s jjc_portal_z run data get entity @s Pos[2]

function colosseum_of_fools:world/to_zejjc/2 with storage colosseum_of_fools:zejjc