Back to mods
PreventBuild project artwork

Modrinth · Minecraft mod

PreventBuild

A simple but flexible mod that prevents unwanted player actions described in the custom configs

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

Quick answer

Which PreventBuild release should I use?

Updated 27 days ago
Latest stable file 2.0.0
Game version 26.3
Loader Fabric

PreventBuild 2.0.0 targets 26.3 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.

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 PreventBuild 2.0.0 need?

2.0.0. Change the file and its required mods may change too.

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.

3 listed on this file 1 pulled in by one of those mods
Fabric API Needed by PreventBuild 2.0.0
required
Matching file found Matched file: 0.168.0+26.3
Mod Menu Optional for PreventBuild 2.0.0
optional
Matching file found Matched file: 21.0.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 PreventBuild without breaking your instance.

Built for PreventBuild 2.0.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 2.0.0. It targets 26.3 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 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

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.

15 available setups

Showing 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

20 of 20 releases match

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