Add Neoforge and upgrade template

Forge is not working but I can't really do anything about it
This commit is contained in:
axolotlmaid 2024-06-02 17:27:15 +01:00
parent f0cebb6252
commit 2690515316
20 changed files with 227 additions and 212 deletions

View file

@ -1,9 +1,5 @@
architectury {
common(rootProject.enabled_platforms.split(","))
}
loom {
accessWidenerPath = file("src/main/resources/optionsprofiles.accesswidener")
common rootProject.enabled_platforms.split(',')
}
repositories {
@ -21,27 +17,12 @@ repositories {
}
dependencies {
// We depend on fabric loader here to use the fabric @Environment annotations and get the mixin dependencies
// Do NOT use other classes from fabric loader
// We depend on Fabric Loader here to use the Fabric @Environment annotations,
// which get remapped to the correct annotations on each platform.
// Do NOT use other classes from Fabric Loader.
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric_loader_version}"
// Remove the next line if you don't want to depend on the API
// modApi "dev.architectury:architectury:${rootProject.architectury_version}"
// Mod implementations
modImplementation "maven.modrinth:sodium:mc1.20.6-0.5.8"
modImplementation "maven.modrinth:sodium-extra:mc1.20.6-0.5.5"
}
publishing {
publications {
mavenCommon(MavenPublication) {
artifactId = rootProject.archives_base_name
from components.java
}
}
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
}
}
}

View file

@ -1,3 +0,0 @@
{
"accessWidener": "optionsprofiles.accesswidener"
}

View file

@ -1 +0,0 @@
accessWidener v2 named

View file

@ -1,7 +1,7 @@
{
"required": true,
"package": "com.axolotlmaid.optionsprofiles.mixin",
"compatibilityLevel": "JAVA_17",
"compatibilityLevel": "JAVA_21",
"minVersion": "0.8",
"client": [
"MixinOptionsScreen"