Forge version 1.18.2-40.0.18
introduced some changes to how custom registries and tags work to support Mojang's new universal tag system.
The differences between tags in 1.18.1 and 1.18.2 were great enough to warrant breaking changes in Forge where necessary.
For simplicity, custom Forge registries are opt-in for universal tags.
To enable tags for a registry, call RegistryBuilder#hasTags()
.
This tells Forge to run the necessary setup to allow tags for a custom registry.
Tag-enabled forge registries will be registered to the root registry in Registry
to promote as much compatibility with vanilla systems as possible.