π ViaVersion
Overviewβ
Oraxen supports ViaVersion for its generated resource pack. With pack.generation.multi-version-packs disabled, it supports Minecraft versions 1.21.4 through 26.3 with version-specific overlays for core shaders. With the setting enabled, it supports clients from Minecraft 1.20 through 26.3 by generating a pack for each version and sending the matching pack when a player joins.
pack.generation.multi-version-packs is disabled by default.
Usageβ
On a 1.21.4+ server, ViaVersion support for Minecraft 1.21.4 through 26.3 works out of the box. Enable pack.generation.multi-version-packs in settings.yml to support additional versions. The setting is documented here.
It is recommended to read the text below to better understand how everything works. It will only take a short amount of time and will be well worth it.
Resource packs are divided into several categories.
Shaders - Used for features such as TextEffects and animated glyphs.
Item Models / Model Definitions - The modern system introduced in Minecraft 1.21.4+ for assigning item models and handling states such as pulling models.
Predicates / Custom Model Data - The legacy system used in Minecraft 1.21.3 and below for assigning item models and handling states such as pulling models.
Item Models are a major improvement over Predicates. They offer better performance and support features that Predicates do not. Because of this, some features cannot be supported across all versions. For example, TextEffects do not exist on 1.21.3 and below, and some conditions from Model Properties are only available through Item Model Definitions.
If you are running a 1.21.4+ server...
By default, Oraxen generates a single pack for Minecraft 1.21.4 through 26.3. Since shaders differ between versions, Oraxen places them in version-specific folders inside that pack.
If you enable pack.generation.multi-version-packs, Oraxen also generates separate packs for older Minecraft versions using Predicates and Custom Model Data. Features that depend on newer shader support, such as TextEffects, are not generated for those versions and will not work there.
If you are running a 1.21.3 or lower server...
By default, Oraxen generates a single pack for that server version and other compatible older versions. However, this pack will not work for 1.21.4+ clients because those versions use a different resource pack format and rely on Item Models instead of Predicates.
If you enable pack.generation.multi-version-packs, Oraxen will also generate 1.21.4+ packs and send the correct one to players depending on their client version.
Please note that some features cannot be supported across all versions due to Minecraft's version differences. This mainly affects features that rely on Item Model Definitions, which were introduced in 1.21.4, as well as TextEffects, which are unavailable on 1.21.3 and below.
Imported packsβ
Oraxen handles version-specific compatibility for its generated resource pack assets. Imported resource packs must provide their own compatibility for the Minecraft versions they intend to support, including any necessary overlays.
For example, importing a resource pack designed for 1.21.4 does not automatically make it compatible with 26.2. Supporting every version difference would require an extensive resource-pack translation system, similar to how ViaVersion translates network packets between Minecraft versions. Such a system would be difficult to maintain and is currently outside Oraxen's scope.
Oraxen supports merging imported resource packs and their overlays, but does not guarantee cross-version compatibility for third-party models, textures or shaders.