
Modrinth · Minecraft mod
PreventBuild
A simple but flexible mod that prevents unwanted player actions described in the custom configs
Quick answer
Which PreventBuild release matches 26.2?
PreventBuild 2.0.0 targets 26.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 PreventBuild required on the client, server, or both?
It must be installed on the client. Do not install it on the dedicated server.
This file is marked client-only.
What else does PreventBuild 2.0.0 need?
2.0.0 on 26.2. Every mod below is checked against that same setup.
Install Fabric API first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.
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 PreventBuild without breaking your instance.
Built for PreventBuild 2.0.0 on 26.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 2.0.0. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.
- 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.
- 03
Put it on the correct side
It must be installed on the client. Do not install it on the dedicated server.
- 04
Pick the file you checked
Use the “Get this file” button beside 2.0.0. It opens that exact file at the source.
About this project
What does PreventBuild add?
PreventBuild
Adds client-side control over preventing the player from performing certain actions
that are set in configs.
Configs, in turn, have a very flexible YAML structure that allows you to build complex
logical conditions describing what actions the mod should prevent.
With PreventBuild, you can prevent:
- placing/attacking a block;
- attacking an entity;
- interacting with a block/entity
- using an item;
...depending:
- block/item/entity;
- block/player's coordinates;
- a specific block's state;
- whether the held item has a specific custom name or enchantment;
- and much more
This mod simply cancels the player's actions on client-side, so it's entirely client-side.
How to use
Visit the mod's Wiki
2.0 update
There were a few issues I couldn't fix with the original implementation approaches.
And the best decision was to recreate the mod from a scratch.
Here are essential points that differ 2.x from 1.x:
- More stable and direct preventions;
- Weird custom .cfg configs format + unstable custom parser → YAML + parser dependency;
- Translation keys → Identifiers;
- Custom ore dictionaries → custom and built-in tags;
- Simple GUI instead of commands-only;
- Cleaner code;
- Adequate examples of complex conditions on wiki.
Official links to download the mod
Contacts
- GitHub: https://github.com/Redheris/PreventBuild/issues
- Discord: Server
Project description from Modrinth.
Pick your setup
PreventBuild by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
26.3
1 loader build26.2
1 loader build26.1.2
1 loader build26.1.1
1 loader build26.1
1 loader build1.21.11
1 loader build1.21.10
1 loader build1.21.9
1 loader build1.21.8
1 loader build1.21.7
1 loader build1.21.6
1 loader build1.21.5
1 loader buildShowing the newest 12 of 15 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
PreventBuild versions and loaders
2.0.0
preventbuild-2.0.0+mc26.2.jar
4 Nov 2026
Looking for an older file? The official Modrinth project page is in Resources.