mirror of
https://github.com/trafficlunar/options-profiles.git
synced 2026-06-27 22:24:10 +00:00
Add Neoforge and upgrade template
Forge is not working but I can't really do anything about it
This commit is contained in:
parent
f0cebb6252
commit
2690515316
20 changed files with 227 additions and 212 deletions
56
neoforge/build.gradle
Normal file
56
neoforge/build.gradle
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
plugins {
|
||||
id 'com.github.johnrengelman.shadow'
|
||||
}
|
||||
|
||||
architectury {
|
||||
platformSetupLoomIde()
|
||||
neoForge()
|
||||
}
|
||||
|
||||
configurations {
|
||||
common {
|
||||
canBeResolved = true
|
||||
canBeConsumed = false
|
||||
}
|
||||
compileClasspath.extendsFrom common
|
||||
runtimeClasspath.extendsFrom common
|
||||
developmentNeoForge.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
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = 'NeoForged'
|
||||
url = 'https://maven.neoforged.net/releases'
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
neoForge "net.neoforged:neoforge:$rootProject.neoforge_version"
|
||||
|
||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||
shadowBundle project(path: ':common', configuration: 'transformProductionNeoForge')
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property 'version', project.version
|
||||
|
||||
filesMatching('META-INF/neoforge.mods.toml') {
|
||||
expand version: project.version
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
configurations = [project.configurations.shadowBundle]
|
||||
archiveClassifier = 'dev-shadow'
|
||||
}
|
||||
|
||||
remapJar {
|
||||
input.set shadowJar.archiveFile
|
||||
}
|
||||
1
neoforge/gradle.properties
Normal file
1
neoforge/gradle.properties
Normal file
|
|
@ -0,0 +1 @@
|
|||
loom.platform = neoforge
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
package com.axolotlmaid.optionsprofiles.forge;
|
||||
|
||||
import com.axolotlmaid.optionsprofiles.OptionsProfilesMod;
|
||||
import net.neoforged.fml.common.Mod;
|
||||
|
||||
@Mod(OptionsProfilesMod.MOD_ID)
|
||||
public class OptionsProfilesModNeoForge {
|
||||
public OptionsProfilesModNeoForge() {
|
||||
OptionsProfilesMod.init();
|
||||
}
|
||||
}
|
||||
31
neoforge/src/main/resources/META-INF/neoforge.mods.toml
Normal file
31
neoforge/src/main/resources/META-INF/neoforge.mods.toml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
modLoader = "javafml"
|
||||
loaderVersion = "[2,)"
|
||||
#issueTrackerURL = ""
|
||||
license = "GNU GPL 3.0"
|
||||
|
||||
[[mods]]
|
||||
modId = "optionsprofiles"
|
||||
version = "${version}"
|
||||
displayName = "Options Profiles"
|
||||
authors = "AxolotlMaid"
|
||||
description = '''
|
||||
Load and save your options from in-game.
|
||||
'''
|
||||
logoFile = "icon.png"
|
||||
|
||||
[[dependencies.optionsprofiles]]
|
||||
modId = "neoforge"
|
||||
type = "required"
|
||||
versionRange = "[20.6,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[dependencies.optionsprofiles]]
|
||||
modId = "minecraft"
|
||||
type = "required"
|
||||
versionRange = "[1.20.6,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
[[mixins]]
|
||||
config = "optionsprofiles.mixins.json"
|
||||
BIN
neoforge/src/main/resources/icon.png
Normal file
BIN
neoforge/src/main/resources/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.6 KiB |
Loading…
Add table
Add a link
Reference in a new issue