feat: 1.20 port
This commit is contained in:
56
forge/build.gradle
Normal file
56
forge/build.gradle
Normal file
@@ -0,0 +1,56 @@
|
||||
plugins {
|
||||
id 'com.github.johnrengelman.shadow'
|
||||
}
|
||||
|
||||
loom {
|
||||
forge {
|
||||
mixinConfig "skinfix.mixins.json"
|
||||
}
|
||||
}
|
||||
|
||||
architectury {
|
||||
platformSetupLoomIde()
|
||||
forge()
|
||||
}
|
||||
|
||||
configurations {
|
||||
common {
|
||||
canBeResolved = true
|
||||
canBeConsumed = false
|
||||
}
|
||||
compileClasspath.extendsFrom common
|
||||
runtimeClasspath.extendsFrom common
|
||||
developmentForge.extendsFrom common
|
||||
|
||||
// Files in this configuration will be bundled into your mod using the Shadow plugin.
|
||||
// Don't use the `shadow` configuration from the plugin itself as it's meant for excluding files.
|
||||
shadowBundle {
|
||||
canBeResolved = true
|
||||
canBeConsumed = false
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
forge "net.minecraftforge:forge:$rootProject.forge_version"
|
||||
|
||||
|
||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||
shadowBundle project(path: ':common', configuration: 'transformProductionForge')
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property 'version', project.version
|
||||
|
||||
filesMatching('META-INF/mods.toml') {
|
||||
expand version: project.version
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
configurations = [project.configurations.shadowBundle]
|
||||
archiveClassifier = 'dev-shadow'
|
||||
}
|
||||
|
||||
remapJar {
|
||||
input.set shadowJar.archiveFile
|
||||
}
|
||||
1
forge/gradle.properties
Normal file
1
forge/gradle.properties
Normal file
@@ -0,0 +1 @@
|
||||
loom.platform=forge
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.magicterra.skinfix.forge;
|
||||
|
||||
import net.magicterra.skinfix.SkinFixMod;
|
||||
import net.minecraftforge.fml.common.Mod;
|
||||
|
||||
@Mod(SkinFixMod.MOD_ID)
|
||||
public final class SkinFixModForge {
|
||||
public SkinFixModForge() {
|
||||
// Run our common setup.
|
||||
SkinFixMod.init();
|
||||
}
|
||||
}
|
||||
29
forge/src/main/resources/META-INF/mods.toml
Normal file
29
forge/src/main/resources/META-INF/mods.toml
Normal file
@@ -0,0 +1,29 @@
|
||||
modLoader = "javafml"
|
||||
loaderVersion = "[47,)"
|
||||
#issueTrackerURL = ""
|
||||
license = "MIT"
|
||||
|
||||
[[mods]]
|
||||
modId = "skinfix"
|
||||
version = "${version}"
|
||||
displayName = "SkinFix"
|
||||
authors = "Gardel"
|
||||
description = '''
|
||||
Fix Minecraft does not load skin png not prefix with minecraft.net
|
||||
'''
|
||||
logoFile="assets/skinfix/icon.png"
|
||||
|
||||
[[dependencies.skinfix]]
|
||||
modId = "forge"
|
||||
mandatory = true
|
||||
versionRange = "[47,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.skinfix]]
|
||||
modId = "minecraft"
|
||||
mandatory = true
|
||||
versionRange = "[1.20.1,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
6
forge/src/main/resources/pack.mcmeta
Normal file
6
forge/src/main/resources/pack.mcmeta
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"pack": {
|
||||
"description": "skinfix resources",
|
||||
"pack_format": 15
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user