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

Feature Request: Load Combined Data/Resource packs #18

Open
Dan-Mizu opened this issue Apr 8, 2023 · 3 comments
Open

Feature Request: Load Combined Data/Resource packs #18

Dan-Mizu opened this issue Apr 8, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@Dan-Mizu
Copy link

Dan-Mizu commented Apr 8, 2023

As a datapack developer, I'd appreciate if there was a way to make it so that Paxi could identify if a zip or directory contained both assets and data folders so that it could load both, without having to place both in each resourcepack and datapack directory within the paxi config folder.

That way, I could speed up development as I wouldn't have to archive my assets and place them into the resourcepack and load them EVERYTIME I make a change. To further this implementation, /reload would work like always to apply data changes, and F3+T should reload the resourcepack and its changes.

There would be the issue of conflicting pack.mcmeta versions, as mojang does not (understandably) keep them in sync between data and resource packs. Perhaps, there could be a custom value in the pack.mcmeta that specifies a version for data and version for resourcepack.

This implementation could be ideal for both developers and end-users/modpack devs as datapack devs could continue to ship datapacks and resourcepacks together in one file simplifying the process for users as they wouldn't have to drop that file in multiple directories and enable them manually.

@yungnickyoung
Copy link
Member

Hmm not sure about this one. I understand the convenience factor, but fundamentally Minecraft doesn't seem designed to handle all-in-one data/resource packs given the discrepency in pack.mcmeta version numbers. And I don't feel the onus is really on me to supply that feature.

I imagine supporting such a feature would also be confusing for most users, as it would probably warrant the addition of a third "mixed packs" subfolder in the paxi folder.

@Dan-Mizu
Copy link
Author

The way Mojang handles versioning of datapacks/resourcepacks in itself is already confusing but I agree to an extent. Versions are not really telling of a datapacks compatibility as an older pack could still work in a newer version if the commands it uses haven't changed, and the same can go for resourcepacks.

Thats beside the suggestion at hand though. I'd suggest detecting what an archive file provides whether it be data, assets, or both and leave directories up to the end user purely for sorting instead of using directory names to determine what packs provide, as well as trusting the user to have provided the correct files for their versions and ignoring the version property in the pack.mcmeta file.

Minecraft somewhat already functions this way by just providing a warning if version numbers are mismatched, and allowing you to load the packs anyway.

Think this would be the best way to implement the flexibility to cover all use cases.

@yungnickyoung
Copy link
Member

Alrighty, this isn't something I plan on adding in the near future but I agree it's a good idea so I'll leave it open as something I might add in future releases

@yungnickyoung yungnickyoung added the enhancement New feature or request label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants