-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
c5b994f
commit db92398
Showing
17 changed files
with
196 additions
and
93 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 |
---|---|---|
|
@@ -25,3 +25,4 @@ run | |
.idea/ | ||
|
||
Fabric/run_client/ | ||
Neoforge/runs |
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
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
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
File renamed without changes
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
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
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
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
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,65 @@ | ||
plugins { | ||
id 'idea' | ||
id 'maven-publish' | ||
id 'net.neoforged.gradle.userdev' version '7.0.+' | ||
id 'net.neoforged.gradle.mixin' version '7.0+' | ||
id 'java-library' | ||
} | ||
|
||
base { | ||
archivesName = "${project.property("mod_name")}-${project.name}" | ||
} | ||
|
||
Project commonProject = parent.project("Common") | ||
|
||
mixin { | ||
config("${mod_id}.mixins.json") | ||
} | ||
|
||
runs { | ||
configureEach { | ||
modSource project.sourceSets.main | ||
} | ||
|
||
client { | ||
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id | ||
} | ||
|
||
server { | ||
systemProperty 'neoforge.enabledGameTestNamespaces', project.mod_id | ||
programArgument '--nogui' | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation "net.neoforged:neoforge:${neoforge_version}" | ||
compileOnly commonProject | ||
} | ||
|
||
publishing { | ||
publications { | ||
register("mavenNeoforge", MavenPublication) { | ||
artifactId base.archivesName.get() | ||
artifact jar | ||
} | ||
} | ||
} | ||
|
||
// Thanks jared | ||
Spec<Task> notNeoTask = { Task it -> !it.name.startsWith("neo") } as Spec<Task> | ||
|
||
tasks.withType(JavaCompile).matching(notNeoTask).configureEach { | ||
source(project(":Common").sourceSets.main.allSource) | ||
} | ||
|
||
tasks.withType(Javadoc).matching(notNeoTask).configureEach { | ||
source(project(":Common").sourceSets.main.allJava) | ||
} | ||
|
||
tasks.named("sourcesJar", Jar) { | ||
from(project(":Common").sourceSets.main.allSource) | ||
} | ||
|
||
tasks.withType(ProcessResources).matching(notNeoTask).configureEach { | ||
from project(":Common").sourceSets.main.resources | ||
} |
10 changes: 10 additions & 0 deletions
10
Neoforge/src/main/java/com/sunekaer/yeetusexperimentus/YeetusExperimentusNeoForge.java
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,10 @@ | ||
package com.sunekaer.yeetusexperimentus; | ||
|
||
import net.neoforged.fml.common.Mod; | ||
|
||
@Mod(YeetusExperimentus.MOD_ID) | ||
public class YeetusExperimentusNeoForge { | ||
|
||
public YeetusExperimentusNeoForge() { | ||
} | ||
} |
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,24 @@ | ||
modLoader="javafml" | ||
loaderVersion="[1,)" | ||
license="All Rights Reserved" | ||
[[mods]] | ||
modId="yeetusexperimentus" | ||
version="${file.jarVersion}" | ||
displayName="Yeetus Experimentus" | ||
logoFile="yeetusexperimentus-logo.png" | ||
authors="Sunekaer" | ||
description=''' | ||
Disables the Experimental Settings popup, which appears when you create or load world. | ||
''' | ||
[[dependencies.yeetusexperimentus]] | ||
modId="neoforge" | ||
mandatory=true | ||
versionRange="[20.2,)" | ||
ordering="NONE" | ||
side="BOTH" | ||
[[dependencies.yeetusexperimentus]] | ||
modId="minecraft" | ||
mandatory=true | ||
versionRange="[1.20,)" | ||
ordering="NONE" | ||
side="BOTH" |
Oops, something went wrong.