Back to mods
Mine Prevention project artwork

Modrinth · Minecraft mod

Mine Prevention

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

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Mine Prevention release matches 26.1.2?

Updated last month
Best match for your filters 1.1.0
Game version 26.1, 26.1.1, 26.1.2
Loader Fabric

Mine Prevention 1.1.0 targets 26.1, 26.1.1, 26.1.2 with Fabric. It must be installed on the client. Do not install it on the dedicated server. All 1 required mods have matching files.

Where it goes

Is Mine Prevention required on the client, server, or both?

It must be installed on the client. Do not install it on the dedicated server.

Client Required
Dedicated server Not supported
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This file is marked client-only.

What else does Mine Prevention 1.1.0 need?

1.1.0 on 26.1.2. Every mod below is checked against that same setup.

All 1 required mods have matching files

Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

2 listed on this file 1 pulled in by one of those mods
Mod Menu Optional for Mine Prevention 1.1.0
optional
Matching file found Matched file: 18.0.2
Fabric API Needed by Mine Prevention 1.1.0
required
Matching file found Matched file: 0.155.3+26.1.2

1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Mine Prevention without breaking your instance.

Built for Mine Prevention 1.1.0 on 26.1.2. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.1.0. It targets 26.1, 26.1.1, 26.1.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

  3. 03

    Put it on the correct side

    It must be installed on the client. Do not install it on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.1.0. It opens that exact file at the source.

About this project

What does Mine Prevention add?

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

Project description from Modrinth.

Pick your setup

Mine Prevention by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

13 available setups

Showing the newest 12 of 13 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Mine Prevention versions and loaders

1 of 8 releases match
Clear filters

Looking for an older file? The official Modrinth project page is in Resources.