From b37d52f5d9d9f494a86bfc100bc3230300eb9787 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 23 Apr 2024 13:53:43 +0100 Subject: [PATCH] Add Parchment mappings --- mod/build.gradle | 14 ++++++++------ mod/gradle.properties | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mod/build.gradle b/mod/build.gradle index c96564f6..4d6cdd8d 100644 --- a/mod/build.gradle +++ b/mod/build.gradle @@ -19,7 +19,10 @@ subprojects { dependencies { minecraft "com.mojang:minecraft:${rootProject.minecraft_version}" - mappings loom.officialMojangMappings() + mappings loom.layered() { + officialMojangMappings() + parchment("org.parchmentmc.data:parchment-${project.minecraft_version}:${project.parchment_version}@zip") + } } } @@ -33,11 +36,10 @@ allprojects { group = rootProject.maven_group repositories { - // Add repositories to retrieve artifacts from in here. - // You should only use this when depending on other mods because - // Loom adds the essential maven repositories to download Minecraft and libraries from automatically. - // See https://docs.gradle.org/current/userguide/declaring_repositories.html - // for more information about repositories. + maven { + name "ParchmentMC" + url "https://maven.parchmentmc.org" + } maven { url "https://api.modrinth.com/maven" content { diff --git a/mod/gradle.properties b/mod/gradle.properties index 8d187eab..946c8817 100644 --- a/mod/gradle.properties +++ b/mod/gradle.properties @@ -12,6 +12,8 @@ mod_source_url=https://github.com/CivPlatform/map-sync mod_issues_url=https://github.com/CivPlatform/map-sync/issues minecraft_version=1.18.2 +# https://parchmentmc.org/docs/getting-started +parchment_version=2022.11.06 enabled_platforms=fabric,forge # https://fabricmc.net/versions.html