Skip to content

Commit e03b37e

Browse files
committed
Remove QOL stuff & Update stuff
1 parent 2c56671 commit e03b37e

24 files changed

+92
-866
lines changed

README.md

Lines changed: 19 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -34,86 +34,6 @@ want to suggest features, join our [discord](https://discord.gg/U48eDmst68)!
3434

3535
# Available Config Categories
3636

37-
<details>
38-
<summary>Quality of Life</summary>
39-
40-
## 🪶 Quality of Life
41-
42-
- minimalViewBobbing
43-
- Description: Removes the view bobbing from tilting the world.
44-
- Type: BOOLEAN
45-
- nameTagInThirdperson
46-
- Description: Show the player nametag whilst in third-person.
47-
- Type: BOOLEAN
48-
- nameTagBackground
49-
- Description: Toggle the nametag background.
50-
- Type: BOOLEAN
51-
- nameTagTextShadow
52-
- Description: Make the nametag use text shadow.
53-
- Type: BOOLEAN
54-
- debugHudTextColor
55-
- Description: Makes the debug hud text color white again from <=1.7.
56-
- Type: BOOLEAN
57-
- persistentBlockOutline
58-
- Description: Always show block outline, no matter the gamemode or state.
59-
- Type: BOOLEAN
60-
- offhandUsageSwinging
61-
- Description: Swings the offhand whilst using item and holding right click.
62-
- Type: BOOLEAN
63-
- alwaysSharpParticles
64-
- Description: Always show the sharpness particles when damaging/hitting an entity.
65-
- Type: BOOLEAN
66-
- recipeAndTutorialToasts
67-
- Description: Disable recipe and tutorial toasts.
68-
- Type: BOOLEAN
69-
- visibleArmWhileInvisible
70-
- Description: Shows the arm as partially visible whilst invisible, like spectator mode or invisibly effect.
71-
- Type: BOOLEAN
72-
- fakeMissPenaltySwing
73-
- Description: In vanilla Minecraft, if the player has missed their hit, there will be a 10 ms delay on top of the
74-
attack cooldown before they can swing again. Enable this feature to play a fake swing animation during that 10
75-
ms delay to match <=1.7.x.
76-
- Type: BOOLEAN
77-
- dontMoveBlueVoid
78-
- Description: Stops the blue void sky from moving based on eye height. [Requires blueVoidSky to be enabled]
79-
- Type: BOOLEAN
80-
- usageSwingingParticles
81-
- Description: Shows fake block-breaking particles during usage swinging to match <=1.7.x.
82-
- Type: BOOLEAN
83-
- entityDeathTopple
84-
- Description: Toggle the dying entity from rotating 90 degrees.
85-
- Type: BOOLEAN
86-
- deepRedHurtTint
87-
- Description: Modifies the entity damage tint alpha to be less like in Oranges Old Animations mod.
88-
- Type: BOOLEAN
89-
- particlePhysics
90-
- Description: Toggle particles ability to bypass collision logic.
91-
- Type: BOOLEAN
92-
- firstPersonParticles
93-
- Description: Toggle potion particle effects coming from you whilst in first-person.
94-
- Type: BOOLEAN
95-
- dontClearChat
96-
- Description: Stops minecraft from clearing chat.
97-
- Type: BOOLEAN
98-
- dontCloseChat
99-
- Description: Stops minecraft from closing the chat screen on teleport/some situations.
100-
- Type: BOOLEAN
101-
102-
### Fixes
103-
104-
- fixMirrorArmSwing
105-
- Description: Fix the left-arm swing mirroring.
106-
- Type: BOOLEAN
107-
- upMinPixelTransparencyLimit
108-
- Description: Makes the minimum 0-transparency value less than or equal to 0.1. This fixes textures with invisible
109-
pixels that cause issues.
110-
- Type: BOOLEAN
111-
- fixOffHandUsingPose
112-
- Description: Stops the offhand from using the NONE pose with a held item while using an item in the mainhand like
113-
in <=1.17.
114-
- Type: BOOLEAN
115-
</details>
116-
11737
<details>
11838
<summary>Movement</summary>
11939

@@ -376,6 +296,25 @@ want to suggest features, join our [discord](https://discord.gg/U48eDmst68)!
376296
- Type: BOOLEAN
377297
</details>
378298

299+
<details>
300+
<summary>Fixes</summary>
301+
302+
## 🪶 Fixes
303+
304+
- fixMirrorArmSwing
305+
- Description: Fix the left-arm swing mirroring.
306+
- Type: BOOLEAN
307+
- upMinPixelTransparencyLimit
308+
- Description: Makes the minimum 0-transparency value less than or equal to 0.1. This fixes textures with invisible
309+
pixels that cause issues.
310+
- Type: BOOLEAN
311+
- fixOffHandUsingPose
312+
- Description: Stops the offhand from using the NONE pose with a held item while using an item in the mainhand like
313+
in <=1.17.
314+
- Type: BOOLEAN
315+
316+
</details>
317+
379318
<details>
380319
<summary>Old Settings</summary>
381320

gradlew

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/btw/mixces/animatium/config/AnimatiumConfig.java

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ public final class AnimatiumConfig {
4545
public static Screen getConfigScreen(@Nullable Screen parent) {
4646
return YetAnotherConfigLib.create(CONFIG, (defaults, config, builder) -> {
4747
builder.title(Component.translatable("animatium.title"));
48-
builder.category(QOLConfigCategory.setup(defaults, config));
4948
builder.category(MovementConfigCategory.setup(defaults, config));
5049
builder.category(ScreenConfigCategory.setup(defaults, config));
5150
builder.category(ItemsConfigCategory.setup(defaults, config));
51+
builder.category(FixesConfigCategory.setup(defaults, config));
5252
builder.category(OtherConfigCategory.setup(defaults, config));
5353
return builder;
5454
}).generateScreen(parent);
@@ -62,33 +62,6 @@ public static AnimatiumConfig instance() {
6262
return CONFIG.instance();
6363
}
6464

65-
// TODO/NOTE: Category for just fixes?
66-
67-
// (QOL)
68-
@SerialEntry public boolean minimalViewBobbing = false;
69-
@SerialEntry public boolean nameTagInThirdperson = false;
70-
@SerialEntry public boolean nameTagBackground = true;
71-
@SerialEntry public boolean nameTagTextShadow = false;
72-
@SerialEntry public boolean debugHudTextColor = false;
73-
@SerialEntry public boolean persistentBlockOutline = false;
74-
@SerialEntry public boolean offhandUsageSwinging = false;
75-
@SerialEntry public boolean alwaysSharpParticles = false;
76-
@SerialEntry public boolean recipeAndTutorialToasts = false;
77-
@SerialEntry public boolean visibleArmWhileInvisible = false;
78-
@SerialEntry public boolean fakeMissPenaltySwing = false;
79-
@SerialEntry public boolean dontMoveBlueVoid = false;
80-
@SerialEntry public boolean usageSwingingParticles = false;
81-
@SerialEntry public boolean entityDeathTopple = true;
82-
@SerialEntry public boolean deepRedHurtTint = false;
83-
@SerialEntry public boolean particlePhysics = true;
84-
@SerialEntry public boolean firstPersonParticles = true;
85-
@SerialEntry public boolean dontClearChat = false;
86-
@SerialEntry public boolean dontCloseChat = false;
87-
// (QOL) Fixes
88-
@SerialEntry public boolean fixMirrorArmSwing = true;
89-
@SerialEntry public boolean upMinPixelTransparencyLimit = true;
90-
@SerialEntry public boolean fixOffHandUsingPose = true;
91-
9265
// (Movement)
9366
// (Movement) Sneaking
9467
@SerialEntry public boolean smoothSneaking = true;
@@ -174,6 +147,11 @@ public static AnimatiumConfig instance() {
174147
@SerialEntry public boolean heldItemVisibilityInBoat = true;
175148
@SerialEntry public boolean itemPickupPosition = true;
176149

150+
// (Fixes)
151+
@SerialEntry public boolean fixMirrorArmSwing = true;
152+
@SerialEntry public boolean upMinPixelTransparencyLimit = true;
153+
@SerialEntry public boolean fixOffHandUsingPose = true;
154+
177155
// (Other)
178156
@SerialEntry public boolean thirdPersonSwordBlockingPosition = true;
179157
@SerialEntry public boolean lockBlockingArmRotation = true;
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
package btw.mixces.animatium.config.category;
2+
3+
import btw.mixces.animatium.config.AnimatiumConfig;
4+
import dev.isxander.yacl3.api.ConfigCategory;
5+
import dev.isxander.yacl3.api.Option;
6+
import dev.isxander.yacl3.api.OptionDescription;
7+
import dev.isxander.yacl3.api.controller.TickBoxControllerBuilder;
8+
import net.minecraft.client.Minecraft;
9+
import net.minecraft.network.chat.Component;
10+
11+
public class FixesConfigCategory {
12+
public static ConfigCategory setup(AnimatiumConfig defaults, AnimatiumConfig config) {
13+
ConfigCategory.Builder category = ConfigCategory.createBuilder();
14+
category.name(Component.translatable("animatium.category.fixes"));
15+
category.option(Option.<Boolean>createBuilder()
16+
.name(Component.translatable("animatium.fixMirrorArmSwing"))
17+
.description(OptionDescription.of(Component.translatable("animatium.fixMirrorArmSwing.description")))
18+
.binding(
19+
defaults.fixMirrorArmSwing,
20+
() -> config.fixMirrorArmSwing,
21+
(newVal) -> config.fixMirrorArmSwing = newVal)
22+
.controller(TickBoxControllerBuilder::create)
23+
.build());
24+
category.option(Option.<Boolean>createBuilder()
25+
.name(Component.translatable("animatium.upMinPixelTransparencyLimit"))
26+
.description(OptionDescription.of(Component.translatable("animatium.upMinPixelTransparencyLimit.description")))
27+
.binding(
28+
defaults.upMinPixelTransparencyLimit,
29+
() -> config.upMinPixelTransparencyLimit,
30+
(newVal) -> {
31+
config.upMinPixelTransparencyLimit = newVal;
32+
Minecraft.getInstance().reloadResourcePacks();
33+
})
34+
.controller(TickBoxControllerBuilder::create)
35+
.build());
36+
category.option(Option.<Boolean>createBuilder()
37+
.name(Component.translatable("animatium.fixOffHandUsingPose"))
38+
.description(OptionDescription.of(Component.translatable("animatium.fixOffHandUsingPose.description")))
39+
.binding(
40+
defaults.fixOffHandUsingPose,
41+
() -> config.fixOffHandUsingPose,
42+
(newVal) -> config.fixOffHandUsingPose = newVal)
43+
.controller(TickBoxControllerBuilder::create)
44+
.build());
45+
return category.build();
46+
}
47+
}

0 commit comments

Comments
 (0)