To stop players from using transparent texture packs to reveal underground ores and caves, you must enforce Anti Xray Model as a required server resource pack.
Configuring Your Server Properties
Instead of asking players to enable the pack manually in their client menus, you can configure your server to send the pack automatically whenever someone joins:
1. Locate the Anti Xray Model file and place it in your server's designated resource pack directory or hosting location.
2. Open your server.properties file in a text editor.
3. Add the link or path to the pack under the resource-pack setting.
4. Set require-resource-pack=true so players cannot decline the download and bypass the occlusion models.
5. Restart the server to apply the changes.
Verifying Load Priority
When testing the pack locally in your own client's Options > Resource Packs menu before pushing it to the server, always move Anti Xray Model to the very top of the active list. In Minecraft, resource packs higher on the list override those below them. Keeping this pack at the top ensures its 327 custom 3D block models cannot be overwritten by a player's local see-through texture pack. Because the pack relies on a single texture file, joining players will experience fast loading times when the server sends the file.
