Skip to content

Commit

Permalink
add steam n rails to dev env
Browse files Browse the repository at this point in the history
-their mod is broken L
-also maybe fix compat with them in prod
  • Loading branch information
rhysdh540 committed Aug 26, 2023
1 parent c7cc57a commit 7e1f7bf
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 34 deletions.
9 changes: 6 additions & 3 deletions 1.20.1.properties
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ fabric_api=0.86.0
# Forge - https://files.minecraftforge.net/net/minecraftforge/forge/index_1.19.html
forge=47.1.43


# Create
create_fabric = 0.5.1-c-build.1152
create_fabric = 0.5.1-d-build.1161
create_forge = 0.5.1.d-9
registrate = MC1.20-1.3.3
flywheel_mc = 1.20
Expand All @@ -34,4 +33,8 @@ catalogue = 4590890
# FerriteCore - https://www.curseforge.com/minecraft/mc-mods/ferritecore/files
ferritecore = 4574361
# Smooth Boot
#smoothboot_forge = 3821513
#smoothboot_forge = 3821513

# Arch Mods
#snr = 1.5.0
snr_build = 551
29 changes: 17 additions & 12 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,24 @@ subprojects {

repositories {
mavenCentral()
maven { url = "https://maven.parchmentmc.org" }
maven { url = "https://maven.quiltmc.org/repository/release" }
maven { url "https://maven.parchmentmc.org" }
maven { url "https://maven.quiltmc.org/repository/release" }
maven { url 'https://maven.ithundxr.dev/releases' }
maven {
url = "https://maven.tterrag.com/"
content { includeGroup("com.jozufozu.flywheel") }
url "https://maven.tterrag.com/"
content {
includeGroup("com.jozufozu.flywheel")
includeGroup("com.tterrag.registrate")
includeGroup("com.simibubi.create")
}
}
maven { // modrinth
url "https://api.modrinth.com/maven"
content { includeGroup "maven.modrinth" }
}
maven { // curseforge
url "https://www.cursemaven.com"
content { includeGroup "curse.maven" }
}
}

Expand Down Expand Up @@ -176,14 +189,6 @@ allprojects {
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } // manifold
maven { url 'https://jitpack.io' } // idk a lot of stuff
maven { // modrinth
url "https://api.modrinth.com/maven"
content { includeGroup "maven.modrinth" }
}
maven { // curseforge
url "https://www.cursemaven.com"
content { includeGroup "curse.maven" }
}
}

tasks.withType(JavaCompile).configureEach {
Expand Down
6 changes: 3 additions & 3 deletions build.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# DO NOT EDIT
# Generated by the build script. Change mcVer property to change minecraft version.

PRE_CURRENT_MC_1_19_2=
MC_1_19_2=
POST_MC_1_19_2=
POST_CURRENT_MC_1_19_2=
PRE_MC_1_20_1=
PRE_CURRENT_MC_1_20_1=
MC_1_20_1=
POST_CURRENT_MC_1_20_1=
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.spongepowered.asm.mixin.Shadow;
import org.spongepowered.asm.mixin.gen.Invoker;

@Mixin(value = TrackPlacement.class, remap = false)
@Mixin(value = TrackPlacement.class, remap = false, priority = 999) // inject before snr does
@SuppressWarnings("unused")
public class TrackPlacementMixin {
@Shadow public static PlacementInfo cached;
Expand Down
8 changes: 3 additions & 5 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ configurations {
}

repositories {
maven { url "https://api.modrinth.com/maven" } // LazyDFU
maven { url "https://maven.terraformersmc.com/releases/" } // Mod Menu
maven { url "https://mvn.devos.one/snapshots/" } // Create Fabric, Porting Lib, Forge Tags, Milk Lib, Registrate Fabric
maven { url "https://cursemaven.com" } // Forge Config API Port
maven { url "https://maven.cafeteria.dev/releases" } // Fake Player API
maven { url "https://maven.jamieswhiteshirt.com/libs-release" } // Reach Entity Attributes
maven { url "https://jitpack.io/" } // Mixin Extras, Fabric ASM
}

dependencies {
common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
modImplementation "net.fabricmc:fabric-loader:${rootProject.fabric}"

modImplementation "net.fabricmc.fabric-api:fabric-api:${rootProject.fabric_api}+${rootProject.minecraft_version}"
Expand All @@ -35,8 +34,7 @@ dependencies {

modImplementation("com.simibubi.create:create-fabric-${rootProject.minecraft_version}:${rootProject.create_fabric}+mc${rootProject.minecraft_version}")

common(project(path: ":common", configuration: "namedElements")) { transitive false }
shadowCommon(project(path: ":common", configuration: "transformProductionFabric")) { transitive false }
modImplementation("com.railwayteam.railways:Steam_Rails-fabric-${minecraft_version}:${snr}+fabric-mc${minecraft_version}-build.${snr_build}") { transitive = false }
}

shadowJar {
Expand Down
11 changes: 2 additions & 9 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,7 @@ configurations {
}

repositories {
// mavens for Forge-exclusives
maven { url "https://maven.theillusivec4.top/" } // Curios
maven { // Create Forge and Registrate Forge
url "https://maven.tterrag.com/"
content {
includeGroup("com.tterrag.registrate")
includeGroup("com.simibubi.create")
}
}
maven { url "https://cursemaven.com" }
}

dependencies {
Expand All @@ -37,6 +28,8 @@ dependencies {
modImplementation("com.simibubi.create:create-${minecraft_version}:${create_forge}:slim") { transitive = false }
modImplementation "com.tterrag.registrate:Registrate:${registrate}"
modImplementation "com.jozufozu.flywheel:flywheel-forge-${flywheel_mc}:${flywheel}"

modImplementation("com.railwayteam.railways:Steam_Rails-forge-${minecraft_version}:${snr}+forge-mc${minecraft_version}-build.${snr_build}")
}

shadowJar {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ forgix_version=1.2.6
shadow_version=8.1.1

# the mc version to compile against (see their respective property files for version-specific stuff)
mcVer=1.19.2
mcVer=1.20.1

# which versions to put in the build.properties file
mc_versions=1.19.2, 1.20.1
Expand Down

0 comments on commit 7e1f7bf

Please sign in to comment.