Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 03ef953

Browse files
committed
add 1.21.3 version (incomplete)
1 parent 470d99b commit 03ef953

File tree

210 files changed

+20130
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+20130
-129
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ insert_final_newline = true
77
tab_width = 4
88
trim_trailing_whitespace = true
99
indent_style = tab
10+
max_line_length = 120
1011

1112
[*.json]
1213
indent_size = 2

1.16_combat-6/settings.gradle

Lines changed: 0 additions & 14 deletions
This file was deleted.

1.20/settings.gradle

Lines changed: 0 additions & 14 deletions
This file was deleted.

1.20/src/main/java/io/github/axolotlclient/mixin/KeyboardInputMixin.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
import net.minecraft.client.option.KeyBind;
3030
import org.spongepowered.asm.mixin.Mixin;
3131
import org.spongepowered.asm.mixin.injection.At;
32-
import org.spongepowered.asm.mixin.injection.Inject;
3332
import org.spongepowered.asm.mixin.injection.Redirect;
34-
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
3533

3634
@Mixin(KeyboardInput.class)
3735
public abstract class KeyboardInputMixin {
@@ -47,9 +45,4 @@ public abstract class KeyboardInputMixin {
4745
return hud.isEnabled() && hud.getSneakToggled().get() && MinecraftClient.getInstance().currentScreen == null
4846
|| instance.isPressed();
4947
}
50-
51-
@Inject(method = "tick", at = @At(value = "INVOKE_ASSIGN", target = "Lnet/minecraft/client/option/KeyBind;isPressed()Z", ordinal = 5))
52-
private void axolotlclient$sneak(boolean slowDown, float movementMultiplier, CallbackInfo ci) {
53-
54-
}
5548
}

1.20/src/main/java/io/github/axolotlclient/modules/blur/MotionBlur.java

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222

2323
package io.github.axolotlclient.modules.blur;
2424

25-
import java.io.IOException;
26-
2725
import com.google.gson.JsonSyntaxException;
2826
import com.mojang.blaze3d.shader.GlUniform;
2927
import io.github.axolotlclient.AxolotlClient;
@@ -38,6 +36,8 @@
3836
import net.minecraft.util.Identifier;
3937
import org.apache.commons.io.IOUtils;
4038

