Skip to content

Commit

Permalink
I DONT GIVE A SWAG
Browse files Browse the repository at this point in the history
i gave a swag ;(
  • Loading branch information
UnixTMDev committed Dec 1, 2024
1 parent 76fb033 commit c32128f
Show file tree
Hide file tree
Showing 132 changed files with 1,155 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*

#I ain't pushin' that.
.gradle/
.idea/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# flinger-fabric
Clientsided command to add velocity to player in looking direction. Kinda a cheat tbh
Built for 1.20.1, you _miiight_ be able to compile for other versions??
Made with FabricMC, based off of fabric-example-mod
76 changes: 76 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
plugins {
id 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish'
}

version = project.mod_version
group = project.maven_group

base {
archivesName = project.archives_base_name
}

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 {
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()

sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

jar {
from("LICENSE") {
rename { "${it}_${project.base.archivesName.get()}"}
}
}

// configure the maven publication
publishing {
publications {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
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.
}
}
14 changes: 14 additions & 0 deletions build/classes/java/main/flinger-refmap.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"mappings": {
"dev/unixtm/flinger/mixin/ExampleMixin": {
"loadWorld": "Lnet/minecraft/server/MinecraftServer;method_3735()V"
}
},
"data": {
"named:intermediary": {
"dev/unixtm/flinger/mixin/ExampleMixin": {
"loadWorld": "Lnet/minecraft/server/MinecraftServer;method_3735()V"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v1 named intermediary
Binary file added build/resources/main/assets/flinger/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/resources/main/assets/flinger/icon_old.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/resources/main/assets/modid/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions build/resources/main/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"schemaVersion": 1,
"id": "flinger",
"version": "4.2.0",
"name": "Flinger",
"description": "Adds a client-sided command to apply velocity to the player in the current looking direction.",
"authors": [
"UnixTMDev"
],
"contact": {
"homepage": "https://unixtm.dev/",
"sources": "https://github.com/UnixTMDev/fabric-flinger"
},
"license": "CC0-1.0",
"icon": "assets/flinger/icon.png",
"environment": "*",
"entrypoints": {
"main": [
"dev.unixtm.flinger.Flinger"
]
},
"mixins": [
"flinger.mixins.json"
],
"depends": {
"fabricloader": ">=0.16.9",
"minecraft": "~1.20.1",
"java": ">=17",
"fabric-api": "*"
},
"suggests": {
"another-mod": "*"
}
}
11 changes: 11 additions & 0 deletions build/resources/main/flinger.mixins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"required": false,
"package": "dev.unixtm.flinger.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
"ExampleMixin"
],
"injectors": {
"defaultRequire": 1
}
}
11 changes: 11 additions & 0 deletions build/resources/main/modid.mixins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"required": true,
"package": "com.example.mixin",
"compatibilityLevel": "JAVA_21",
"mixins": [
"ExampleMixin"
],
"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

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

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=1.20.1
yarn_mappings=1.20.1+build.10
loader_version=0.16.9

# Mod Properties
mod_version=4.2.0
maven_group=dev.unixtm.flinger
archives_base_name=flinger

# Dependencies
fabric_version=0.92.2+1.20.1
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit c32128f

Please sign in to comment.