There are even tools that calculate the probability of a cheater playing on a server. Other developers allow you to use any build but will keep a full record as regards the usage of different mods or the behavior and movements of the player to determine exactly how they dug certain mines and extracted resources.
Many modders try to create their own launcher or build to control players and limit the possibility of installing extra mods, say, X-Ray used to see through the game world and detect the location of ores or netherite. Xray Ultimate: Detecting Ores in Minecraft