1 2 3 4 5 6 7
# get render distance # for each current chunk +- render distance (and not in scoreboard) # check for end_portal_frame # get positions # fill chunk with air # re-place end_portal_frame # set scoreboard values to 1 for processed chunk