Mine Prevention

Mine Prevention

This is a simple client-side mod that gives you the ability to allow or disallow the mining of certain blocks.

by
1.3K Downloads
fabricequipmentgame-mechanicsutility
Rent Server with this Mod

Screenshots

Deny Filter
Allow Filter

About this Mod

Mine Prevention

GitHub license
GitHub release
GitHub issues

This is a simple client-side mod that gives you the ability to avoid mining certain blocks.

For example, block all ores while you're mining without Silktouch or Fortune so you can save them for later! Or perhaps only allow yourself to mine large amethyst buds so that you don't accidentally break the budding block!

Usage

Simply press 'M' to open the GUI and select the blocks you want to block or allow. The keybind can be changed in the controls menu, and you can also choose to remove it in favour of ModMenu.

The config file for this mod is located in the config folder of your Minecraft directory, and is called mineprevention.json. It only contains a deny list, to minimise the amount of data stored.

Images

The options screen with all ores denied.

The options screen with only large amethyst buds allowed.

Contributing

Contributions and suggestions are always welcome! Please limit all issues to only one feature at a time - feel free to open multiple at once if you have many ideas. Similarly, please limit pull requests to a single feature at a time and try to follow the existing code style.

To further discuss or get notifications of new updates, check out my Discord. If you like what I do, consider supporting me on Ko-Fi! ko-fi

Available Versions

Mine Prevention 1.0.3release
MC 1.21.11fabric
December 31, 2025
1.0.2-mc1.21.9release
MC 1.21.9, 1.21.10fabric
October 19, 2025
Mine Prevention 1.0.2release
MC 1.21.6, 1.21.7, 1.21.8fabric
July 13, 2025
Mine Prevention 1.0.1release
MC 1.21.5fabric
March 13, 2025
Mine Prevention 1.0.0release
MC 1.21.4fabric
December 13, 2024

How to Install Mine Prevention on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "Mine Prevention". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+5 more)

Server-side

Unsupported

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Mine Prevention server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is Mine Prevention compatible with fabric?

Mine Prevention officially supports fabric for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Mine Prevention – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Mine Prevention consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Mine Prevention with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU Lesser General Public License v3.0 only
Server-side
Unsupported

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.4