Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Coderx-Gamer authored Apr 4, 2022
1 parent 227c054 commit 504d84b
Show file tree
Hide file tree
Showing 30 changed files with 636 additions and 0 deletions.
72 changes: 72 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
plugins {
id 'fabric-loom' version '0.11-SNAPSHOT'
id 'maven-publish'
}

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

archivesBaseName = project.archives_base_name
version = project.mod_version
group = project.maven_group

repositories {
// Add repositories to retrieve artifacts from in here.
// You should only use this when depending on other mods because
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
}

dependencies {
// To change the versions see the gradle.properties file
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2"
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
}

processResources {
inputs.property "version", project.version

filesMatching("fabric.mod.json") {
expand "version": project.version
}
}

tasks.withType(JavaCompile).configureEach {
// Minecraft 1.18 (1.18-pre2) upwards uses Java 17.
it.options.release = 17
}

java {
// 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}"}
}
}

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
// Add repositories to publish to here.
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
}
}
20 changes: 20 additions & 0 deletions build/classes/java/main/lecterncrash-refmap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"mappings": {
"net/lecterncrash/mixin/accessor/ClientConnectionAccessor": {
"channel": "field_11651:Lio/netty/channel/Channel;"
},
"net/lecterncrash/mixin/LecternScreenMixin": {
"init": "Lnet/minecraft/class_3935;method_25426()V"
}
},
"data": {
"named:intermediary": {
"net/lecterncrash/mixin/accessor/ClientConnectionAccessor": {
"channel": "field_11651:Lio/netty/channel/Channel;"
},
"net/lecterncrash/mixin/LecternScreenMixin": {
"init": "Lnet/minecraft/class_3935;method_25426()V"
}
}
}
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added build/devlibs/lecterncrash-1.0.0-dev.jar
Binary file not shown.
Binary file added build/devlibs/lecterncrash-1.0.0-sources.jar
Binary file not shown.
Binary file added build/libs/lecterncrash-1.0.0-sources.jar
Binary file not shown.
Binary file added build/libs/lecterncrash-1.0.0.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Binary file added build/resources/main/assets/lecterncrash/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions build/resources/main/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"schemaVersion": 1,
"id": "lecterncrash",
"version": "1.0.0",

"name": "Lectern",
"description": "very sussy papermc crash exploit",
"authors": [
"Coderx_Gamer"
],
"contact": {
"homepage": "https://fabricmc.net/",
"sources": "https://github.com/FabricMC/fabric-example-mod"
},

"license": "CC0-1.0",
"icon": "assets/lecterncrash/icon.png",

"environment": "client",
"entrypoints": {
"client": [
"net.lecterncrash.MainClient"
]
},
"mixins": [
"lecterncrash.mixins.json"
],

"depends": {
"fabricloader": ">=0.13.3",
"fabric": "*",
"minecraft": "1.18.x",
"java": ">=17"
},
"suggests": {
"another-mod": "*"
}
}
13 changes: 13 additions & 0 deletions build/resources/main/lecterncrash.mixins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"required": true,
"minVersion": "0.8",
"package": "net.lecterncrash.mixin",
"compatibilityLevel": "JAVA_17",
"client": [
"LecternScreenMixin",
"accessor.ClientConnectionAccessor"
],
"injectors": {
"defaultRequire": 1
}
}
Binary file not shown.
2 changes: 2 additions & 0 deletions build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/tmp/remapJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/tmp/remapSourcesJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

2 changes: 2 additions & 0 deletions build/tmp/sourcesJar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

16 changes: 16 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.1
loader_version=0.13.3

# Mod Properties
mod_version = 1.0.0
maven_group = net.lecterncrash
archives_base_name = lecterncrash

# Dependencies
fabric_version=0.47.8+1.18.2
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-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 504d84b

Please sign in to comment.