mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-11-23 21:59:42 +00:00
Enable Gasstation
This commit is contained in:
1 parent
90f3dcc6f1
commit
e7923da598
24 files changed
+66
-58
No files matched your search
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,56 @@
|
||||
import org.apache.tools.ant.filters.ReplaceTokens
|
||||
|
||||
plugins {
|
||||
id("com.gradleup.shadow") version "8.3.6"
|
||||
}
|
||||
|
||||
val gasstationVersion = "0.5.1"
|
||||
val gasMixVersion = "0.8.5-gasstation_7"
|
||||
version = "$version+$gasstationVersion"
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("https://mvn.falsepattern.com/releases")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("org.spongepowered:mixin:$gasMixVersion")
|
||||
compileOnly(project(":mixinbooterlegacy", "shadowArtifact"))
|
||||
shadow(project(":common")) {
|
||||
isTransitive = false
|
||||
}
|
||||
}
|
||||
|
||||
tasks.shadowJar {
|
||||
configurations = listOf(project.configurations.shadow.get())
|
||||
archiveClassifier = ""
|
||||
relocate("io.github.legacymoddingmc.unimixins.common", "io.github.legacymoddingmc.unimixins.gasstation.repackage.common")
|
||||
|
||||
manifest {
|
||||
attributes (
|
||||
"TweakClass" to "org.spongepowered.asm.launch.MixinTweaker",
|
||||
"FMLCorePluginContainsFMLMod" to true,
|
||||
"ForceLoadAsMod" to true,
|
||||
"MixinConfigs" to "mixins.gasstation.json",
|
||||
"FMLCorePlugin" to "com.falsepattern.gasstation.core.GasStationCore"
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.jar {
|
||||
enabled = false
|
||||
dependsOn(tasks.shadowJar)
|
||||
}
|
||||
|
||||
tasks.processResources {
|
||||
files("mcmod.info") {
|
||||
filter<ReplaceTokens>("tokens" to mapOf(
|
||||
"gasstationVersion" to gasstationVersion
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
unimined.minecraft {
|
||||
|
||||
}
|
||||
+2
-2
@@ -3,12 +3,12 @@ package com.falsepattern.gasstation;
|
||||
import cpw.mods.fml.common.Mod;
|
||||
|
||||
@Mod(modid = Tags.MODID,
|
||||
version = Tags.VERSION,
|
||||
name = Tags.MODNAME,
|
||||
useMetadata = true,
|
||||
acceptableRemoteVersions = "*")
|
||||
@net.minecraftforge.fml.common.Mod(modid = Tags.MODID,
|
||||
version = Tags.VERSION,
|
||||
name = Tags.MODNAME,
|
||||
useMetadata = true,
|
||||
acceptableRemoteVersions = "*")
|
||||
public class GasStation {
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
+3
-3
@@ -5,8 +5,8 @@ package com.falsepattern.gasstation;
|
||||
public class Tags {
|
||||
|
||||
// GRADLETOKEN_* will be replaced by your configuration values at build time
|
||||
public static final String MODID = "GRADLETOKEN_MODID";
|
||||
public static final String MODNAME = "GRADLETOKEN_MODNAME";
|
||||
public static final String MODID = "gasstation";
|
||||
public static final String MODNAME = "GasStation";
|
||||
public static final String VERSION = "GRADLETOKEN_VERSION";
|
||||
public static final String GROUPNAME = "GRADLETOKEN_GROUPNAME";
|
||||
public static final String GROUPNAME = "com.falsepattern.gasstation";
|
||||
}
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+4
-6
@@ -3,13 +3,11 @@
|
||||
"modid": "gasstation",
|
||||
"name": "UniMixins: GasStation",
|
||||
"description": "UniMixins module that provides GasStation extras.\nDepends on: SpongeMixins, MixinBooterLegacy, MixinExtras",
|
||||
"version": "${extraVersion}+uni.${uniVersion}",
|
||||
"mcversion": "${mcversion}",
|
||||
"url": "${project_url}",
|
||||
"version": "@gasstationVersion@",
|
||||
"mcversion": "@minecraftVersion@",
|
||||
"url": "@projectUrl@",
|
||||
"updateUrl": "",
|
||||
"authorList": [
|
||||
"FalsePattern"
|
||||
],
|
||||
"authorList": ["FalsePattern"],
|
||||
"credits": "",
|
||||
"logoFile": "",
|
||||
"screenshots": [],
|
||||
File renamed without changes.
File renamed without changes.
@@ -1,44 +0,0 @@
|
||||
dependencies {
|
||||
compileOnly("org.spongepowered:mixin:$gasMixVersion")
|
||||
compileOnly project(':module-mixinbooterlegacy')
|
||||
shadow(project(":module-common")) {
|
||||
transitive = false
|
||||
}
|
||||
}
|
||||
|
||||
archivesBaseName = archivesBaseName.replace("-1.7.10", "-gasstation-1.7.10")
|
||||
|
||||
shadowJar {
|
||||
configurations = [project.configurations.shadow]
|
||||
classifier = ''
|
||||
relocate 'io.github.legacymoddingmc.unimixins.common', 'io.github.legacymoddingmc.unimixins.gasstation.repackage.common'
|
||||
|
||||
manifest {
|
||||
attributes (
|
||||
'TweakClass': 'org.spongepowered.asm.launch.MixinTweaker',
|
||||
'FMLCorePluginContainsFMLMod': true,
|
||||
'ForceLoadAsMod': true,
|
||||
'MixinConfigs': 'mixins.gasstation.json',
|
||||
'FMLCorePlugin': 'com.falsepattern.gasstation.core.GasStationCore'
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
enabled = false
|
||||
dependsOn shadowJar
|
||||
}
|
||||
|
||||
// Obfuscation is unnecessary since this module does not reference Minecraft classes
|
||||
reobf.enabled = false
|
||||
|
||||
ext.uniVersion = version
|
||||
ext.mcversion = "1.7.10"
|
||||
version += "+" + ext.extraVersion
|
||||
|
||||
minecraft {
|
||||
replace("GRADLETOKEN_MODID", "gasstation")
|
||||
replace("GRADLETOKEN_MODNAME", "GasStation")
|
||||
replace("GRADLETOKEN_VERSION", extraVersion)
|
||||
replace("GRADLETOKEN_GROUPNAME", "com.falsepattern.gasstation")
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
extraVersion=0.5.1
|
||||
gasMixVersion=0.8.5-gasstation_7
|
||||
+1
-1
@@ -33,7 +33,7 @@ include("compatfuture")
|
||||
include("mixingasm")
|
||||
include("spongemixins")
|
||||
include("mixinbooterlegacy")
|
||||
// include("module-gasstation")
|
||||
include("gasstation")
|
||||
// include("module-gtnhmixins")
|
||||
// include("module-mixinextras")
|
||||
// include("module-all")
|
||||
Reference in new issue
Block a user