Skip to content

Exclusions Lib

A library for reducing headaches when working with json, and to give datapack makers new levers to play with!

FabricNeoForgeForge
Loaders
FabricNeoForgeForge
Downloads on Modrinth
61.9K
Followers on Modrinth
10
versions
10
Updated
January 21, 2026Jan 21
Published
in 2024
This is a library — other mods need it, and it adds nothing to the game by itselfRequired by 1 mods. Download it if another mod needs it.

At a glance

A library: other mods need it — required by 1 mods
Runs on Fabric, NeoForge and Forge
For Minecraft 1.21.1, 1.21.6 …
Server only — players don't need to install it
Latest version — 1.1.0-NEO from January 21, 2026
License CC-BY-4.0 — free
Where it's needed
In gamenot neededOn serverrequired

Install on the server only; players don't need it

Game versions1.20.1, 1.21.1, 1.21.6

A library for giving you more levers to use in vanilla json files.

Everything here is only needed on the server, and not the client, so feel free to build your datapacks based off of this!

Current Features: -A new block predicate, exclusions_lib:overlaps_structure: This predicate will take a block position (adjusted by an optional offset field, like most other predicates), and optionally a structures and/or range, and check whether it would overlap a structure. With a structures field, it only checks for certain structures, and with a value for a range (max 32), it will instead check an area around the position.

Use this to stop features from being placed overlapping structures! Or maybe you'd want an ore that only generates near a certain structure?

-Tag Exclusions (NOT IN NEOFORGE VERSION AS NEO ALREADY HAS THESE BUILT IN): Basically a blacklist field for tags. Want to make a tag that contains everything in #minecraft:small_flowers, except for wither roses? But you still want it to be compatible with every other mod that would add new flowers? Just add wither roses with its "excluded" field set to true, and now you've made a "normal flowers" tag! Is very powerful, allowing you to do all sorts of things, like removing other mod's edge case items from your own tags, while still keeping their item in the common tag you're pulling from, or even straight up removing entries from other mods' tags (or vanilla) yourself!

Example Usage, for a tag that will contain everything in #minecraft:small_flowers, EXCEPT for wither roses, along with a couple other things:

  "values": [
    "#minecraft:small_flowers",
    {
      "id": "minecraft:wither_rose",
      "excluded": true
    },
    "minecraft:apple",
    "minecraft:waxed_exposed_cut_copper_stairs"
  ]
}```

FAQ

How to install Exclusions Lib?

Install Fabric for your Minecraft version, download Exclusions Lib 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 Exclusions Lib support?

Exclusions Lib has builds for Minecraft 1.20.1, 1.21.1, 1.21.6.

Is Exclusions Lib needed on the server?

Server only — players don't need to install it

License and source
Creative Commons Attribution 4.0 Internationalfree to share with credit to the author and the license
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