Skip to content

How exactly does it infer minecraft version and mod version? #59

Answered by Kir-Antipov
qouteall asked this question in Q&A
Discussion options

You must be logged in to vote

In my personal opinion, I wouldn't rely on this resolution strategy, as it serves as a last resort solution, implemented for cases when no other information is available for the action to extract.

Since you are a mod developer, I assume that you are looking to publish a mod (either Fabric, Forge, or Quilt). In this case, you don't need to worry at all, because mc-publish will obtain the game version directly from the minecraft entry in the dependency list of your mod's metadata file (either fabric.mod.json, mods.toml, or quilt.mod.json, respectively). For example:

"depends": {
  "minecraft": "1.18.x"
},

If, for some reason, you still want to use tags as a primary indicator of the Minecraf…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by qouteall
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants