Archive incari-client (client, 26.3, clean)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 29 Sep 2026 18:53:34 -0400
|
||||
Subject: [PATCH] combat: No attack cooldown on 1.8 servers
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/player/Player.java b/src/main/java/net/minecraft/world/entity/player/Player.java
|
||||
index deafd313710dd2f4ce55198ca04c504282efb1e4..c0713e4780476d32f430be240a5bd9e84ad86f42 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/player/Player.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/player/Player.java
|
||||
@@ -1812,2 +1812,5 @@
|
||||
public float getAttackStrengthScale(final float a) {
|
||||
+ // Incari start: 1.8 servers have no attack cooldown
|
||||
+ if (incari.client.legacy.LegacyCombat.noCooldown()) return 1.0F;
|
||||
+ // Incari end
|
||||
return Mth.clamp((this.attackStrengthTicker + a) / this.getCurrentItemAttackStrengthDelay(), 0.0F, 1.0F);
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 29 Sep 2026 18:53:34 -0400
|
||||
Subject: [PATCH] combat: Aim with 1.8's margin around entities on 1.8 servers
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/Entity.java b/src/main/java/net/minecraft/world/entity/Entity.java
|
||||
index 4404c17761f3db3634e3b8c70c5ac8595c5ea7e4..4a8fc2a9f4ebdebdd241c68f58ad79c97d28c546 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/Entity.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/Entity.java
|
||||
@@ -2659,3 +2659,5 @@
|
||||
public float getPickRadius() {
|
||||
- return 0.0F;
|
||||
+ // Incari start: 1.8 aims with a 0.1 margin around every entity
|
||||
+ return incari.client.legacy.LegacyCombat.pickRadius(0.0F);
|
||||
+ // Incari end
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 29 Sep 2026 18:53:34 -0400
|
||||
Subject: [PATCH] combat: Block with swords on 1.8 servers
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/item/Item.java b/src/main/java/net/minecraft/world/item/Item.java
|
||||
index 7642b58acc00eb38ecea69b2a486d9a83e76a0ac..72d3f5b0d07be18c51b74ca13af742d90ce92c68 100644
|
||||
--- a/src/main/java/net/minecraft/world/item/Item.java
|
||||
+++ b/src/main/java/net/minecraft/world/item/Item.java
|
||||
@@ -204,2 +204,6 @@
|
||||
public InteractionResult use(final Level level, final Player player, final InteractionHand hand) {
|
||||
+ // Incari start: swords block on 1.8 servers
|
||||
+ InteractionResult legacy = incari.client.legacy.LegacyCombat.use(player, hand);
|
||||
+ if (legacy != null) return legacy;
|
||||
+ // Incari end
|
||||
ItemStack stack = player.getItemInHand(hand);
|
||||
@@ -314,2 +318,5 @@
|
||||
public ItemUseAnimation getUseAnimation(final ItemStack itemStack) {
|
||||
+ // Incari start: swords block on 1.8 servers
|
||||
+ if (incari.client.legacy.LegacyCombat.blocksWith(itemStack)) return ItemUseAnimation.BLOCK;
|
||||
+ // Incari end
|
||||
Consumable consumable = itemStack.get(DataComponents.CONSUMABLE);
|
||||
@@ -325,2 +332,6 @@
|
||||
public int getUseDuration(final ItemStack itemStack, final LivingEntity user) {
|
||||
+ // Incari start: swords block on 1.8 servers
|
||||
+ int legacy = incari.client.legacy.LegacyCombat.useDuration(itemStack);
|
||||
+ if (legacy >= 0) return legacy;
|
||||
+ // Incari end
|
||||
Consumable consumable = itemStack.get(DataComponents.CONSUMABLE);
|
||||
@@ -0,0 +1,22 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Tue, 29 Sep 2026 18:53:34 -0400
|
||||
Subject: [PATCH] combat: Swing before attacking on 1.8 servers
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/Minecraft.java b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
index c4d07d478932b8b541be74a41cfa29cd17e86e42..d3bbf18b8d7a7c171ce921de8d940a4f0cba9368 100644
|
||||
--- a/src/main/java/net/minecraft/client/Minecraft.java
|
||||
+++ b/src/main/java/net/minecraft/client/Minecraft.java
|
||||
@@ -1685,2 +1685,5 @@
|
||||
|
||||
+ // Incari start: 1.8 clients swing before they attack or dig
|
||||
+ boolean swung = incari.client.legacy.LegacyCombat.swingFirst(this.player, attackAnimation);
|
||||
+ // Incari end
|
||||
switch (this.hitResult.getType()) {
|
||||
@@ -1710,2 +1713,5 @@
|
||||
|
||||
+ // Incari start: not again if it swung first (1.8 servers)
|
||||
+ if (!swung)
|
||||
+ // Incari end
|
||||
this.player.swing(InteractionHand.MAIN_HAND, attackAnimation, false);
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: incari-client <335801235+incari-client@users.noreply.github.com>
|
||||
Date: Fri, 6 Nov 2026 17:42:38 -0500
|
||||
Subject: [PATCH] combat: Fast Crystal takes crystals and anchors away as the
|
||||
player breaks them
|
||||
|
||||
Signed-off-by: bedrock3359 <181285672+nobuildersnotools@users.noreply.github.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java b/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java
|
||||
index 33eca288c0364666a69c00099c060c06ac35e05d..2a32404b195379dd36f151b3e18fd4a77e0ebe57 100644
|
||||
--- a/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java
|
||||
+++ b/src/main/java/net/minecraft/client/multiplayer/ClientPacketListener.java
|
||||
@@ -774,2 +774,3 @@
|
||||
PacketUtils.ensureRunningOnSameThread(packet, this, this.minecraft.packetProcessor());
|
||||
+ incari.client.modules.ModuleBreaks.removed(packet.entityIds()); // Incari: Fast Crystal's crystals confirmed
|
||||
packet.entityIds().forEach(entityId -> {
|
||||
diff --git a/src/main/java/net/minecraft/client/multiplayer/MultiPlayerGameMode.java b/src/main/java/net/minecraft/client/multiplayer/MultiPlayerGameMode.java
|
||||
index 597fef6b4273a979a984351d7dd60053ad3a9db5..a8649843821ca545cd6a52e3799a3c93480575e7 100644
|
||||
--- a/src/main/java/net/minecraft/client/multiplayer/MultiPlayerGameMode.java
|
||||
+++ b/src/main/java/net/minecraft/client/multiplayer/MultiPlayerGameMode.java
|
||||
@@ -437,2 +437,3 @@
|
||||
player.attack(entity);
|
||||
+ incari.client.modules.ModuleBreaks.attacked(player, entity); // Incari: Fast Crystal, after the one packet
|
||||
player.resetAttackStrengthTicker();
|
||||
diff --git a/src/main/java/net/minecraft/world/level/block/RespawnAnchorBlock.java b/src/main/java/net/minecraft/world/level/block/RespawnAnchorBlock.java
|
||||
index 520cd86d3be81c78cb357623ad8bae845ebec2e7..32779d8f969da62bf187770b9e883f5c549ac144 100644
|
||||
--- a/src/main/java/net/minecraft/world/level/block/RespawnAnchorBlock.java
|
||||
+++ b/src/main/java/net/minecraft/world/level/block/RespawnAnchorBlock.java
|
||||
@@ -120,2 +120,3 @@
|
||||
} else {
|
||||
+ incari.client.modules.ModuleBreaks.anchorUsed(level, pos); // Incari: Fast Crystal's anchors
|
||||
return InteractionResult.CONSUME;
|
||||
Reference in New Issue
Block a user