Tag Exclusion
Tag Exclusion is a Fabric library that lets data packs remove individual entries from a tag without replacing the whole tag file.
What it does
Tag entries in a data pack normally add to a tag, and replacing a tag means rewriting every entry it holds. The library provides an exclusion entry, marked with a leading exclusion mark, that removes one named entry from the tag and from any earlier entries in the same tag file. The entry mark itself is optional on the entry being removed, so a short form is available when writing data packs by hand.
Exclusions also work through the standard expanded format, so a tag file can mix ordinary and excluded entries. For mod developers, data generation can add tag exclusions with extension methods on TagAppender. Mods that generate tags this way declare a hard dependency on Tag Exclusion, and generated run configurations must be regenerated in the IDE after adding it.
Tag Exclusion requires Fabric API. Only the server needs it, and players join without installing anything. The code is released under the MIT License and is open source. Builds cover 1.21 – 26.1.2 with files for 1.21, 1.21.1, 1.21.11, 26.1, 26.1.1 and 26.1.2, and the latest file is 1.1.1+mc26.1 for 26.1.2, published 2026-03-25.
Key features
Removing tag entries
A data pack can remove a single entry from a tag that another file added, without rewriting the tag.
Abbreviated exclusion syntax
An exclusion can be written in a short form in which the leading entry mark is optional.
Expanded format support
Exclusions can be placed in the standard expanded tag format alongside ordinary entries.
Data generation helpers
Extension methods on TagAppender let generated tag files include exclusions.
Gallery
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Requirements
Dependencies declared by the latest file for each loader.
Required 1
Use cases
Who it’s for: Data pack authors who want to adjust vanilla or modded tags, and mod developers who generate tag data and need exclusion entries.
How it compares
GK1H Tags is a Fabric and NeoForge option for 1.21.1 with a server required and client optional environment, and it is open source under the MIT License. AutoTag is Fabric only for 1.18.2 – 1.20.1, runs on client and server, and is open source under the MIT License. Exclusions Lib targets Fabric, Forge and NeoForge for 1.20.1 – 1.21.6, is server-side only like Tag Exclusion, and is not open source, released under the Creative Commons Attribution 4.0 license.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Tag Exclusion | Fabric | 1.21 – 26.1.2 | Server-side only | 2026-03-25 |
| GK1H Tags | Fabric and NeoForge | 1.21.1 | Server required, client optional | 2025-12-13 |
| AutoTag | Fabric | 1.18.2 – 1.20.1 | Client and server | 2023-07-07 |
| Exclusions Lib | Fabric, Forge and NeoForge | 1.20.1 – 1.21.6 | Server-side only | 2026-01-21 |
Questions
Does Tag Exclusion need Fabric API?
Does the server need Tag Exclusion for players to join?
Which game versions does Tag Exclusion support?
In the catalog
Tag Exclusion is one of 3,514 Library mods on ModsFinder, and one of 2,348 Library mods for Fabric. 15,189 mods support Minecraft 26.1.2.
More from ThePotatoArchivist
Similar mods
What the author says
This library is now obsolete on 26.1+, as Fabric API and Neoforge now both contain ways to remove entries from tag files. A library & utility to allow removing entries from tags, to avoid having to use "replace": true in datapacks.
Official listing
- Modrinth page
- modrinth.com/mod/tag-exclusion
- Owner
- ThePotatoArchivist
- Published
- 2026-01-23
- Updated on Modrinth
- 2026-03-25
- Facts verified
- 2026-10-15
