have you tried to make it so spikes arent a solid block like TNT, glass, or leaves? you can recreate this bug by making the texture of any block (vanilla or modded) transparent. same thing happened with my old texture pack, the pumpkins were transparent, thus you could use them to xray.