39+
import java.io.IOException;
40+
4141
public class MotionBlur extends AbstractModule {
4242

4343
private static final MotionBlur Instance = new MotionBlur();
@@ -71,7 +71,7 @@ public void init() {
7171

7272
public void onUpdate() {
7373
if ((shader == null || MinecraftClient.getInstance().getFramebuffer().textureWidth != lastWidth
74-
|| MinecraftClient.getInstance().getFramebuffer().textureHeight != lastHeight)
74+
|| MinecraftClient.getInstance().getFramebuffer().textureHeight != lastHeight)
7575
&& MinecraftClient.getInstance().getFramebuffer().textureWidth > 0
7676
&& MinecraftClient.getInstance().getFramebuffer().textureHeight > 0) {
7777
currentBlur = getBlur();
@@ -101,18 +101,17 @@ public void onUpdate() {
101101
private static class MotionBlurShader extends Resource {
102102

103103
public MotionBlurShader() {
104-
super(MinecraftClient.getInstance().getDefaultResourcePack(), () -> IOUtils.toInputStream(String.format("{" + " \"targets\": [" + " \"swap\","
105-
+ " \"previous\"" + " ]," + " \"passes\": [" + " {"
106-
+ " \"name\": \"motion_blur\"," + " \"intarget\": \"minecraft:main\","
107-
+ " \"outtarget\": \"swap\"," + " \"auxtargets\": [" + " {"
108-
+ " \"name\": \"PrevSampler\"," + " \"id\": \"previous\""
109-
+ " }" + " ]," + " \"uniforms\": [" + " {"
110-
+ " \"name\": \"BlendFactor\"," + " \"values\": [ %s ]"
111-
+ " }" + " ]" + " }," + " {"
112-
+ " \"name\": \"blit\"," + " \"intarget\": \"swap\","
113-
+ " \"outtarget\": \"previous\"" + " }," + " {"
114-
+ " \"name\": \"blit\"," + " \"intarget\": \"swap\","
115-
+ " \"outtarget\": \"minecraft:main\"" + " }" + " ]" + "}", getBlur()),
104+
super(MinecraftClient.getInstance().getDefaultResourcePack(), () -> IOUtils.toInputStream(String.format(
105+
"{\"targets\": [\"swap\",\"previous\"],\"passes\": [{ \"name\": \"motion_blur\", \"intarget\": \"minecraft:main\","
106+
+ " \"outtarget\": \"swap\"," + " \"auxtargets\": [" + " {"
107+
+ " \"name\": \"PrevSampler\"," + " \"id\": \"previous\""
108+
+ " }" + " ]," + " \"uniforms\": [" + " {"
109+
+ " \"name\": \"BlendFactor\"," + " \"values\": [ %s ]"
110+
+ " }" + " ]" + " }," + " {"
111+
+ " \"name\": \"blit\"," + " \"intarget\": \"swap\","
112+
+ " \"outtarget\": \"previous\" }," + " {"
113+
+ " \"name\": \"blit\"," + " \"intarget\": \"swap\","
114+
+ " \"outtarget\": \"minecraft:main\"" + " }" + " ]" + "}", getBlur()),
116115
"utf-8"));
117116
}
118117
}

1.21.3/build.gradle

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
plugins {
2+
id 'fabric-loom'
3+
id 'io.github.p03w.machete'
4+
}
5+
6+
group = maven_group
7+
version = "${project.version}+${project.minecraft_1213}"
8+
base.archivesName = "AxolotlClient"
9+
10+
sourceCompatibility = JavaVersion.VERSION_21
11+
targetCompatibility = JavaVersion.VERSION_21
12+
13+
loom {
14+
accessWidenerPath.set(file("src/main/resources/axolotlclient.accesswidener"))
15+
mods {
16+
"axolotlclient" {
17+
sourceSet("main")
18+
}
19+
"axolotlclient-test" {
20+
sourceSet("test")
21+
}
22+
}
23+
}
24+
25+
repositories {
26+
maven {
27+
name = 'ParchmentMC'
28+
url = 'https://maven.parchmentmc.org'
29+
}
30+
}
31+
32+
dependencies {
33+
minecraft "com.mojang:minecraft:${project.minecraft_1213}"
34+
mappings loom.layered {
35+
mappings "org.quiltmc:quilt-mappings:${project.mappings_1213}:intermediary-v2"
36+
officialMojangMappings()
37+
parchment("org.parchmentmc.data:parchment-1.21.1:2024.11.13@zip")
38+
}
39+
40+
modImplementation "net.fabricmc:fabric-loader:${project.fabric_loader}"
41+
42+
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fapi_1213}+${project.minecraft_1213}"
43+
44+
modImplementation("io.github.axolotlclient:AxolotlClient-config:${project.config}+${project.minecraft_1213}") {
45+
exclude group: "com.terraformersmc"
46+
exclude group: "org.lwjgl"
47+
}
48+
include "io.github.axolotlclient:AxolotlClient-config:${project.config}+${project.minecraft_1213}"
49+
modImplementation "io.github.axolotlclient.AxolotlClient-config:AxolotlClientConfig-common:${project.config}"
50+
51+
modCompileOnlyApi("com.terraformersmc:modmenu:8.0.0") {
52+
exclude group: "net.fabricmc"
53+
}
54+
55+
implementation include(project(path: ":common", configuration: 'shadow'))
56+
57+
api("org.lwjgl:lwjgl-nanovg:3.3.3")
58+
runtimeOnly('org.lwjgl:lwjgl-nanovg:3.3.3:natives-linux')
59+
runtimeOnly('org.lwjgl:lwjgl-nanovg:3.3.3:natives-linux-arm64')
60+
runtimeOnly('org.lwjgl:lwjgl-nanovg:3.3.3:natives-windows')
61+
runtimeOnly('org.lwjgl:lwjgl-nanovg:3.3.3:natives-windows-arm64')
62+
runtimeOnly('org.lwjgl:lwjgl-nanovg:3.3.3:natives-macos')
63+
runtimeOnly('org.lwjgl:lwjgl-nanovg:3.3.3:natives-macos-arm64')
64+
}
65+
66+
processResources {
67+
inputs.property 'version', version
68+
69+
filesMatching('fabric.mod.json') {
70+
expand "version": version
71+
}
72+
}
73+
74+
java {
75+
withSourcesJar()
76+
}
77+
78+
runClient {
79+
classpath(sourceSets.test.runtimeClasspath)
80+
args("--tracy")
81+
}
82+
83+
// Configure the maven publication
84+
publishing {
85+
publications {
86+
mavenJava(MavenPublication) {
87+
artifactId = archivesBaseName
88+
from components.java
89+
}
90+
}
91+
92+
repositories {
93+
maven {
94+
name = "owlMaven"
95+
def repository = project.version.toString().contains("beta") || project.version.toString().contains("alpha") ? "snapshots" : "releases"
96+
url = "https://moehreag.duckdns.org/maven/" + repository
97+
credentials(PasswordCredentials)
98+
authentication {
99+
basic(BasicAuthentication)
100+
}
101+
}
102+
}
103+
}
104+
105+
modrinth {
106+
token = System.getenv("MODRINTH_TOKEN")
107+
projectId = "p2rxzX0q"
108+
versionNumber = "${project.version}"
109+
versionType = "release"
110+
uploadFile = remapJar
111+
gameVersions.set(["${project.minecraft_1213}"])
112+
loaders.set(["quilt", "fabric"])
113+
additionalFiles.set([remapSourcesJar])
114+
115+
// Changelog fetching: Credit LambdAurora.
116+
// https://github.com/LambdAurora/LambDynamicLights/blob/1ef85f486084873b5d97b8a08df72f57859a3295/build.gradle#L145
117+
// License: MIT
118+
def changelogText = file('../CHANGELOG.md').text
119+
def regexVersion = ((String) project.version).split("\\+")[0].replaceAll('\\.', /\\./).replaceAll('\\+', '\\+')
120+
def changelogRegex = ~"###? ${regexVersion}\\n\\n(( *- .+\\n)+)"
121+
def matcher = changelogText =~ changelogRegex
122+
123+
if (matcher.find()) {
124+
def changelogContent = matcher.group(1)
125+
126+
def changelogLines = changelogText.split('\n')
127+
def linkRefRegex = ~'^\\[([A-z0-9 _\\-/+.]+)]: '
128+
for (int i = changelogLines.length - 1; i > 0; i--) {
129+
def line = changelogLines[i]
130+
if ((line =~ linkRefRegex).find())
131+
changelogContent += '\n' + line
132+
else break
133+
}
134+
changelog = changelogContent
135+
} else {
136+
afterEvaluate {
137+
tasks.modrinth.setEnabled(false)
138+
}
139+
}
140+
}

0 commit comments

Comments
 (0)