mc-fabric-api/fabric-tag-api-v1
Joseph Burton 515ac533e3
Replace network synchronizer with utility methods (#5484)
* Remove network synchronizer

* Add utility methods to replace network synchronizer, and a few other utility methods

* Rename TestClientLevelContext -> TestServerConnection, TestServerConnection -> TestDedicatedServerConnection

* Threading documentation fixes

* Update Fabric client gametests to take advantage of new APIs

* Add test for waitForClientboundEntityUpdates method

* Fix typo

* Address review
2026-07-28 10:35:52 +01:00
..
src Replace network synchronizer with utility methods (#5484) 2026-07-28 10:35:52 +01:00
build.gradle [26.1.2] Tag File Entry Removals (#5365) 2026-05-14 13:11:38 +01:00
README.md [26.1.2] Tag File Entry Removals (#5365) 2026-05-14 13:11:38 +01:00

Fabric Tag API (v1)

This module contains APIs for working with data pack tags.

Tag aliases

Tag alias groups merge tags that refer to the same set of registry entries. The contained tags will be linked together and get the combined set of entries of all the aliased tags in a group.

Tag alias groups can be defined in data packs in the data/<mod namespace>/fabric/tag_alias/<registry> directory. <registry> is the path of the registry's ID, prefixed with <registry's namespace>/ if it's not minecraft.

The JSON format of tag alias groups is an object with a tags list containing plain tag IDs.

See the module javadoc for more information about tag aliases.

Tag entry removals

Tag entry removals may be used to remove entries from a tag.

These may be used to remove values from gameplay facing tags, to exclude specific entries from referenced tags from being applied via a tag's values field, or to just remove unwanted values.

All tag files contain an additional field: fabric:remove, which is an array of entries you wish to remove, following the same syntax as the values field.

See the module javadoc for more information about tag entry removals.