-
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 1f0152c
Showing
20 changed files
with
937 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,24 @@ | ||
# SMCC | ||
|
||
--- | ||
|
||
**Secure Minecraft Chat** | ||
|
||
### Ever had this before? | ||
 | ||
|
||
|
||
### But never again with this mod! | ||
 | ||
|
||
--- | ||
Jokes aside, this mod encrypts your messages in Minecraft's chat. | ||
Only available for forge 1.18.1, maybe for other versions and fabric soon™️\ | ||
You can configure the key to use for encryption, so you can decide who can | ||
decrypt your messages. You can also configure which messages to encrypt in case you want to only encrypt direct messages to your other hacker-friend for example. | ||
|
||
\ | ||
**This mod has a uSeRfrIeNdLy and** ***wonderful*** **interface:**\ | ||
 | ||
|
||
###### Btw: settings you modify won't get saved across game restarts (for now) |
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,149 @@ | ||
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' } | ||
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' } | ||
} | ||
dependencies { | ||
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true | ||
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT' | ||
} | ||
} | ||
|
||
plugins { | ||
id 'com.github.johnrengelman.shadow' version '7.1.2' | ||
id 'java' | ||
} | ||
|
||
apply plugin: 'net.minecraftforge.gradle' | ||
apply plugin: 'org.spongepowered.mixin' | ||
|
||
group = 'org.pipeman' | ||
version = '1.0' | ||
|
||
java { | ||
archivesBaseName = 'smcc' | ||
toolchain.languageVersion = JavaLanguageVersion.of(17) | ||
} | ||
|
||
minecraft { | ||
mappings channel: 'official', version: '1.18.1' | ||
|
||
runs { | ||
client { | ||
// Fix the classpath the right way and once and for all | ||
afterEvaluate { | ||
// Collect deps in runtimeClasspath but NOT in minecraft | ||
def deps = (configurations.runtimeClasspath - configurations.minecraft).join(';') | ||
// Add deps to classpath | ||
minecraft.runs.each { run -> | ||
run.token 'minecraft_classpath', deps | ||
} | ||
} | ||
workingDirectory project.file('run') | ||
|
||
property 'forge.logging.markers', 'REGISTRIES' | ||
property 'forge.logging.console.level', 'debug' | ||
|
||
property 'forge.enabledGameTestNamespaces', 'smcc' | ||
|
||
mods { | ||
smcc { | ||
source sourceSets.main | ||
} | ||
} | ||
} | ||
|
||
server { | ||
workingDirectory project.file('run') | ||
property 'forge.logging.markers', 'REGISTRIES' | ||
property 'forge.logging.console.level', 'debug' | ||
|
||
property 'forge.enabledGameTestNamespaces', 'smcc' | ||
|
||
mods { | ||
smcc { | ||
source sourceSets.main | ||
} | ||
} | ||
} | ||
|
||
gameTestServer { | ||
workingDirectory project.file('run') | ||
property 'forge.logging.markers', 'REGISTRIES' | ||
property 'forge.logging.console.level', 'debug' | ||
property 'forge.enabledGameTestNamespaces', 'smcc' | ||
|
||
mods { | ||
smcc { | ||
source sourceSets.main | ||
} | ||
} | ||
} | ||
|
||
data { | ||
workingDirectory project.file('run') | ||
property 'forge.logging.markers', 'REGISTRIES' | ||
property 'forge.logging.console.level', 'debug' | ||
args '--mod', 'smcc', '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/') | ||
|
||
mods { | ||
smcc { | ||
source sourceSets.main | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
mixin { | ||
add sourceSets.main, "smcc.refmap.json" | ||
|
||
config "smcc.mixins.json" | ||
} | ||
|
||
sourceSets.main.resources { srcDir 'src/generated/resources' } | ||
|
||
configurations { | ||
shade | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
minecraft 'net.minecraftforge:forge:1.18.1-39.1.2' | ||
implementation 'org.jasypt:jasypt:1.9.3' | ||
shadow 'org.jasypt:jasypt:1.9.3' | ||
|
||
annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' | ||
} | ||
|
||
shadowJar { | ||
configurations = [project.configurations.shade] | ||
classifier '' | ||
relocate 'org.jasypt.jasypt', "org.jasypt.jasypt" | ||
} | ||
|
||
reobf { | ||
shadowJar { } | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes([ | ||
"Specification-Title" : "smcc", | ||
//"Specification-Vendor": "smcc authors", | ||
"Specification-Version" : "1", // We are version 1 of ourselves | ||
"Implementation-Title" : project.name, | ||
"Implementation-Version" : project.jar.archiveVersion, | ||
//"Implementation-Vendor": "smcc authors", | ||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ") | ||
]) | ||
} | ||
} | ||
|
||
//jar.finalizedBy('reobfJar') | ||
tasks.build.dependsOn reobfShadowJar | ||
jar.finalizedBy('reobfShadowJar') |
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,2 @@ | ||
org.gradle.jvmargs=-Xmx3G | ||
org.gradle.daemon=false |
Oops, something went wrong.