Skip to content

Versions

Daniel edited this page Jul 17, 2023 · 1 revision

Overview

Versions are often specific to a certain modloader and game version.

Getting a version's information: ModrinthVersion

To get a version's information you'll need to create an instance of ModrinthVersion, which can be done in one of two ways:

# Where `zzz` is the project's slug or ID
project = modrinth.Projects.ModrinthProject('zzz')

# This is the first method, which is recommended
project.getVersion('1.20.1-1.0.0')

# Alternatively
Version.ModrinthVersion(project, '1.20.1-1.0.0')
Clone this wiki locally