Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
OrbitalHare committed Mar 21, 2023
0 parents commit 35555f6
Show file tree
Hide file tree
Showing 1,176 changed files with 8,874 additions and 0 deletions.
118 changes: 118 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
# User-specific stuff
.idea/

*.iml
*.ipr
*.iws

# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

.gradle
build/

# Ignore Gradle GUI config
gradle-app.setting

# Cache of project
.gradletasknamecache

**/build/

# Common working directory
run/

# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
!gradle-wrapper.jar
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Copyright (c) 2023 OrbitalHare
All rights reserved.
159 changes: 159 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
buildscript {
repositories {
// These repositories are only for Gradle plugins, put any other repositories in the repository block further below
maven { url = 'https://maven.minecraftforge.net' }
mavenCentral()
maven { url = "https://maven.parchmentmc.org" }
maven { url = 'https://repo.spongepowered.org/repository/maven-public' }
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true
classpath group: 'org.parchmentmc', name: 'librarian', version: '1.+', changing: true
classpath "org.spongepowered:mixingradle:${mixingradle_version}"
}
}

plugins {
id 'com.matthewprenger.cursegradle' version '1.4.0'
id 'idea'
}

apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'maven-publish'
apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'org.spongepowered.mixin'

group = 'me.orbitalhare.terrafirmamisc'
version = '0.0.1-1.18.2'
archivesBaseName = 'terrafirmamisc'

java.toolchain.languageVersion = JavaLanguageVersion.of(17)


minecraft {

mappings channel: 'parchment', version: '2022.11.06-1.18.2'
//mappings channel: 'official', version: '1.18.2'
// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg')

runs {
all {
args("-mixin.config=terrafirmamisc.mixins.json")

property("mixin.env.remapRefMap", "true")
property("mixin.env.refMapRemappingFile", "${projectDir}/build/createSrgToMcp/output.srg")
property("forge.logging.markers", "REGISTRIES")
property("forge.logging.console.level", "debug")

jvmArgs("-ea", "-Xmx4G", "-Xms4G")

mods {
terrafirmamisc {
source sourceSets.main
}
}
}
client {
workingDirectory project.file("run")
}

server {
workingDirectory project.file("run/server")
arg("--nogui")
}
}
}


// Include resources generated by data generators.
sourceSets.main.resources { srcDir 'src/generated/resources' }

repositories {
mavenCentral()
maven {
// JEI
name = "Progwml6 maven"
url = "https://dvs1.progwml6.com/files/maven/"
}
maven {
// Mirror for JEI
name = "ModMaven"
url = "https://modmaven.k-4u.nl"
}
maven {
// Patchouli
name = "BlameJared"
url = "https://maven.blamejared.com"
}
maven {
url "https://www.cursemaven.com"
content {
includeGroup "curse.maven"
}
}

flatDir {
dir "libs"
}
}

dependencies {
minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}"

implementation(fg.deobf('org.spongepowered:mixingradle:0.7.+'))
//implementation(fg.deobf("tfc:TerraFirmaCraft-Forge-${minecraft_version}:${tfc_version}"))
implementation fg.deobf("curse.maven:tfc-302973:${tfc_identifier}")

//compileOnly(fg.deobf("curse.maven:firmalife-453394:${firmalife_identifier}"))
//runtimeOnly(fg.deobf("curse.maven:firmalife-453394:${firmalife_identifier}"))

if (System.getProperty("idea.sync.active") != "true") {
annotationProcessor("org.spongepowered:mixin:${mixin_version}:processor")
}

// Patchouli
implementation(fg.deobf("vazkii.patchouli:Patchouli:${patchouli_version}"))

// Jade
compileOnly(fg.deobf("curse.maven:jade-324717:${jade_version}"))
runtimeOnly(fg.deobf("curse.maven:jade-324717:${jade_version}"))
compileOnly(fg.deobf("curse.maven:top-245211:${top_version}"))
//runtimeOnly(fg.deobf("curse.maven:top-245211:${top_version}"))

// JEI
compileOnly(fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}:api"))
runtimeOnly(fg.deobf("mezz.jei:jei-${minecraft_version}:${jei_version}"))
}

// Example for how to get properties into the manifest for reading at runtime.
jar {
manifest {
attributes([
"Specification-Title" : "terrafirmamisc",
"Specification-Vendor" : "OrbitalHare",
"Specification-Version" : "1", // We are version 1 of ourselves
"Implementation-Title" : project.name,
"Implementation-Version" : project.jar.archiveVersion,
"Implementation-Vendor" : "OrbitalHare",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}

idea {
module {
excludeDirs.add(file("run"))
}
}

mixin {
add(sourceSets.main, "terrafirmamisc.refmap.json")
}



jar.finalizedBy('reobfJar')

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
}
15 changes: 15 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

# Version metadata
forge_version=40.2.0
minecraft_version=1.18.2
mixin_version=0.8.5
mixingradle_version=0.7-SNAPSHOT
jei_version=9.7.1.255
patchouli_version=1.18.2-71
tfc_version=0.0.0-indev
tfc_identifier=4429169
jade_version=4082408
top_version=3965688
firmalife_identifier=4434491
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 35555f6

Please sign in to comment.