Mount your adxl345 to your X-Carriage MK4 on your i3 Mega.
Supports might be needed. Best use Brim to assure bed adhesion. Print in any material and any color you like although print in ABS or ASA when you have your printer housed for technical materials.
For mounting, change the top screw from M3x6 to M3x12.
This mount is suitable for the adxl345 variant with 15mm hole spacing and 20mm width of the pcb. Please check your sensor before printing it.