-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 43ae08e
Showing
21 changed files
with
1,034 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
# 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* | ||
local.properties | ||
|
||
*~ | ||
|
||
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
plugins { | ||
id 'java' | ||
id 'org.spongepowered.gradle.vanilla' version '0.2.1-SNAPSHOT' | ||
id 'net.minecraftforge.gradle' version '[6.0,6.2)' apply(false) | ||
id 'org.spongepowered.mixin' version "0.7-SNAPSHOT" apply(false) | ||
id 'com.github.johnrengelman.shadow' version '8.1.1' | ||
} | ||
|
||
allprojects { | ||
apply plugin: 'java-library' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'idea' | ||
version = modVersion | ||
group = mavenGroup | ||
|
||
repositories { | ||
mavenLocal() | ||
} | ||
} | ||
|
||
subprojects { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
name "Epherical Maven" | ||
url "https://maven.epherical.com/releases" | ||
} | ||
maven { url "https://repo.spongepowered.org/repository/maven-public/"} | ||
} | ||
|
||
tasks.withType(GenerateModuleMetadata) { | ||
enabled = false | ||
} | ||
} | ||
|
||
minecraft { | ||
version(minecraftVersion) | ||
} | ||
|
||
dependencies { | ||
compileOnly group:'org.spongepowered', name:'mixin', version: mixinVersion | ||
compileOnlyApi("org.jetbrains:annotations:${project.JBAnnotationsVersion}") | ||
compileOnlyApi("com.epherical.epherolib:EpheroLib:${project.epherolibVersion}") | ||
} | ||
|
||
sourceSets { | ||
main { | ||
resources { | ||
srcDirs += [ | ||
"src/main/generated" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
import net.fabricmc.loom.task.RemapJarTask | ||
|
||
plugins { | ||
id 'fabric-loom' version '1.2-SNAPSHOT' | ||
id 'com.github.johnrengelman.shadow' version '8.1.1' | ||
} | ||
|
||
version = project.modVersion | ||
group = project.mavenGroup | ||
archivesBaseName = project.modBaseArchiveName | ||
|
||
repositories { | ||
maven { url "https://oss.sonatype.org/content/repositories/snapshots"} | ||
maven { url 'https://jitpack.io' } | ||
maven { | ||
url "https://www.cursemaven.com" | ||
content { | ||
includeGroup "curse.maven" | ||
} | ||
} | ||
} | ||
|
||
configurations { | ||
shade | ||
compile.extendsFrom shade | ||
} | ||
|
||
processResources { | ||
duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
|
||
from(sourceSets.main.resources.srcDirs) { | ||
include "fabric.mod.json" | ||
expand project.properties | ||
} | ||
} | ||
|
||
dependencies { | ||
minecraft "com.mojang:minecraft:${project.minecraftVersion}" | ||
mappings loom.officialMojangMappings() | ||
/*mappings loom.layered() { | ||
officialMojangMappings() | ||
parchment("org.parchmentmc.data:parchment-${project.minecraftVersion}:${project.parchmentVersion}") | ||
}*/ | ||
|
||
modImplementation "net.fabricmc:fabric-loader:${project.fabricLoaderVersion}" | ||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabricAPIVersion}" | ||
modImplementation("com.epherical.epherolib:EpheroLib-fabric:${project.epherolibVersion}") | ||
|
||
shade(rootProject) | ||
compileOnly(rootProject) | ||
implementation(rootProject) | ||
} | ||
|
||
loom { | ||
//accessWidenerPath = file("src/main/resources/{{MOD_ID}}.accesswidener") | ||
|
||
runs { | ||
client { | ||
client() | ||
name "Fabric Client" | ||
ideConfigGenerated = true | ||
} | ||
|
||
server { | ||
server() | ||
name "Fabric Server" | ||
ideConfigGenerated = true | ||
} | ||
|
||
datagen { | ||
server() | ||
name "Data Generation" | ||
vmArg "-Dfabric-api.datagen" | ||
vmArg "-Dfabric-api.datagen.output-dir=${getRootProject().file("src/main/generated")}" | ||
runDir "build/datagen" | ||
ideConfigGenerated = true | ||
} | ||
} | ||
} | ||
|
||
tasks.processResources.dependsOn(rootProject.tasks.processResources) | ||
|
||
def targetJavaVersion = 17 | ||
tasks.withType(JavaCompile).configureEach { | ||
it.options.encoding = "UTF-8" | ||
source(rootProject.sourceSets.main.allSource) | ||
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) { | ||
it.options.release = targetJavaVersion | ||
} | ||
} | ||
|
||
java { | ||
def javaVersion = JavaVersion.toVersion(targetJavaVersion) | ||
if (JavaVersion.current() < javaVersion) { | ||
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion) | ||
} | ||
archivesBaseName = project.modBaseArchiveName | ||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task | ||
// if it is present. | ||
// If you remove this line, sources will not be generated. | ||
withSourcesJar() | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.archivesBaseName}" } | ||
} | ||
} | ||
|
||
shadowJar { | ||
archiveFileName = rootProject.modBaseArchiveName + "-${rootProject.minecraftVersion}-FABRIC-dev.jar" | ||
configurations = [project.configurations.shade] | ||
} | ||
|
||
task remappedShadowJar(type: RemapJarTask) { | ||
dependsOn tasks.shadowJar | ||
input = tasks.shadowJar.archiveFile | ||
archiveFileName = rootProject.modBaseArchiveName + "-${rootProject.minecraftVersion}-FABRIC-${rootProject.version}.jar" | ||
} | ||
|
||
tasks.assemble.dependsOn tasks.remappedShadowJar | ||
|
||
artifacts { | ||
archives remappedShadowJar | ||
shadow shadowJar | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs += [ | ||
rootProject.sourceSets.main.java | ||
] | ||
} | ||
resources { | ||
srcDirs += [ | ||
"src/main/generated", | ||
rootProject.sourceSets.main.resources | ||
] | ||
} | ||
} | ||
} | ||
|
||
// configure the maven publication | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
artifactId = "${modBaseArchiveName}-" + artifactId | ||
version = version + "-${minecraftVersion}" | ||
// add all the jars that should be included when publishing to maven | ||
from components.java | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "EphericalMaven" | ||
url = "https://maven.epherical.com/releases" | ||
credentials { | ||
username = m_user | ||
password = m_pass | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.epherical.bozo; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class BozoFabric implements ModInitializer { | ||
|
||
|
||
@Override | ||
public void onInitialize() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"schemaVersion": 1, | ||
"id": "${modId}", | ||
"version": "${version}", | ||
"name": "${modName}", | ||
"description": "${description}", | ||
"authors": [ | ||
"Thonk" | ||
], | ||
"contact": { | ||
"sources": "${github}", | ||
"issues": "${github}/issues", | ||
"homepage": "", | ||
"irc": "${discord}" | ||
}, | ||
"license": "${license}", | ||
"icon": "", | ||
"environment": "*", | ||
"entrypoints": { | ||
"main": [ | ||
"com.epherical.bozo.BozoFabric" | ||
] | ||
}, | ||
"mixins": [ | ||
"${modId}.mixins.json" | ||
], | ||
"depends": { | ||
"fabricloader": ">=0.13.3", | ||
"fabric": "*", | ||
"minecraft": "1.18.2" | ||
} | ||
} |
Oops, something went wrong.