# dimension:the_end/load_chunk/-16_0_0
# called by: dimension:the_end/new_chunks

scoreboard players operation #maddons.chunk_ maddons.x = #maddons.chunk maddons.x
scoreboard players operation #maddons.chunk_ maddons.y = #maddons.chunk maddons.y
scoreboard players operation #maddons.chunk_ maddons.z = #maddons.chunk maddons.z

execute store result storage magical_addons:temp data.dimension.x int 1 run scoreboard players operation #maddons.chunk_ maddons.x -= #16 maddons.constant
execute store result storage magical_addons:temp data.dimension.y int 1 run scoreboard players operation #maddons.chunk_ maddons.y += #0 maddons.constant
execute store result storage magical_addons:temp data.dimension.z int 1 run scoreboard players operation #maddons.chunk_ maddons.z += #0 maddons.constant

function magical_addons:dimension/the_end/load_chunk with storage magical_addons:temp data.dimension