Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.20.4] Change how resource pack grouping works and group mod data packs - take 2 #367

Merged
merged 18 commits into from
Dec 14, 2023

Conversation

lukebemish
Copy link
Contributor

Supersedes #138

Basically, the current approach of grouping resources packs has some... quirks. First of all, it requires extensive, sometimes non-obvious special-casing when iterating available packs or PackResources. Second of all, it doesn't play nice with modern resource pack tools added by mojang in recent versions, such as overlays or filters. Finally, it does not group datapacks, or ensure consistent ordering of datapacks that isn't dependent on the order mods are added to a world. This PR is an attempt to solve these problems.

It is accompanied by neoforged/NeoForgeSPI#1 and neoforged/FancyModLoader#21, to allow mods to opt out of their resources being grouped, and will need updated once those are merged.

@sciwhiz12 sciwhiz12 added enhancement New (or improvement to existing) feature or request 1.20 Targeted at Minecraft 1.20 breaking change Breaks binary compatibility labels Dec 10, 2023
@lukebemish lukebemish changed the title [Breaking] Change how resource pack grouping works and group mod data packs - take 2 [1.20.4] Change how resource pack grouping works and group mod data packs - take 2 Dec 11, 2023
@lukebemish
Copy link
Contributor Author

lukebemish commented Dec 13, 2023

Testing locally, this seems to fix #381 - I'm able to correctly load a mod that uses overlays. Is it worth adding some sort of test cases for this somewhere? Not sure how tests work in neoforge.

Copy link
Member

@XFactHD XFactHD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@XFactHD XFactHD merged commit 70cbb5b into neoforged:1.20.x Dec 14, 2023
3 checks passed
@lukebemish lukebemish deleted the grouped-packs branch December 23, 2023 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.20 Targeted at Minecraft 1.20 breaking change Breaks binary compatibility enhancement New (or improvement to existing) feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants