This is a regolable foot for furniture. I haven't tried it but i think this should work. My tip is to use this in small furniture like a bedside table or similar.
If you scale up and down in the equal percentage the 2 pieces, I think that you can fit to your specific project
PETG or ABS is recommended. But i think that PLA shouldn't have problems