Exclusions Lib Mod [2025 Update] – Essential Library for JSON-Based Datapacks

download Skip to Downloads

When working with Minecraft datapacks, JSON logic can quickly become messy, especially when you need precise control over structure placement and overlap rules. Exclusions Lib Mod, compatible with Minecraft 1.21.1 and 1.20.1, is designed to make that process far easier. While regular players won’t notice any visual changes, datapack creators and mod developers will appreciate the cleaner workflow this library provides.

Exclusions Lib Mod

What This Mod Does

Exclusions Lib is a lightweight library that adds advanced block predicates for datapacks, including the powerful
exclusions_lib:overlaps_structure check. This lets you exclude block generation in specific structures or areas, such as preventing ores from spawning inside villages or custom builds. Instead of juggling complicated JSON workarounds, you can write simple, readable conditions.

The mod supports Fabric, Forge, and Quilt, and it’s server-side only, meaning players don’t need to install it unless another mod directly depends on it.

Key Features

  • Adds overlaps_structure predicate for structure-aware block placement
  • Reduces complexity in datapack JSON logic
  • Works with vanilla and modded structures
  • Fully compatible with Fabric, Forge, and Quilt loaders
  • Server-only installation for dependency management

Screenshots:

Exclusions Lib Mod Screenshot 01

Exclusions Lib Mod Screenshot 02

Exclusions Lib Mod Screenshot 03

Exclusions Lib Mod Screenshot 04

Exclusions Lib Mod Screenshot 05

Why It Matters

Anyone who has built datapacks knows how painful it can be to manage structure logic in JSON. One datapack creator on Reddit described JSON predicates as “a constant headache when trying to control world-gen behavior.” Exclusions Lib tackles exactly that pain point, making world-gen control both more precise and easier to maintain.

For server admins, this also means fewer datapack conflicts and cleaner performance, since redundant or conflicting generation rules can be avoided entirely.

My Experience

I tested this mod on a Fabric server running custom datapacks, and the difference was immediate. Tasks that normally required long JSON chains were reduced to a single, clear predicate. It’s not a flashy mod, but it saves hours of debugging and troubleshooting.

Requires:

Minecraft Forge or Fabric API

How to install:

How To Download & Install Mods with Minecraft Forge

How To Download & Install Fabric Mods

How To Download & Install The Quilt Loader

1.20.1, 1.20
1.21.1, 1.21