Note fabric-api version may not be the correct version for the given minecraft version. See the CurseForge or Modrinth page.
# Fabric Properties
# check these on https://fallen-breath.github.io/fabric-versions/?{check_url_query}
minecraft_version={minecraft_version}
parchment_version={parchment_version}
# Fabric Mod Metadata
minecraft_dependency={minecraft_version}
# Build Information
# The target mc versions for the mod during mod publishing, separated with \n
game_versions={minecraft_version}
# Dependencies
# fabric_api_version={fabric_version}
# Fabric Properties
# check these on https://fallen-breath.github.io/fabric-versions/?{check_url_query}
minecraft_version={minecraft_version}
yarn_mappings={yarn_version}
# Fabric Mod Metadata
minecraft_dependency={minecraft_version}
# Build Information
# The target mc versions for the mod during mod publishing, separated with \n
game_versions={minecraft_version}
# Dependencies
# fabric_api_version={fabric_version}
minecraft_version={minecraft_version}
loader_version={loader_version}
# Dependencies
fabric_version={fabric_version}
minecraft_version={minecraft_version}
yarn_mappings={yarn_version}
loader_version={loader_version}
# Dependencies
fabric_version={fabric_version}
dependencies {
minecraft "com.mojang:minecraft:{minecraft_version}"
mappings officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:{loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "{fabric_maven}{fabric_version}"
}
dependencies {
minecraft "com.mojang:minecraft:{minecraft_version}"
mappings "net.fabricmc:yarn:{yarn_version}:v2"
modImplementation "net.fabricmc:fabric-loader:{loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "{fabric_maven}{fabric_version}"
}
Mappings can be auto updated by using the following command. See the wiki page for more help.
See fabricmc.net for more details
The recommended loom version, see fabricmc.net