Skip to content

[26.1] Add conditional model loader#3184

Open
XFactHD wants to merge 1 commit into
neoforged:26.2.xfrom
XFactHD:conditional_model_loader
Open

[26.1] Add conditional model loader#3184
XFactHD wants to merge 1 commit into
neoforged:26.2.xfrom
XFactHD:conditional_model_loader

Conversation

@XFactHD

@XFactHD XFactHD commented May 18, 2026

Copy link
Copy Markdown
Member

This PR adds the conditional model loader which allows guarding a model behind loading conditions. This is primarily intended for models referencing textures from other mods which may not be present in order to reduce the amount of "missing texture" log spam at resource (re)load.
If needed, the loader can be extended to also support loading a model from a nested JSON object. This would allow guarding a model which uses yet another, potentially missing loader. Allowing the "primary" model to be a reference to another file however cannot be added as it would defeat the whole purpose of this loader.

@XFactHD XFactHD added enhancement New (or improvement to existing) feature or request area: rendering Related to rendering area: data driven This request involves a data driven system 26.1 Targeted at Minecraft 26.1 labels May 18, 2026
@neoforged-pr-publishing

Copy link
Copy Markdown
  • Publish PR to GitHub Packages

@XFactHD XFactHD changed the base branch from 26.1.x to 26.2.x June 23, 2026 02:27
@XFactHD XFactHD force-pushed the conditional_model_loader branch from 01dd4a9 to 35a55df Compare June 23, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

26.1 Targeted at Minecraft 26.1 area: data driven This request involves a data driven system area: rendering Related to rendering enhancement New (or improvement to existing) feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant