Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRedRhino committed Apr 26, 2022
0 parents commit 1f0152c
Show file tree
Hide file tree
Showing 20 changed files with 937 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SMCC

---

**Secure Minecraft Chat**

### Ever had this before?
![img.png](images/img.png)


### But never again with this mod!
![img_2.png](images/img_2.png)

---
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:**\
![img_1.png](images/img_1.png)

###### Btw: settings you modify won't get saved across game restarts (for now)
149 changes: 149 additions & 0 deletions build.gradle
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')
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
Loading

0 comments on commit 1f0152c

Please sign in to comment.