I made this X-Axis endstop trigger to make the Micro Swiss NG Direct Drive Extruder for Creality CR-10 / Ender 3 Printers fit into my Anycubic Mega X. It works on this printer but is not manufactured specifically for it, therefore I use the X-Axis endstop mount from the MK4 X-Carriage Kit and lift the endstop switch by about 4-5mm (using 2x M3 hex nuts):
https://www.thingiverse.com/thing:4555831/files
After mounting the X-Axis endstop trigger onto the left two holes that are meant for a CR/BL-Touch mount, the X-Axis endstop works fine and the extruder stepper motor won't collide with the gantry anymore.
The author marked this model as their own original creation.