Skip to content

[NeoForge] Invalid mod spec #10

@byr0n3

Description

@byr0n3

When trying to load this mod with the (currently) latest version of NeoForge, the mod is unable to be loaded due to an invalid mod spec. I managed to fix the spec myself by changing it to the following:

neoforge.mods.toml

modLoader = "javafml" #mandatory
loaderVersion = "[2,)"
#
license = "MIT"

[[mods]]
modId = "hunt" #mandatory
version = "1.2.1" #mandatory
displayName = "Cobblemon Hunt" #mandatory
authors = "bencrow11"
description = "A Cobblemon Mod that rewards players for capturing Pokemon."
logoFile = "icon.png" #optional

[[dependencies.hunt]] #optional
modId = "neoforge" #mandatory
type = "required"
versionRange = "[21,)" #mandatory
ordering = "NONE"
side = "BOTH"

[[dependencies.hunt]]
modId = "minecraft"
type = "required"
versionRange = "[1.21.1,)"
ordering = "NONE"
side = "BOTH"

[[dependencies.hunt]]
modId = "cobblemon"
type = "required"
versionRange = "[1.6.0,)"
ordering = "NONE"
side = "BOTH"

In case you stumble onto this issue and the author hasn't fixed it yet, you can do so yourself by opening the .jar with software like WinRAR or 7zip. Go into the META-INF folder and replace the contents of neoforge.mods.toml with the text from the code block above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions