covers1624 / WorkspaceTool

MIT License
3 stars 1 forks source link

Add ability to load other mappings #4

Open ApexModder opened 2 years ago

ApexModder commented 2 years ago

Add the ability to load other mappings (specificity parchment) into the workspace

Could be added to the framework block

framework(Forge117) {
        ...
        mappings_channel = 'parchment'
        mappings_version = '1.18.2-2022.07.03-1.19'
        ...
}
covers1624 commented 1 year ago

Notes: settings.gradle: Add maven { url 'https://maven.parchmentmc.org' } bellow forge repo

build.gradle: Add id 'org.parchmentmc.librarian.forgegradle' version '1.+' apply false bellow id 'net.minecraftforge.gradle.patcher' line Add apply plugin: 'org.parchmentmc.librarian.forgegradle' after each use of apply plugin: 'net.minecraftforge.gradle.patcher'

Replace MAPPING_CHANNEL = 'official' with MAPPING_CHANNEL = 'parchment' Replace MAPPING_VERSION = '(.*)' with MAPPING_VERSION = '${parchment_version}-$1'