Skip to content

Commit

Permalink
Update to 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryhon0 committed Jun 13, 2024
1 parent c975df2 commit ac4f942
Show file tree
Hide file tree
Showing 11 changed files with 346 additions and 379 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,10 @@
# Quickskin

Minecraft Fabric mod for flipping hand position and toggling skin parts using a keybind.
**NOTE:** On some servers with a custom protocol implementations or plugins this might not work or be delayed (e.g. Hypixel takes a long time to update the skin settings)

![GIF](screenshot1.gif)
![Screenshot](screenshot0.jpg)

## Instalation
Go to [the Releases tab](https://github.com/Ryhon0/quickskin/releases) and download the `.jar` file. Make sure you have Fabric and Fabric API installed and put the `.jar` file into the `.minecraft/mods` directory.
If there's no release for your version, you have to build it yourself.

Alternativelly you can build it yourself.
Clone the repository, run `./gradlew publishToMavenLocal` to generate a `.jar` file. The `.jar` file will be located in `./build/libs/`. Copy that file to your `.minecraft/mods` folder.
Make sure you're using JDK 17 because 19 doesn't work, apparently 🤓.

This mod was made for Minecraft 1.16.1, if you want it for a different version of Minecraft, fill out the [gradle.properties](gradle.properties) file with information from [here](https://modmuss50.me/fabric.html).

Feel free to fork this project and add new features.

## Licenses
[GPL-3.0 License](LICENSE)
[Key icon by Dream Mix](https://dreammix.itch.io/keyboard-keys-for-ui)
27 changes: 13 additions & 14 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'fabric-loom' version '1.6-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

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
Expand All @@ -26,11 +26,7 @@ dependencies {

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

// Uncomment the following line to enable the deprecated Fabric API modules.
// These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.

// modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"

}

processResources {
Expand All @@ -42,27 +38,30 @@ processResources {
}

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

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_21
targetCompatibility = JavaVersion.VERSION_21
}

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

// configure the maven publication
publishing {
publications {
mavenJava(MavenPublication) {
create("mavenJava", MavenPublication) {
artifactId = project.archives_base_name
from components.java
}
}
Expand Down
89 changes: 0 additions & 89 deletions gradle.bat

This file was deleted.

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

# Fabric Properties
# Update using this https://fabricmc.net/develop/
minecraft_version=1.20.2
yarn_mappings=1.20.2+build.2
loader_version=0.14.22
fabric_version=0.89.3+1.20.2
# check these on https://fabricmc.net/develop
minecraft_version=1.21
yarn_mappings=1.21+build.1
loader_version=0.15.11

# Mod Properties
mod_version = 1.2.2
maven_group = link.ryhn
archives_base_name = fabric-quickskin-mod-1.20.2
mod_version=2.0.0
maven_group=xyz.ryhon.quickskin
archives_base_name=quickskin

# Dependencies
fabric_version=0.100.1+1.21
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit ac4f942

Please sign in to comment.