Skip to content

PreventBuild

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

Fabric
Loaders
Fabric
Downloads on Modrinth
1.1K
Followers on Modrinth
2
versions
20
Updated
November 4, 2026Nov 4
Published
in 2025

At a glance

Runs on Fabric
For Minecraft 1.21–1.21.1, 1.21.4–26.3
Client only — no need to install it on the server
Latest version — 2.0.0 from November 4, 2026
Requires Fabric API
License MIT — free
Where it's needed
In gamerequiredOn servernot needed

Install in the game only; not needed on the server

Game versions1.21–1.21.1, 1.21.4–26.3

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

FAQ

How to install PreventBuild?

Install Fabric for your Minecraft version, download PreventBuild for the same version and loader, put the file into the mods folder and launch the game with the loader profile.

Which Minecraft versions does PreventBuild support?

PreventBuild has builds for Minecraft 1.21–1.21.1, 1.21.4–26.3.

Is PreventBuild needed on the server?

Client only — no need to install it on the server

License and source
MIT Licensefree to use and share with credit to the author
Original — Modrinth↗Files unchanged, verified with SHA-512Is this your mod? For rights holders

The site uses cookies: the necessary ones for sign-in and the theme, plus the Yandex Metrica and LiveInternet visit counters — they show us how the site is used. We have no advertising cookies. More