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

Extra maps #15

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Extra maps #15

wants to merge 8 commits into from

Conversation

Matyrobbrt
Copy link
Member

This PR implements extra maps, which are used for additional files (like pack.mcmeta and mixin json files)
For now, only a pack.mcmeta extra map is implemented, in the forge version.
Note: this PR was practically not possible without the breaking changes to AbstractConvertTask.

@Matyrobbrt Matyrobbrt added the enhancement New feature or request label Dec 3, 2022
@lukebemish
Copy link
Member

Hmm, could this be used to make mixin configs too?

Copy link
Member

@PaintNinja PaintNinja left a comment

Choose a reason for hiding this comment

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

I'm not a fan of putting unrelated file stuff inside the same DSL. mods.groovy isn't really intended for this.

If you really want to go down this route, I also think you should make it a bit smarter than just a plain Groovy version of the existing json/toml. For example, the Mixin compatibilityLevel should be inferred based on the MC version range in the deps.

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

Successfully merging this pull request may close these issues.

None yet

3 participants