Displaying the mouse ring on the ground and encountering z-fighting issues when using multimaterial

Mix materials don’t support code injection, so you can’t use CustomMaterial or material plugins for that.

@PirateJC has made an excellent node material to achieve what you want to do, maybe you can use it / adapt it for your project :