I tried to fix it so hopefully @Supercontinent if your seeing this...... i hope this project achieves what you are trying to do
i just rearranged some blocks and added the set x block (compare the original if you want)