mc add
mc add [OPTIONS] <MOD_SLUG>...
Adds mods to the modrinth group of the manifest’s mods block. Each MOD_SLUG is the
mod’s identifier on the mod registry. The latest version compatible with the
configured Minecraft version and loader is looked up and pinned; the command
fails if a mod cannot be found for that combination.
A mod loader must be configured under minecraft before mods can be
added.
Changes take effect the next time the instance starts, which also installs any required dependencies — see Managing Mods.
Options
--manifest-path <PATH>— path tomc.kdl. Defaults to./mc.kdl.--lockfile-path <PATH>— path tomc.lock. Defaults to./mc.lock.
Examples
mc add lithium
mc add carpet servux